End of training
Browse files- README.md +91 -0
- config.json +186 -0
- model.safetensors +3 -0
- preprocessor_config.json +9 -0
- runs/Oct01_09-41-03_ki-g0010/events.out.tfevents.1727775668.ki-g0010.1556905.0 +3 -0
- runs/Oct01_09-42-21_ki-g0010/events.out.tfevents.1727775745.ki-g0010.1558728.0 +3 -0
- runs/Oct01_09-42-21_ki-g0010/events.out.tfevents.1727776385.ki-g0010.1558728.1 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: facebook/wav2vec2-base-960h
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- speech_commands
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: wav2vec2-base-960h-speech-commands
|
12 |
+
results:
|
13 |
+
- task:
|
14 |
+
name: Audio Classification
|
15 |
+
type: audio-classification
|
16 |
+
dataset:
|
17 |
+
name: speech_commands
|
18 |
+
type: speech_commands
|
19 |
+
config: v0.02
|
20 |
+
split: None
|
21 |
+
args: v0.02
|
22 |
+
metrics:
|
23 |
+
- name: Accuracy
|
24 |
+
type: accuracy
|
25 |
+
value: 0.8066546762589928
|
26 |
+
---
|
27 |
+
|
28 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
29 |
+
should probably proofread and complete it, then remove this comment. -->
|
30 |
+
|
31 |
+
# wav2vec2-base-960h-speech-commands
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [facebook/wav2vec2-base-960h](https://huggingface.co/facebook/wav2vec2-base-960h) on the speech_commands dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 1.1612
|
36 |
+
- Accuracy: 0.8067
|
37 |
+
|
38 |
+
## Model description
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Intended uses & limitations
|
43 |
+
|
44 |
+
More information needed
|
45 |
+
|
46 |
+
## Training and evaluation data
|
47 |
+
|
48 |
+
More information needed
|
49 |
+
|
50 |
+
## Training procedure
|
51 |
+
|
52 |
+
### Training hyperparameters
|
53 |
+
|
54 |
+
The following hyperparameters were used during training:
|
55 |
+
- learning_rate: 5e-05
|
56 |
+
- train_batch_size: 48
|
57 |
+
- eval_batch_size: 48
|
58 |
+
- seed: 42
|
59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
60 |
+
- lr_scheduler_type: linear
|
61 |
+
- lr_scheduler_warmup_ratio: 0.1
|
62 |
+
- num_epochs: 20
|
63 |
+
- mixed_precision_training: Native AMP
|
64 |
+
|
65 |
+
### Training results
|
66 |
+
|
67 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
68 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
|
69 |
+
| 1.745 | 1.0 | 824 | 1.9237 | 0.7648 |
|
70 |
+
| 0.5664 | 2.0 | 1648 | 1.1424 | 0.7878 |
|
71 |
+
| 0.4337 | 3.0 | 2472 | 1.1234 | 0.8013 |
|
72 |
+
| 0.3346 | 4.0 | 3296 | 1.1040 | 0.8035 |
|
73 |
+
| 0.2683 | 5.0 | 4120 | 1.3128 | 0.7905 |
|
74 |
+
| 0.3498 | 6.0 | 4944 | 1.2172 | 0.7972 |
|
75 |
+
| 0.2556 | 7.0 | 5768 | 1.1906 | 0.7986 |
|
76 |
+
| 0.226 | 8.0 | 6592 | 1.1081 | 0.8044 |
|
77 |
+
| 0.2317 | 9.0 | 7416 | 1.1068 | 0.8049 |
|
78 |
+
| 0.1144 | 10.0 | 8240 | 1.1612 | 0.8067 |
|
79 |
+
| 0.2143 | 11.0 | 9064 | 1.1577 | 0.8031 |
|
80 |
+
| 0.1668 | 12.0 | 9888 | 1.1343 | 0.8058 |
|
81 |
+
| 0.2504 | 13.0 | 10712 | 1.0583 | 0.8067 |
|
82 |
+
| 0.218 | 14.0 | 11536 | 1.0677 | 0.8026 |
|
83 |
+
| 0.1025 | 15.0 | 12360 | 1.0690 | 0.8053 |
|
84 |
+
|
85 |
+
|
86 |
+
### Framework versions
|
87 |
+
|
88 |
+
- Transformers 4.43.3
|
89 |
+
- Pytorch 2.2.2+cu121
|
90 |
+
- Datasets 2.18.0
|
91 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/wav2vec2-base-960h",
|
3 |
+
"activation_dropout": 0.1,
|
4 |
+
"adapter_attn_dim": null,
|
5 |
+
"adapter_kernel_size": 3,
|
6 |
+
"adapter_stride": 2,
|
7 |
+
"add_adapter": false,
|
8 |
+
"apply_spec_augment": true,
|
9 |
+
"architectures": [
|
10 |
+
"Wav2Vec2ForSequenceClassification"
|
11 |
+
],
|
12 |
+
"attention_dropout": 0.1,
|
13 |
+
"bos_token_id": 1,
|
14 |
+
"classifier_proj_size": 256,
|
15 |
+
"codevector_dim": 256,
|
16 |
+
"contrastive_logits_temperature": 0.1,
|
17 |
+
"conv_bias": false,
|
18 |
+
"conv_dim": [
|
19 |
+
512,
|
20 |
+
512,
|
21 |
+
512,
|
22 |
+
512,
|
23 |
+
512,
|
24 |
+
512,
|
25 |
+
512
|
26 |
+
],
|
27 |
+
"conv_kernel": [
|
28 |
+
10,
|
29 |
+
3,
|
30 |
+
3,
|
31 |
+
3,
|
32 |
+
3,
|
33 |
+
2,
|
34 |
+
2
|
35 |
+
],
|
36 |
+
"conv_stride": [
|
37 |
+
5,
|
38 |
+
2,
|
39 |
+
2,
|
40 |
+
2,
|
41 |
+
2,
|
42 |
+
2,
|
43 |
+
2
|
44 |
+
],
|
45 |
+
"ctc_loss_reduction": "sum",
|
46 |
+
"ctc_zero_infinity": false,
|
47 |
+
"diversity_loss_weight": 0.1,
|
48 |
+
"do_stable_layer_norm": false,
|
49 |
+
"eos_token_id": 2,
|
50 |
+
"feat_extract_activation": "gelu",
|
51 |
+
"feat_extract_dropout": 0.0,
|
52 |
+
"feat_extract_norm": "group",
|
53 |
+
"feat_proj_dropout": 0.1,
|
54 |
+
"feat_quantizer_dropout": 0.0,
|
55 |
+
"final_dropout": 0.1,
|
56 |
+
"gradient_checkpointing": false,
|
57 |
+
"hidden_act": "gelu",
|
58 |
+
"hidden_dropout": 0.1,
|
59 |
+
"hidden_dropout_prob": 0.1,
|
60 |
+
"hidden_size": 768,
|
61 |
+
"id2label": {
|
62 |
+
"0": "yes",
|
63 |
+
"1": "no",
|
64 |
+
"10": "zero",
|
65 |
+
"11": "one",
|
66 |
+
"12": "two",
|
67 |
+
"13": "three",
|
68 |
+
"14": "four",
|
69 |
+
"15": "five",
|
70 |
+
"16": "six",
|
71 |
+
"17": "seven",
|
72 |
+
"18": "eight",
|
73 |
+
"19": "nine",
|
74 |
+
"2": "up",
|
75 |
+
"20": "bed",
|
76 |
+
"21": "bird",
|
77 |
+
"22": "cat",
|
78 |
+
"23": "dog",
|
79 |
+
"24": "happy",
|
80 |
+
"25": "house",
|
81 |
+
"26": "marvin",
|
82 |
+
"27": "sheila",
|
83 |
+
"28": "tree",
|
84 |
+
"29": "wow",
|
85 |
+
"3": "down",
|
86 |
+
"30": "backward",
|
87 |
+
"31": "forward",
|
88 |
+
"32": "follow",
|
89 |
+
"33": "learn",
|
90 |
+
"34": "visual",
|
91 |
+
"35": "_silence_",
|
92 |
+
"4": "left",
|
93 |
+
"5": "right",
|
94 |
+
"6": "on",
|
95 |
+
"7": "off",
|
96 |
+
"8": "stop",
|
97 |
+
"9": "go"
|
98 |
+
},
|
99 |
+
"initializer_range": 0.02,
|
100 |
+
"intermediate_size": 3072,
|
101 |
+
"label2id": {
|
102 |
+
"_silence_": "35",
|
103 |
+
"backward": "30",
|
104 |
+
"bed": "20",
|
105 |
+
"bird": "21",
|
106 |
+
"cat": "22",
|
107 |
+
"dog": "23",
|
108 |
+
"down": "3",
|
109 |
+
"eight": "18",
|
110 |
+
"five": "15",
|
111 |
+
"follow": "32",
|
112 |
+
"forward": "31",
|
113 |
+
"four": "14",
|
114 |
+
"go": "9",
|
115 |
+
"happy": "24",
|
116 |
+
"house": "25",
|
117 |
+
"learn": "33",
|
118 |
+
"left": "4",
|
119 |
+
"marvin": "26",
|
120 |
+
"nine": "19",
|
121 |
+
"no": "1",
|
122 |
+
"off": "7",
|
123 |
+
"on": "6",
|
124 |
+
"one": "11",
|
125 |
+
"right": "5",
|
126 |
+
"seven": "17",
|
127 |
+
"sheila": "27",
|
128 |
+
"six": "16",
|
129 |
+
"stop": "8",
|
130 |
+
"three": "13",
|
131 |
+
"tree": "28",
|
132 |
+
"two": "12",
|
133 |
+
"up": "2",
|
134 |
+
"visual": "34",
|
135 |
+
"wow": "29",
|
136 |
+
"yes": "0",
|
137 |
+
"zero": "10"
|
138 |
+
},
|
139 |
+
"layer_norm_eps": 1e-05,
|
140 |
+
"layerdrop": 0.1,
|
141 |
+
"mask_feature_length": 10,
|
142 |
+
"mask_feature_min_masks": 0,
|
143 |
+
"mask_feature_prob": 0.0,
|
144 |
+
"mask_time_length": 10,
|
145 |
+
"mask_time_min_masks": 2,
|
146 |
+
"mask_time_prob": 0.05,
|
147 |
+
"model_type": "wav2vec2",
|
148 |
+
"num_adapter_layers": 3,
|
149 |
+
"num_attention_heads": 12,
|
150 |
+
"num_codevector_groups": 2,
|
151 |
+
"num_codevectors_per_group": 320,
|
152 |
+
"num_conv_pos_embedding_groups": 16,
|
153 |
+
"num_conv_pos_embeddings": 128,
|
154 |
+
"num_feat_extract_layers": 7,
|
155 |
+
"num_hidden_layers": 12,
|
156 |
+
"num_negatives": 100,
|
157 |
+
"output_hidden_size": 768,
|
158 |
+
"pad_token_id": 0,
|
159 |
+
"proj_codevector_dim": 256,
|
160 |
+
"tdnn_dilation": [
|
161 |
+
1,
|
162 |
+
2,
|
163 |
+
3,
|
164 |
+
1,
|
165 |
+
1
|
166 |
+
],
|
167 |
+
"tdnn_dim": [
|
168 |
+
512,
|
169 |
+
512,
|
170 |
+
512,
|
171 |
+
512,
|
172 |
+
1500
|
173 |
+
],
|
174 |
+
"tdnn_kernel": [
|
175 |
+
5,
|
176 |
+
3,
|
177 |
+
3,
|
178 |
+
1,
|
179 |
+
1
|
180 |
+
],
|
181 |
+
"torch_dtype": "float32",
|
182 |
+
"transformers_version": "4.43.3",
|
183 |
+
"use_weighted_layer_sum": false,
|
184 |
+
"vocab_size": 32,
|
185 |
+
"xvector_output_dim": 512
|
186 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c4cb012de9cd287adbf3a6ee227e4f864892b9155f3d7d42341635798867fe23
|
3 |
+
size 378337328
|
preprocessor_config.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"feature_extractor_type": "Wav2Vec2FeatureExtractor",
|
4 |
+
"feature_size": 1,
|
5 |
+
"padding_side": "right",
|
6 |
+
"padding_value": 0.0,
|
7 |
+
"return_attention_mask": false,
|
8 |
+
"sampling_rate": 16000
|
9 |
+
}
|
runs/Oct01_09-41-03_ki-g0010/events.out.tfevents.1727775668.ki-g0010.1556905.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e7d12623994a49ee3d266406eb288ad789db0648fe524c0a0db3bf3ec30f216c
|
3 |
+
size 14436
|
runs/Oct01_09-42-21_ki-g0010/events.out.tfevents.1727775745.ki-g0010.1558728.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ca2d23dec5109d95c761b89fbe97b4ac794b123d2190b81879fab52e39d234cf
|
3 |
+
size 534475
|
runs/Oct01_09-42-21_ki-g0010/events.out.tfevents.1727776385.ki-g0010.1558728.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:183e2ae005fb6de96e55cdc43a7fb2310e00198a530fd0683d2feb1925cfc15d
|
3 |
+
size 411
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:92bd7d0e35cc2486fa36161532514b97569cc73d750fe9f5bb9c6beed575e714
|
3 |
+
size 5240
|