marinone94 commited on
Commit
86f38f9
1 Parent(s): a1bdc10

Clean dummy training.

Browse files
added_tokens.json DELETED
@@ -1 +0,0 @@
1
- {"<s>": 51, "</s>": 52}
 
 
all_results.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "epoch": 0.03,
3
- "eval_loss": 155.7938690185547,
4
- "eval_runtime": 55.6971,
5
- "eval_samples": 301,
6
- "eval_samples_per_second": 5.404,
7
- "eval_steps_per_second": 0.682,
8
- "eval_wer": 1.084206116464181,
9
- "train_loss": 93.28157958984374,
10
- "train_runtime": 23.9574,
11
- "train_samples": 704,
12
- "train_samples_per_second": 0.835,
13
- "train_steps_per_second": 0.417
14
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
checkpoint-10/config.json DELETED
@@ -1,96 +0,0 @@
1
- {
2
- "_name_or_path": "hf-test/xls-r-dummy",
3
- "activation_dropout": 0.0,
4
- "adapter_kernel_size": 3,
5
- "adapter_stride": 2,
6
- "add_adapter": false,
7
- "apply_spec_augment": true,
8
- "architectures": [
9
- "Wav2Vec2ForCTC"
10
- ],
11
- "attention_dropout": 0.0,
12
- "bos_token_id": 1,
13
- "classifier_proj_size": 256,
14
- "codevector_dim": 256,
15
- "contrastive_logits_temperature": 0.1,
16
- "conv_bias": false,
17
- "conv_dim": [
18
- 32,
19
- 32,
20
- 32
21
- ],
22
- "conv_kernel": [
23
- 8,
24
- 8,
25
- 8
26
- ],
27
- "conv_stride": [
28
- 4,
29
- 4,
30
- 4
31
- ],
32
- "ctc_loss_reduction": "mean",
33
- "ctc_zero_infinity": false,
34
- "diversity_loss_weight": 0.1,
35
- "do_stable_layer_norm": true,
36
- "eos_token_id": 2,
37
- "feat_extract_activation": "gelu",
38
- "feat_extract_dropout": 0.0,
39
- "feat_extract_norm": "layer",
40
- "feat_proj_dropout": 0.0,
41
- "feat_quantizer_dropout": 0.0,
42
- "final_dropout": 0.0,
43
- "hidden_act": "gelu",
44
- "hidden_dropout": 0.0,
45
- "hidden_dropout_prob": 0.1,
46
- "hidden_size": 16,
47
- "initializer_range": 0.02,
48
- "intermediate_size": 20,
49
- "layer_norm_eps": 1e-05,
50
- "layerdrop": 0.0,
51
- "mask_feature_length": 10,
52
- "mask_feature_min_masks": 0,
53
- "mask_feature_prob": 0.0,
54
- "mask_time_length": 10,
55
- "mask_time_min_masks": 2,
56
- "mask_time_prob": 0.05,
57
- "model_type": "wav2vec2",
58
- "num_adapter_layers": 3,
59
- "num_attention_heads": 2,
60
- "num_codevector_groups": 2,
61
- "num_codevectors_per_group": 320,
62
- "num_conv_pos_embedding_groups": 2,
63
- "num_conv_pos_embeddings": 16,
64
- "num_feat_extract_layers": 3,
65
- "num_hidden_layers": 4,
66
- "num_negatives": 10,
67
- "output_hidden_size": 16,
68
- "pad_token_id": 50,
69
- "proj_codevector_dim": 256,
70
- "tdnn_dilation": [
71
- 1,
72
- 2,
73
- 3,
74
- 1,
75
- 1
76
- ],
77
- "tdnn_dim": [
78
- 512,
79
- 512,
80
- 512,
81
- 512,
82
- 1500
83
- ],
84
- "tdnn_kernel": [
85
- 5,
86
- 3,
87
- 3,
88
- 1,
89
- 1
90
- ],
91
- "torch_dtype": "float32",
92
- "transformers_version": "4.16.0.dev0",
93
- "use_weighted_layer_sum": false,
94
- "vocab_size": 53,
95
- "xvector_output_dim": 512
96
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
checkpoint-10/optimizer.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:95e07815b6a602c91d38abaafb686592e1aeb8e52ba77b67b766cd507a56b076
3
- size 128273
 
 
 
 
checkpoint-10/preprocessor_config.json DELETED
@@ -1,9 +0,0 @@
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
- }
 
 
 
 
 
 
 
 
 
 
checkpoint-10/pytorch_model.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:eb8eef8a9fa7d277d5cf7f07d589b29066da209acdca616f16a416b99f7829cf
3
- size 142694
 
 
 
 
checkpoint-10/rng_state.pth DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1fb7f4cc8611df92247513a82d0d9f686595c80e63eeeaec2b5122289dfd478f
3
- size 13611
 
 
 
 
checkpoint-10/scheduler.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:bd0948b7f2428191a1f974dc186da72bec015e92c49a1d4aa9e79f447a92a62b
3
- size 623
 
 
 
 
checkpoint-10/trainer_state.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "best_metric": null,
3
- "best_model_checkpoint": null,
4
- "epoch": 0.028409090909090908,
5
- "global_step": 10,
6
- "is_hyper_param_search": false,
7
- "is_local_process_zero": true,
8
- "is_world_process_zero": true,
9
- "log_history": [],
10
- "max_steps": 10,
11
- "num_train_epochs": 1,
12
- "total_flos": 508182128640.0,
13
- "trial_name": null,
14
- "trial_params": null
15
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
checkpoint-10/training_args.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0d984518be407c10d2f161021e8f4824522fcbc805d42098d3c9a603e88255e3
3
- size 2991
 
 
 
 
config.json DELETED
@@ -1,96 +0,0 @@
1
- {
2
- "_name_or_path": "hf-test/xls-r-dummy",
3
- "activation_dropout": 0.0,
4
- "adapter_kernel_size": 3,
5
- "adapter_stride": 2,
6
- "add_adapter": false,
7
- "apply_spec_augment": true,
8
- "architectures": [
9
- "Wav2Vec2ForCTC"
10
- ],
11
- "attention_dropout": 0.0,
12
- "bos_token_id": 1,
13
- "classifier_proj_size": 256,
14
- "codevector_dim": 256,
15
- "contrastive_logits_temperature": 0.1,
16
- "conv_bias": false,
17
- "conv_dim": [
18
- 32,
19
- 32,
20
- 32
21
- ],
22
- "conv_kernel": [
23
- 8,
24
- 8,
25
- 8
26
- ],
27
- "conv_stride": [
28
- 4,
29
- 4,
30
- 4
31
- ],
32
- "ctc_loss_reduction": "mean",
33
- "ctc_zero_infinity": false,
34
- "diversity_loss_weight": 0.1,
35
- "do_stable_layer_norm": true,
36
- "eos_token_id": 2,
37
- "feat_extract_activation": "gelu",
38
- "feat_extract_dropout": 0.0,
39
- "feat_extract_norm": "layer",
40
- "feat_proj_dropout": 0.0,
41
- "feat_quantizer_dropout": 0.0,
42
- "final_dropout": 0.0,
43
- "hidden_act": "gelu",
44
- "hidden_dropout": 0.0,
45
- "hidden_dropout_prob": 0.1,
46
- "hidden_size": 16,
47
- "initializer_range": 0.02,
48
- "intermediate_size": 20,
49
- "layer_norm_eps": 1e-05,
50
- "layerdrop": 0.0,
51
- "mask_feature_length": 10,
52
- "mask_feature_min_masks": 0,
53
- "mask_feature_prob": 0.0,
54
- "mask_time_length": 10,
55
- "mask_time_min_masks": 2,
56
- "mask_time_prob": 0.05,
57
- "model_type": "wav2vec2",
58
- "num_adapter_layers": 3,
59
- "num_attention_heads": 2,
60
- "num_codevector_groups": 2,
61
- "num_codevectors_per_group": 320,
62
- "num_conv_pos_embedding_groups": 2,
63
- "num_conv_pos_embeddings": 16,
64
- "num_feat_extract_layers": 3,
65
- "num_hidden_layers": 4,
66
- "num_negatives": 10,
67
- "output_hidden_size": 16,
68
- "pad_token_id": 50,
69
- "proj_codevector_dim": 256,
70
- "tdnn_dilation": [
71
- 1,
72
- 2,
73
- 3,
74
- 1,
75
- 1
76
- ],
77
- "tdnn_dim": [
78
- 512,
79
- 512,
80
- 512,
81
- 512,
82
- 1500
83
- ],
84
- "tdnn_kernel": [
85
- 5,
86
- 3,
87
- 3,
88
- 1,
89
- 1
90
- ],
91
- "torch_dtype": "float32",
92
- "transformers_version": "4.16.0.dev0",
93
- "use_weighted_layer_sum": false,
94
- "vocab_size": 53,
95
- "xvector_output_dim": 512
96
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eval_results.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "epoch": 0.03,
3
- "eval_loss": 155.7938690185547,
4
- "eval_runtime": 55.6971,
5
- "eval_samples": 301,
6
- "eval_samples_per_second": 5.404,
7
- "eval_steps_per_second": 0.682,
8
- "eval_wer": 1.084206116464181
9
- }
 
 
 
 
 
 
 
 
 
 
preprocessor_config.json DELETED
@@ -1,9 +0,0 @@
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
- }
 
 
 
 
 
 
 
 
 
 
pytorch_model.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:eb8eef8a9fa7d277d5cf7f07d589b29066da209acdca616f16a416b99f7829cf
3
- size 142694
 
 
 
 
run-cpu.sh CHANGED
@@ -1,21 +1,33 @@
1
  python run_speech_recognition_ctc.py \
