diff --git "a/log/train_log" "b/log/train_log" new file mode 100644--- /dev/null +++ "b/log/train_log" @@ -0,0 +1,21250 @@ +# Running on vgni005 +# Started at Mon 28 Nov 08:08:31 CET 2022 +# python3 src/run_speech_recognition_ctc.py --report_to=none --run_name=experiments/results/bs_exp/linear/wav2vec2-xls-r-300m/atcosim_uwb_atcc/0.0ld_0.0ad_0.0attd_0.05fpd_0.075mtp_12mtl_0.0mfp_12mfl_1acc/ --preprocessing_num_workers=5 --model_name_or_path=facebook/wav2vec2-xls-r-300m --dataset_name=experiments/data/atcosim_uwb_atcc/train --min_duration_in_seconds=0.2 --max_duration_in_seconds=20 --eval_dataset_name=experiments/data/atcosim_uwb_atcc/test --train_split_name=train --output_dir=experiments/results/bs_exp/linear/wav2vec2-xls-r-300m/atcosim_uwb_atcc/0.0ld_0.0ad_0.0attd_0.05fpd_0.075mtp_12mtl_0.0mfp_12mfl_1acc/ --num_train_epochs=50 --per_device_train_batch_size=24 --per_device_eval_batch_size=12 --gradient_accumulation_steps=1 --learning_rate=1e-4 --weight_decay=0.001 --warmup_steps=1000 --evaluation_strategy=steps --text_column_name=text --audio_column_name=audio --length_column_name=input_length '--chars_to_ignore=, ? . ! \; \: " “ % ‘ ” � — ’ … –' --save_steps=1000 --eval_steps=500 --logging_steps=1000 --layerdrop=0.0 --activation_dropout=0.0 --attention_dropout=0.0 --save_total_limit=1 --feat_proj_dropout=0.05 --mask_time_prob=0.075 --mask_time_length=12 --mask_feature_prob=0.0 --mask_feature_length=12 --gradient_checkpointing --freeze_feature_encoder --fp16 --group_by_length --do_train --do_eval --max_steps 10000 --overwrite_output_dir --freeze_feature_encoder +11/28/2022 08:08:41 - WARNING - __main__ - Process rank: -1, device: cuda:0, n_gpu: 1distributed training: False, 16-bits training: True +11/28/2022 08:08:41 - INFO - __main__ - Training/evaluation parameters TrainingArguments( +_n_gpu=1, +adafactor=False, +adam_beta1=0.9, +adam_beta2=0.999, +adam_epsilon=1e-08, +auto_find_batch_size=False, +bf16=False, +bf16_full_eval=False, +data_seed=None, +dataloader_drop_last=False, +dataloader_num_workers=0, +dataloader_pin_memory=True, +ddp_bucket_cap_mb=None, +ddp_find_unused_parameters=None, +ddp_timeout=1800, +debug=[], +deepspeed=None, +disable_tqdm=False, +do_eval=True, +do_predict=False, +do_train=True, +eval_accumulation_steps=None, +eval_delay=0, +eval_steps=500, +evaluation_strategy=steps, +fp16=True, +fp16_backend=auto, +fp16_full_eval=False, +fp16_opt_level=O1, +fsdp=[], +fsdp_min_num_params=0, +fsdp_transformer_layer_cls_to_wrap=None, +full_determinism=False, +gradient_accumulation_steps=1, +gradient_checkpointing=True, +greater_is_better=None, +group_by_length=True, +half_precision_backend=auto, +hub_model_id=None, +hub_private_repo=False, +hub_strategy=every_save, +hub_token=, +ignore_data_skip=False, +include_inputs_for_metrics=False, +jit_mode_eval=False, +label_names=None, +label_smoothing_factor=0.0, +learning_rate=0.0001, +length_column_name=input_length, +load_best_model_at_end=False, +local_rank=-1, +log_level=passive, +log_level_replica=passive, +log_on_each_node=True, +logging_dir=experiments/results/bs_exp/linear/wav2vec2-xls-r-300m/atcosim_uwb_atcc/0.0ld_0.0ad_0.0attd_0.05fpd_0.075mtp_12mtl_0.0mfp_12mfl_1acc/runs/Nov28_08-08-40_vgni005, +logging_first_step=False, +logging_nan_inf_filter=True, +logging_steps=1000, +logging_strategy=steps, +lr_scheduler_type=linear, +max_grad_norm=1.0, +max_steps=10000, +metric_for_best_model=None, +mp_parameters=, +no_cuda=False, +num_train_epochs=50.0, +optim=adamw_hf, +output_dir=experiments/results/bs_exp/linear/wav2vec2-xls-r-300m/atcosim_uwb_atcc/0.0ld_0.0ad_0.0attd_0.05fpd_0.075mtp_12mtl_0.0mfp_12mfl_1acc/, +overwrite_output_dir=True, +past_index=-1, +per_device_eval_batch_size=12, +per_device_train_batch_size=24, +prediction_loss_only=False, +push_to_hub=False, +push_to_hub_model_id=None, +push_to_hub_organization=None, +push_to_hub_token=, +ray_scope=last, +remove_unused_columns=True, +report_to=[], +resume_from_checkpoint=None, +run_name=experiments/results/bs_exp/linear/wav2vec2-xls-r-300m/atcosim_uwb_atcc/0.0ld_0.0ad_0.0attd_0.05fpd_0.075mtp_12mtl_0.0mfp_12mfl_1acc/, +save_on_each_node=False, +save_steps=1000, +save_strategy=steps, +save_total_limit=1, +seed=42, +sharded_ddp=[], +skip_memory_metrics=True, +tf32=None, +torchdynamo=None, +tpu_metrics_debug=False, +tpu_num_cores=None, +use_ipex=False, +use_legacy_prediction_loop=False, +use_mps_device=False, +warmup_ratio=0.0, +warmup_steps=1000, +weight_decay=0.001, +xpu_backend=None, +) +11/28/2022 08:08:41 - WARNING - datasets.builder - Using custom data configuration train-229a51d735ef0a2b +Downloading and preparing dataset atc_data_loader/train to /remote/idiap.svm/temp.speech01/jzuluaga/experiments/journal/asr/github/w2v2-air-traffic/.cache/experiments/results/bs_exp/linear/wav2vec2-xls-r-300m/atcosim_uwb_atcc/0.0ld_0.0ad_0.0attd_0.05fpd_0.075mtp_12mtl_0.0mfp_12mfl_1acc//train/atc_data_loader/train-229a51d735ef0a2b/0.0.0/f2633cc53c6abe32cddd4152eebde1a4e3c9953e1446e190b8d9a13330cddaa4... + Generating train split: 0 examples [00:00, ? examples/s] Generating train split: 1 examples [00:54, 54.64s/ examples] Generating train split: 256 examples [00:54, 6.63 examples/s] Generating train split: 512 examples [00:55, 15.95 examples/s] Generating train split: 768 examples [00:55, 29.06 examples/s] Generating train split: 1024 examples [00:55, 47.30 examples/s] Generating train split: 1280 examples [00:55, 72.16 examples/s] Generating train split: 1536 examples [00:56, 106.20 examples/s] Generating train split: 1792 examples [00:56, 151.44 examples/s] Generating train split: 2048 examples [00:56, 210.65 examples/s] Generating train split: 2304 examples [00:56, 284.12 examples/s] Generating train split: 2560 examples [00:56, 373.03 examples/s] Generating train split: 2816 examples [00:57, 462.26 examples/s] Generating train split: 3072 examples [00:57, 569.41 examples/s] Generating train split: 3328 examples [00:57, 662.72 examples/s] Generating train split: 3584 examples [00:57, 785.46 examples/s] Generating train split: 3840 examples [00:58, 883.15 examples/s] Generating train split: 4096 examples [00:58, 934.34 examples/s] Generating train split: 4352 examples [00:58, 1012.02 examples/s] Generating train split: 4608 examples [00:58, 1030.96 examples/s] Generating train split: 4864 examples [00:58, 1032.64 examples/s] Generating train split: 5120 examples [00:59, 1080.83 examples/s] Generating train split: 5376 examples [00:59, 1125.70 examples/s] Generating train split: 5632 examples [00:59, 1136.03 examples/s] Generating train split: 5888 examples [00:59, 1187.75 examples/s] Generating train split: 6144 examples [00:59, 1229.16 examples/s] Generating train split: 6400 examples [01:00, 1198.44 examples/s] Generating train split: 6656 examples [01:00, 1181.20 examples/s] Generating train split: 6912 examples [01:00, 1210.01 examples/s] Generating train split: 7168 examples [01:00, 1161.02 examples/s] Generating train split: 7424 examples [01:01, 1173.72 examples/s] Generating train split: 7680 examples [01:01, 1225.09 examples/s] Generating train split: 8191 examples [01:01, 1885.97 examples/s] Generating train split: 8625 examples [01:01, 2365.48 examples/s] Generating train split: 8960 examples [01:01, 2529.17 examples/s] Generating train split: 9297 examples [01:01, 2725.16 examples/s] Generating train split: 9728 examples [01:01, 2889.38 examples/s] Generating train split: 10227 examples [01:01, 3411.36 examples/s] Generating train split: 10610 examples [01:01, 3520.44 examples/s] Generating train split: 10986 examples [01:02, 3583.63 examples/s] Generating train split: 11361 examples [01:02, 3267.76 examples/s] Generating train split: 11776 examples [01:02, 3243.54 examples/s] Generating train split: 12273 examples [01:02, 3690.99 examples/s] Generating train split: 12657 examples [01:02, 3693.71 examples/s] Generating train split: 13056 examples [01:02, 3722.70 examples/s] Generating train split: 13567 examples [01:02, 4110.42 examples/s] Generating train split: 13986 examples [01:02, 4045.17 examples/s] Generating train split: 14458 examples [01:02, 4236.80 examples/s] Generating train split: 14887 examples [01:03, 4215.27 examples/s] Generating train split: 15360 examples [01:03, 4194.95 examples/s] Generating train split: 15872 examples [01:03, 4252.87 examples/s] Generating train split: 16384 examples [01:03, 4320.55 examples/s] Generating train split: 16896 examples [01:03, 4254.33 examples/s] Generating train split: 17408 examples [01:03, 4104.68 examples/s] Generating train split: 17920 examples [01:03, 4012.44 examples/s] Generating train split: 18432 examples [01:03, 4026.77 examples/s] Dataset atc_data_loader downloaded and prepared to /remote/idiap.svm/temp.speech01/jzuluaga/experiments/journal/asr/github/w2v2-air-traffic/.cache/experiments/results/bs_exp/linear/wav2vec2-xls-r-300m/atcosim_uwb_atcc/0.0ld_0.0ad_0.0attd_0.05fpd_0.075mtp_12mtl_0.0mfp_12mfl_1acc//train/atc_data_loader/train-229a51d735ef0a2b/0.0.0/f2633cc53c6abe32cddd4152eebde1a4e3c9953e1446e190b8d9a13330cddaa4. Subsequent calls will reuse this data. +11/28/2022 08:09:56 - WARNING - datasets.builder - Using custom data configuration test-b7cef58c6dbd7d6c +Downloading and preparing dataset atc_data_loader/test to /remote/idiap.svm/temp.speech01/jzuluaga/experiments/journal/asr/github/w2v2-air-traffic/.cache/experiments/results/bs_exp/linear/wav2vec2-xls-r-300m/atcosim_uwb_atcc/0.0ld_0.0ad_0.0attd_0.05fpd_0.075mtp_12mtl_0.0mfp_12mfl_1acc//test/atc_data_loader/test-b7cef58c6dbd7d6c/0.0.0/f2633cc53c6abe32cddd4152eebde1a4e3c9953e1446e190b8d9a13330cddaa4... + Generating test split: 0 examples [00:00, ? examples/s] Generating test split: 1 examples [00:14, 14.52s/ examples] Generating test split: 256 examples [00:14, 24.56 examples/s] Generating test split: 512 examples [00:15, 57.78 examples/s] Generating test split: 768 examples [00:15, 102.62 examples/s] Generating test split: 1024 examples [00:15, 161.11 examples/s] Generating test split: 1280 examples [00:15, 235.21 examples/s] Generating test split: 1536 examples [00:15, 320.98 examples/s] Generating test split: 1792 examples [00:16, 418.34 examples/s] Generating test split: 2048 examples [00:16, 562.77 examples/s] Generating test split: 2526 examples [00:16, 946.05 examples/s] Generating test split: 2816 examples [00:16, 1170.31 examples/s] Generating test split: 3328 examples [00:16, 1668.28 examples/s] Generating test split: 3840 examples [00:16, 2137.26 examples/s] Generating test split: 4352 examples [00:16, 2599.47 examples/s] loading configuration file config.json from cache at /idiap/temp/jzuluaga/cache/huggingface/models--facebook--wav2vec2-xls-r-300m/snapshots/1a640f32ac3e39899438a2931f9924c02f080a54/config.json +Model config Wav2Vec2Config { + "_name_or_path": "facebook/wav2vec2-xls-r-300m", + "activation_dropout": 0.0, + "adapter_kernel_size": 3, + "adapter_stride": 2, + "add_adapter": false, + "apply_spec_augment": true, + "architectures": [ + "Wav2Vec2ForPreTraining" + ], + "attention_dropout": 0.1, + "bos_token_id": 1, + "classifier_proj_size": 256, + "codevector_dim": 768, + "contrastive_logits_temperature": 0.1, + "conv_bias": true, + "conv_dim": [ + 512, + 512, + 512, + 512, + 512, + 512, + 512 + ], + "conv_kernel": [ + 10, + 3, + 3, + 3, + 3, + 2, + 2 + ], + "conv_stride": [ + 5, + 2, + 2, + 2, + 2, + 2, + 2 + ], + "ctc_loss_reduction": "sum", + "ctc_zero_infinity": false, + "diversity_loss_weight": 0.1, + "do_stable_layer_norm": true, + "eos_token_id": 2, + "feat_extract_activation": "gelu", + "feat_extract_dropout": 0.0, + "feat_extract_norm": "layer", + "feat_proj_dropout": 0.1, + "feat_quantizer_dropout": 0.0, + "final_dropout": 0.0, + "gradient_checkpointing": false, + "hidden_act": "gelu", + "hidden_dropout": 0.1, + "hidden_size": 1024, + "initializer_range": 0.02, + "intermediate_size": 4096, + "layer_norm_eps": 1e-05, + "layerdrop": 0.1, + "mask_feature_length": 10, + "mask_feature_min_masks": 0, + "mask_feature_prob": 0.0, + "mask_time_length": 10, + "mask_time_min_masks": 2, + "mask_time_prob": 0.075, + "model_type": "wav2vec2", + "num_adapter_layers": 3, + "num_attention_heads": 16, + "num_codevector_groups": 2, + "num_codevectors_per_group": 320, + "num_conv_pos_embedding_groups": 16, + "num_conv_pos_embeddings": 128, + "num_feat_extract_layers": 7, + "num_hidden_layers": 24, + "num_negatives": 100, + "output_hidden_size": 1024, + "pad_token_id": 0, + "proj_codevector_dim": 768, + "tdnn_dilation": [ + 1, + 2, + 3, + 1, + 1 + ], + "tdnn_dim": [ + 512, + 512, + 512, + 512, + 1500 + ], + "tdnn_kernel": [ + 5, + 3, + 3, + 1, + 1 + ], + "torch_dtype": "float32", + "transformers_version": "4.24.0", + "use_weighted_layer_sum": false, + "vocab_size": 32, + "xvector_output_dim": 512 +} + +Dataset atc_data_loader downloaded and prepared to /remote/idiap.svm/temp.speech01/jzuluaga/experiments/journal/asr/github/w2v2-air-traffic/.cache/experiments/results/bs_exp/linear/wav2vec2-xls-r-300m/atcosim_uwb_atcc/0.0ld_0.0ad_0.0attd_0.05fpd_0.075mtp_12mtl_0.0mfp_12mfl_1acc//test/atc_data_loader/test-b7cef58c6dbd7d6c/0.0.0/f2633cc53c6abe32cddd4152eebde1a4e3c9953e1446e190b8d9a13330cddaa4. Subsequent calls will reuse this data. + 0%| | 0/1 [00:00 to the vocabulary +Adding to the vocabulary +Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained. +loading configuration file preprocessor_config.json from cache at /idiap/temp/jzuluaga/cache/huggingface/models--facebook--wav2vec2-xls-r-300m/snapshots/1a640f32ac3e39899438a2931f9924c02f080a54/preprocessor_config.json +Feature extractor Wav2Vec2FeatureExtractor { + "do_normalize": true, + "feature_extractor_type": "Wav2Vec2FeatureExtractor", + "feature_size": 1, + "padding_side": "right", + "padding_value": 0, + "return_attention_mask": true, + "sampling_rate": 16000 +} + +loading weights file pytorch_model.bin from cache at /idiap/temp/jzuluaga/cache/huggingface/models--facebook--wav2vec2-xls-r-300m/snapshots/1a640f32ac3e39899438a2931f9924c02f080a54/pytorch_model.bin +Some weights of the model checkpoint at facebook/wav2vec2-xls-r-300m were not used when initializing Wav2Vec2ForCTC: ['project_q.bias', 'project_q.weight', 'project_hid.weight', 'quantizer.weight_proj.bias', 'quantizer.weight_proj.weight', 'project_hid.bias', 'quantizer.codevectors'] +- This IS expected if you are initializing Wav2Vec2ForCTC from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model). +- This IS NOT expected if you are initializing Wav2Vec2ForCTC from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model). +Some weights of Wav2Vec2ForCTC were not initialized from the model checkpoint at facebook/wav2vec2-xls-r-300m and are newly initialized: ['lm_head.bias', 'lm_head.weight'] +You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference. + preprocess datasets #0: 0%| | 0/3786 [00:00 to the vocabulary +Adding to the vocabulary +max_steps is given, it will override any value given in num_train_epochs +Using cuda_amp half precision backend +The following columns in the training set don't have a corresponding argument in `Wav2Vec2ForCTC.forward` and have been ignored: input_length. If input_length are not expected by `Wav2Vec2ForCTC.forward`, you can safely ignore this message. +/idiap/user/jzuluaga/miniconda3/envs/w2v2/lib/python3.10/site-packages/transformers/optimization.py:306: FutureWarning: This implementation of AdamW is deprecated and will be removed in a future version. Use the PyTorch implementation torch.optim.AdamW instead, or set `no_deprecation_warning=True` to disable this warning + warnings.warn( +***** Running training ***** + Num examples = 18925 + Num Epochs = 13 + Instantaneous batch size per device = 24 + Total train batch size (w. parallel, distributed & accumulation) = 24 + Gradient Accumulation steps = 1 + Total optimization steps = 10000 + Number of trainable parameters = 311260319 + 0%| | 0/10000 [00:00