juancopi81
commited on
Commit
·
5b2dc07
1
Parent(s):
fa938d3
Training in progress epoch 0
Browse files- README.md +19 -146
- tf_model.h5 +1 -1
README.md
CHANGED
@@ -1,179 +1,52 @@
|
|
1 |
---
|
2 |
tags:
|
3 |
- generated_from_keras_callback
|
4 |
-
- music
|
5 |
model-index:
|
6 |
- name: juancopi81/mutopia_guitar_mmm
|
7 |
results: []
|
8 |
-
datasets:
|
9 |
-
- juancopi81/mutopia_guitar_dataset
|
10 |
-
widget:
|
11 |
-
- text: "PIECE_START TIME_SIGNATURE=4_4 BPM=90 TRACK_START INST=0 DENSITY=2 BAR_START NOTE_ON=43"
|
12 |
-
example_title: "Time signature 4/4, BPM=90, NOTE=G2"
|
13 |
---
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
Music generation could be approached similarly to language generation. There are many ways to represent music as text and then use a language model to create a model capable of music generation. For encoding MIDI files as text, I am using the excellent [implementation](https://github.com/AI-Guru/MMM-JSB) of Dr. Tristan Beheren of the paper: [MMM: Exploring Conditional Multi-Track Music Generation with the Transformer](https://arxiv.org/abs/2008.06048).
|
18 |
|
19 |
-
|
20 |
-
I created the notebook as an adaptation of [the one created by Dr. Tristan Behrens](https://huggingface.co/TristanBehrens/js-fakes-4bars).
|
21 |
|
|
|
22 |
It achieves the following results on the evaluation set:
|
23 |
-
- Train Loss:
|
24 |
-
- Validation Loss:
|
|
|
25 |
|
26 |
## Model description
|
27 |
|
28 |
-
|
29 |
-
`WhitespaceSplit` pre-tokenizer. The [tokenizer](https://huggingface.co/juancopi81/mutopia_guitar_dataset_tokenizer) is also in the Hugging Face hub.
|
30 |
|
31 |
## Intended uses & limitations
|
32 |
|
33 |
-
|
34 |
-
The main intention of this model is educational. I am creating a [series of notebooks](https://github.com/juancopi81/MMM_Mutopia_Guitar) where I show every step of the process:
|
35 |
-
- Collecting the data
|
36 |
-
- Pre-processing the data
|
37 |
-
- Training a tokenizer from scratch
|
38 |
-
- Fine-tuning a GPT-2 model
|
39 |
-
- Building a Gradio app for the model
|
40 |
-
|
41 |
-
I trained the model using the free version of Colab with a small dataset. Right now, it is heavily overfitting. My idea is to have a more extensive dataset of Guitar Music from Latinoamerica to train a new model similar to the Mutopia Guitar Model, using more GPU resources.
|
42 |
|
43 |
## Training and evaluation data
|
44 |
|
45 |
-
|
46 |
-
The dataset mainly contains guitar music from western classical composers, such as Sor, Aguado, Carcassi, and Giuliani.
|
47 |
|
48 |
-
|
49 |
|
50 |
### Training hyperparameters
|
51 |
|
52 |
-
The following hyperparameters were used during training
|
53 |
-
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'WarmUp', 'config': {'initial_learning_rate':
|
54 |
-
|
55 |
-
The following hyperparameters were used during training (without transposition - first round):
|
56 |
-
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'WarmUp', 'config': {'initial_learning_rate': 5e-07, 'decay_schedule_fn': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 5e-07, 'decay_steps': 350, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, '__passive_serialization__': True}, 'warmup_steps': 1000, 'power': 1.0, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
|
57 |
-
|
58 |
-
The following hyperparameters were used during training (without transposition - second round):
|
59 |
-
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'WarmUp', 'config': {'initial_learning_rate': 5e-07, 'decay_schedule_fn': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 5e-07, 'decay_steps': 350, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, '__passive_serialization__': True}, 'warmup_steps': 1000, 'power': 1.0, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
|
60 |
-
|
61 |
-
The following hyperparameters were used during training (without transposition, new tokenizer - third round):
|
62 |
-
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'WarmUp', 'config': {'initial_learning_rate': 5e-07, 'decay_schedule_fn': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 5e-07, 'decay_steps': 350, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'passive_serialization': True}, 'warmup_steps': 1000, 'power': 1.0, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
|
63 |
-
|
64 |
-
The following hyperparameters were used during training (without transposition, new tokenizer - fourth round):
|
65 |
-
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'WarmUp', 'config': {'initial_learning_rate': 5e-07, 'decay_schedule_fn': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 5e-07, 'decay_steps': 350, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'passive_serialization': True}, 'warmup_steps': 1000, 'power': 1.0, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
|
66 |
-
|
67 |
-
The following hyperparameters were used during training (without transposition, new tokenizer - fifth round):
|
68 |
-
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'WarmUp', 'config': {'initial_learning_rate': 5e-07, 'decay_schedule_fn': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 5e-07, 'decay_steps': 350, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, '__passive_serialization__': True}, 'warmup_steps': 1000, 'power': 1.0, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
|
69 |
-
|
70 |
-
The following hyperparameters were used during training (without transposition, new tokenizer - sixth round):
|
71 |
-
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'WarmUp', 'config': {'initial_learning_rate': 5e-07, 'decay_schedule_fn': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 5e-07, 'decay_steps': 350, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'passive_serialization': True}, 'warmup_steps': 1000, 'power': 1.0, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
|
72 |
-
|
73 |
-
|
74 |
- training_precision: mixed_float16
|
75 |
|
76 |
### Training results
|
77 |
-
|
78 |
-
| Train Loss | Validation Loss | Epoch |
|
79 |
-
|:----------:|:---------------:|:-----:|
|
80 |
-
| 1.0705 | 1.3590 | 0 |
|
81 |
-
| 0.8889 | 1.3702 | 1 |
|
82 |
-
| 0.7588 | 1.3974 | 2 |
|
83 |
-
| 0.7294 | 1.4813 | 3 |
|
84 |
-
| 0.6263 | 1.5263 | 4 |
|
85 |
-
| 0.5841 | 1.5263 | 5 |
|
86 |
-
| 0.5844 | 1.5263 | 6 |
|
87 |
-
| 0.5837 | 1.5346 | 7 |
|
88 |
-
| 0.5798 | 1.5411 | 8 |
|
89 |
-
| 0.5773 | 1.5440 | 9 |
|
90 |
-
|
91 |
-
Without transposition (first round):
|
92 |
-
| Train Loss | Validation Loss | Epoch |
|
93 |
-
|:----------:|:---------------:|:-----:|
|
94 |
-
| 0.5503 | 1.5436 | 0 |
|
95 |
-
| 0.5503 | 1.5425 | 1 |
|
96 |
-
| 0.5476 | 1.5425 | 2 |
|
97 |
-
| 0.5467 | 1.5425 | 3 |
|
98 |
-
| 0.5447 | 1.5431 | 4 |
|
99 |
-
| 0.5418 | 1.5447 | 5 |
|
100 |
-
| 0.5418 | 1.5451 | 6 |
|
101 |
-
| 0.5401 | 1.5472 | 7 |
|
102 |
-
| 0.5386 | 1.5479 | 8 |
|
103 |
-
| 0.5365 | 1.5482 | 9 |
|
104 |
-
|
105 |
-
Without transposition (second round):
|
106 |
-
| Train Loss | Validation Loss | Epoch |
|
107 |
-
|:----------:|:---------------:|:-----:|
|
108 |
-
| 0.5368 | 1.5482 | 0 |
|
109 |
-
| 0.5355 | 1.5480 | 1 |
|
110 |
-
| 0.5326 | 1.5488 | 2 |
|
111 |
-
| 0.5363 | 1.5493 | 3 |
|
112 |
-
| 0.5346 | 1.5488 | 4 |
|
113 |
-
| 0.5329 | 1.5502 | 5 |
|
114 |
-
| 0.5329 | 1.5514 | 6 |
|
115 |
-
| 0.5308 | 1.5514 | 7 |
|
116 |
-
| 0.5292 | 1.5536 | 8 |
|
117 |
-
| 0.5272 | 1.5543 | 9 |
|
118 |
-
|
119 |
-
Without transposition (third round - new tokenizer):
|
120 |
-
| Train Loss | Validation Loss | Epoch |
|
121 |
-
|:----------:|:---------------:|:-----:|
|
122 |
-
| 6.1361 | 6.4569 | 0 |
|
123 |
-
| 5.6383 | 5.8249 | 1 |
|
124 |
-
| 4.9125 | 4.8956 | 2 |
|
125 |
-
| 4.2013 | 4.2778 | 3 |
|
126 |
-
| 3.8665 | 4.0330 | 4 |
|
127 |
-
| 3.7106 | 3.8956 | 5 |
|
128 |
-
| 3.6041 | 3.7995 | 6 |
|
129 |
-
| 3.5301 | 3.7485 | 7 |
|
130 |
-
| 3.4973 | 3.7323 | 8 |
|
131 |
-
| 3.4909 | 3.7323 | 9 |
|
132 |
-
|
133 |
-
Without transposition (fourth round - new tokenizer):
|
134 |
-
| Train Loss | Validation Loss | Epoch |
|
135 |
-
|:----------:|:---------------:|:-----:|
|
136 |
-
| 3.4879 | 3.7206 | 0 |
|
137 |
-
| 3.4667 | 3.6874 | 1 |
|
138 |
-
| 3.4229 | 3.6373 | 2 |
|
139 |
-
| 3.3680 | 3.5751 | 3 |
|
140 |
-
| 3.2998 | 3.5026 | 4 |
|
141 |
-
| 3.2208 | 3.4240 | 5 |
|
142 |
-
| 3.1385 | 3.3397 | 6 |
|
143 |
-
| 3.0580 | 3.2587 | 7 |
|
144 |
-
| 2.9949 | 3.2118 | 8 |
|
145 |
-
| 2.9646 | 3.1958 | 9 |
|
146 |
-
|
147 |
-
Without transposition (fifth round - new tokenizer):
|
148 |
-
| Train Loss | Validation Loss | Epoch |
|
149 |
-
|:----------:|:---------------:|:-----:|
|
150 |
-
| 2.9562 | 3.1902 | 0 |
|
151 |
-
| 2.9457 | 3.1751 | 1 |
|
152 |
-
| 2.9266 | 3.1512 | 2 |
|
153 |
-
| 2.9039 | 3.1176 | 3 |
|
154 |
-
| 2.8705 | 3.0775 | 4 |
|
155 |
-
| 2.8291 | 3.0295 | 5 |
|
156 |
-
| 2.7872 | 2.9811 | 6 |
|
157 |
-
| 2.7394 | 2.9321 | 7 |
|
158 |
-
| 2.6996 | 2.9023 | 8 |
|
159 |
-
| 2.6819 | 2.8927 | 9 |
|
160 |
-
|
161 |
-
Without transposition (sixth round - new tokenizer):
|
162 |
| Train Loss | Validation Loss | Epoch |
|
163 |
|:----------:|:---------------:|:-----:|
|
164 |
-
| 2.
|
165 |
-
|
166 |
-
| 2.6612 | 2.8638 | 2 |
|
167 |
-
| 2.6465 | 2.8439 | 3 |
|
168 |
-
| 2.6242 | 2.8174 | 4 |
|
169 |
-
| 2.6006 | 2.7877 | 5 |
|
170 |
-
| 2.5679 | 2.7554 | 6 |
|
171 |
-
| 2.5387 | 2.7223 | 7 |
|
172 |
-
| 2.5115 | 2.7029 | 8 |
|
173 |
-
| 2.5011 | 2.6970 | 9 |
|
174 |
|
175 |
### Framework versions
|
176 |
-
|
|
|
177 |
- TensorFlow 2.8.2
|
178 |
- Datasets 2.5.1
|
179 |
-
- Tokenizers 0.12.1
|
|
|
1 |
---
|
2 |
tags:
|
3 |
- generated_from_keras_callback
|
|
|
4 |
model-index:
|
5 |
- name: juancopi81/mutopia_guitar_mmm
|
6 |
results: []
|
|
|
|
|
|
|
|
|
|
|
7 |
---
|
8 |
|
9 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
10 |
+
probably proofread and complete it, then remove this comment. -->
|
|
|
11 |
|
12 |
+
# juancopi81/mutopia_guitar_mmm
|
|
|
13 |
|
14 |
+
This model was trained from scratch on an unknown dataset.
|
15 |
It achieves the following results on the evaluation set:
|
16 |
+
- Train Loss: 2.2881
|
17 |
+
- Validation Loss: 2.2059
|
18 |
+
- Epoch: 0
|
19 |
|
20 |
## Model description
|
21 |
|
22 |
+
More information needed
|
|
|
23 |
|
24 |
## Intended uses & limitations
|
25 |
|
26 |
+
More information needed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
## Training and evaluation data
|
29 |
|
30 |
+
More information needed
|
|
|
31 |
|
32 |
+
## Training procedure
|
33 |
|
34 |
### Training hyperparameters
|
35 |
|
36 |
+
The following hyperparameters were used during training:
|
37 |
+
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'WarmUp', 'config': {'initial_learning_rate': 0.0005, 'decay_schedule_fn': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 0.0005, 'decay_steps': 1025, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, '__passive_serialization__': True}, 'warmup_steps': 1000, 'power': 1.0, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
- training_precision: mixed_float16
|
39 |
|
40 |
### Training results
|
41 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
| Train Loss | Validation Loss | Epoch |
|
43 |
|:----------:|:---------------:|:-----:|
|
44 |
+
| 2.2881 | 2.2059 | 0 |
|
45 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
### Framework versions
|
48 |
+
|
49 |
+
- Transformers 4.22.2
|
50 |
- TensorFlow 2.8.2
|
51 |
- Datasets 2.5.1
|
52 |
+
- Tokenizers 0.12.1
|
tf_model.h5
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 345352296
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bbbe4aa01fea0f0436e185248e4e7dd1747ae3cad1e7822effd8174bf99d7f7e
|
3 |
size 345352296
|