2
  --dataset_name="mozilla-foundation/common_voice_7_0" \
3
- --model_name_or_path="hf-test/xls-r-dummy" \
4
- --dataset_config_name="ab" \
5
  --output_dir="./" \
6
  --overwrite_output_dir \
7
  --max_steps="10" \
8
- --per_device_train_batch_size="2" \
9
- --learning_rate="3e-4" \
10
- --save_total_limit="1" \
 
 
 
11
  --evaluation_strategy="steps" \
12
  --text_column_name="sentence" \
13
- --length_column_name="input_length" \
14
  --save_steps="5" \
 
 
15
  --layerdrop="0.0" \
 
 
16
  --freeze_feature_encoder \
 
 
 
 
 
17
  --gradient_checkpointing \
18
- --group_by_length \
19
- --push_to_hub \
20
  --use_auth_token \
21
- --do_train --do_eval
 
 
 
1
  python run_speech_recognition_ctc.py \
2
  --dataset_name="mozilla-foundation/common_voice_7_0" \
3
+ --model_name_or_path="facebook/wav2vec2-xls-r-300m" \
4
+ --dataset_config_name="sv-SE" \
5
  --output_dir="./" \
6
  --overwrite_output_dir \
7
  --max_steps="10" \
8
+ --per_device_train_batch_size="8" \
9
+ --per_device_eval_batch_size="8" \
10
+ --gradient_accumulation_steps="4" \
11
+ --learning_rate="7.5e-5" \
12
+ --warmup_steps="2000" \
13
+ --length_column_name="input_length" \
14
  --evaluation_strategy="steps" \
15
  --text_column_name="sentence" \
16
+ --chars_to_ignore , ? . ! \- \; \: \" “ % ‘ ” � — ’ … – \
17
  --save_steps="5" \
18
+ --eval_steps="5" \
19
+ --logging_steps="1" \
20
  --layerdrop="0.0" \
21
+ --activation_dropout="0.1" \
22
+ --save_total_limit="3" \
23
  --freeze_feature_encoder \
24
+ --feat_proj_dropout="0.0" \
25
+ --mask_time_prob="0.75" \
26
+ --mask_time_length="10" \
27
+ --mask_feature_prob="0.25" \
28
+ --mask_feature_length="64" \
29
  --gradient_checkpointing \
 
 
30
  --use_auth_token \
31
+ --group_by_length \
32
+ --do_train --do_eval \
33
+ --push_to_hub
run.sh CHANGED
@@ -1,22 +1,34 @@
1
  python run_speech_recognition_ctc.py \
2
  --dataset_name="mozilla-foundation/common_voice_7_0" \
3
- --model_name_or_path="hf-test/xls-r-dummy" \
4
- --dataset_config_name="ab" \
5
  --output_dir="./" \
6
  --overwrite_output_dir \
7
- --max_steps="10" \
8
- --per_device_train_batch_size="2" \
9
- --learning_rate="3e-4" \
10
- --save_total_limit="1" \
 
 
 
11
  --evaluation_strategy="steps" \
12
  --text_column_name="sentence" \
13
- --length_column_name="input_length" \
14
- --save_steps="5" \
 
 
15
  --layerdrop="0.0" \
 
 
16
  --freeze_feature_encoder \
 
 
 
 
 
17
  --gradient_checkpointing \
18
- # --fp16 \
19
- --group_by_length \
20
- --push_to_hub \
21
  --use_auth_token \
22
- --do_train --do_eval
 
 
 
 
1
  python run_speech_recognition_ctc.py \
2
  --dataset_name="mozilla-foundation/common_voice_7_0" \
3
+ --model_name_or_path="facebook/wav2vec2-xls-r-300m" \
4
+ --dataset_config_name="sv-SE" \
5
  --output_dir="./" \
6
  --overwrite_output_dir \
7
+ --num_train_epochs="50" \
8
+ --per_device_train_batch_size="8" \
9
+ --per_device_eval_batch_size="8" \
10
+ --gradient_accumulation_steps="4" \
11
+ --learning_rate="7.5e-5" \
12
+ --warmup_steps="2000" \
13
+ --length_column_name="input_length" \
14
  --evaluation_strategy="steps" \
15
  --text_column_name="sentence" \
16
+ --chars_to_ignore , ? . ! \- \; \: \" “ % ‘ ” � — ’ … – \
17
+ --save_steps="500" \
18
+ --eval_steps="500" \
19
+ --logging_steps="100" \
20
  --layerdrop="0.0" \
21
+ --activation_dropout="0.1" \
22
+ --save_total_limit="3" \
23
  --freeze_feature_encoder \
24
+ --feat_proj_dropout="0.0" \
25
+ --mask_time_prob="0.75" \
26
+ --mask_time_length="10" \
27
+ --mask_feature_prob="0.25" \
28
+ --mask_feature_length="64" \
29
  --gradient_checkpointing \
 
 
 
30
  --use_auth_token \
31
+ --fp16 \
32
+ --group_by_length \
33
+ --do_train --do_eval \
34
+ --push_to_hub
special_tokens_map.json DELETED
@@ -1 +0,0 @@
1
- {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "[UNK]", "pad_token": "[PAD]", "additional_special_tokens": [{"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}]}
 
 
tokenizer_config.json DELETED
@@ -1 +0,0 @@
1
- {"unk_token": "[UNK]", "bos_token": "<s>", "eos_token": "</s>", "pad_token": "[PAD]", "do_lower_case": false, "word_delimiter_token": "|", "special_tokens_map_file": null, "tokenizer_file": null, "name_or_path": "./", "tokenizer_class": "Wav2Vec2CTCTokenizer"}
 
 
train_results.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "epoch": 0.03,
3
- "train_loss": 93.28157958984374,
4
- "train_runtime": 23.9574,
5
- "train_samples": 704,
6
- "train_samples_per_second": 0.835,
7
- "train_steps_per_second": 0.417
8
- }
 
 
 
 
 
 
 
 
 
trainer_state.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "best_metric": null,
3
- "best_model_checkpoint": null,
4
- "epoch": 0.028409090909090908,
5
- "global_step": 10,
6
- "is_hyper_param_search": false,
7
- "is_local_process_zero": true,
8
- "is_world_process_zero": true,
9
- "log_history": [
10
- {
11
- "epoch": 0.03,
12
- "step": 10,
13
- "total_flos": 508182128640.0,
14
- "train_loss": 93.28157958984374,
15
- "train_runtime": 23.9574,
16
- "train_samples_per_second": 0.835,
17
- "train_steps_per_second": 0.417
18
- }
19
- ],
20
- "max_steps": 10,
21
- "num_train_epochs": 1,
22
- "total_flos": 508182128640.0,
23
- "trial_name": null,
24
- "trial_params": null
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
training_args.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0d984518be407c10d2f161021e8f4824522fcbc805d42098d3c9a603e88255e3
3
- size 2991
 
 
 
 
vocab.json DELETED
@@ -1 +0,0 @@
1
- {"!": 1, ",": 2, "-": 3, ".": 4, ":": 5, ";": 6, "?": 7, "а": 8, "б": 9, "в": 10, "г": 11, "д": 12, "е": 13, "ж": 14, "з": 15, "и": 16, "к": 17, "л": 18, "м": 19, "н": 20, "о": 21, "п": 22, "р": 23, "с": 24, "т": 25, "у": 26, "ф": 27, "х": 28, "ц": 29, "ч": 30, "ш": 31, "ы": 32, "ь": 33, "џ": 34, "қ": 35, "ҟ": 36, "ҩ": 37, "ҭ": 38, "ҳ": 39, "ҵ": 40, "ҷ": 41, "ҽ": 42, "ҿ": 43, "ә": 44, "ӡ": 45, "ӷ": 46, "ԥ": 47, "–": 48, "|": 0, "[UNK]": 49, "[PAD]": 50}