pranay-j commited on
Commit
aae5f89
1 Parent(s): e80aa63

update model card README.md

Browse files
Files changed (2) hide show
  1. README.md +82 -0
  2. fine-tune-whisper-streaming.ipynb +42 -6
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - vi
4
+ license: apache-2.0
5
+ tags:
6
+ - whisper-event
7
+ - generated_from_trainer
8
+ datasets:
9
+ - mozilla-foundation/common_voice_11_0
10
+ metrics:
11
+ - wer
12
+ model-index:
13
+ - name: Whisper large v2 vi
14
+ results:
15
+ - task:
16
+ name: Automatic Speech Recognition
17
+ type: automatic-speech-recognition
18
+ dataset:
19
+ name: common_voice_11_0
20
+ type: mozilla-foundation/common_voice_11_0
21
+ config: vi
22
+ split: test
23
+ args: vi
24
+ metrics:
25
+ - name: Wer
26
+ type: wer
27
+ value: 17.076113182715506
28
+ ---
29
+
30
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
31
+ should probably proofread and complete it, then remove this comment. -->
32
+
33
+ # Whisper large v2 vi
34
+
35
+ This model is a fine-tuned version of [openai/whisper-large-v2](https://huggingface.co/openai/whisper-large-v2) on the common_voice_11_0 dataset.
36
+ It achieves the following results on the evaluation set:
37
+ - Loss: 0.5530
38
+ - Wer: 17.0761
39
+
40
+ ## Model description
41
+
42
+ More information needed
43
+
44
+ ## Intended uses & limitations
45
+
46
+ More information needed
47
+
48
+ ## Training and evaluation data
49
+
50
+ More information needed
51
+
52
+ ## Training procedure
53
+
54
+ ### Training hyperparameters
55
+
56
+ The following hyperparameters were used during training:
57
+ - learning_rate: 1e-05
58
+ - train_batch_size: 8
59
+ - eval_batch_size: 8
60
+ - seed: 42
61
+ - gradient_accumulation_steps: 8
62
+ - total_train_batch_size: 64
63
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
64
+ - lr_scheduler_type: linear
65
+ - lr_scheduler_warmup_steps: 50
66
+ - training_steps: 300
67
+ - mixed_precision_training: Native AMP
68
+
69
+ ### Training results
70
+
71
+ | Training Loss | Epoch | Step | Validation Loss | Wer |
72
+ |:-------------:|:-----:|:----:|:---------------:|:-------:|
73
+ | 0.0012 | 21.01 | 150 | 0.5211 | 17.2845 |
74
+ | 0.0006 | 42.02 | 300 | 0.5530 | 17.0761 |
75
+
76
+
77
+ ### Framework versions
78
+
79
+ - Transformers 4.26.0.dev0
80
+ - Pytorch 1.13.1+cu117
81
+ - Datasets 2.8.1.dev0
82
+ - Tokenizers 0.13.2
fine-tune-whisper-streaming.ipynb CHANGED
@@ -847,7 +847,7 @@
847
  },
848
  {
849
  "cell_type": "code",
850
- "execution_count": null,
851
  "id": "ee8b7b8e-1c9a-4d77-9137-1778a629e6de",
852
  "metadata": {},
853
  "outputs": [
@@ -876,8 +876,8 @@
876
  "\n",
877
  " <div>\n",
878
  " \n",
879
- " <progress value='301' max='300' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
880
- " [300/300 1:52:52, Epoch 42.02/9223372036854775807]\n",
881
  " </div>\n",
882
  " <table border=\"1\" class=\"dataframe\">\n",
883
  " <thead>\n",
@@ -5682,8 +5682,24 @@
5682
  "Feature extractor saved in ./preprocessor_config.json\n",
5683
  "tokenizer config file saved in ./tokenizer_config.json\n",
5684
  "Special tokens file saved in ./special_tokens_map.json\n",
5685
- "added tokens file saved in ./added_tokens.json\n"
 
 
 
 
 
 
5686
  ]
 
 
 
 
 
 
 
 
 
 
5687
  }
5688
  ],
5689
  "source": [
@@ -5712,7 +5728,7 @@
5712
  },
5713
  {
5714
  "cell_type": "code",
5715
- "execution_count": null,
5716
  "id": "6dd0e310-9b07-4133-ac14-2ed2d7524e22",
5717
  "metadata": {},
5718
  "outputs": [],
@@ -5741,7 +5757,27 @@
5741
  "execution_count": null,
5742
  "id": "95737cda-c5dd-4887-a4d0-dfcb0d61d977",
5743
  "metadata": {},
5744
- "outputs": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5745
  "source": [
5746
  "trainer.push_to_hub(**kwargs)"
5747
  ]
 
847
  },
848
  {
849
  "cell_type": "code",
850
+ "execution_count": 22,
851
  "id": "ee8b7b8e-1c9a-4d77-9137-1778a629e6de",
852
  "metadata": {},
853
  "outputs": [
 
876
  "\n",
877
  " <div>\n",
878
  " \n",
879
+ " <progress value='300' max='300' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
880
+ " [300/300 2:15:47, Epoch 42/9223372036854775807]\n",
881
  " </div>\n",
882
  " <table border=\"1\" class=\"dataframe\">\n",
883
  " <thead>\n",
 
5682
  "Feature extractor saved in ./preprocessor_config.json\n",
5683
  "tokenizer config file saved in ./tokenizer_config.json\n",
5684
  "Special tokens file saved in ./special_tokens_map.json\n",
5685
+ "added tokens file saved in ./added_tokens.json\n",
5686
+ "\n",
5687
+ "\n",
5688
+ "Training completed. Do not forget to share your model on huggingface.co/models =)\n",
5689
+ "\n",
5690
+ "\n",
5691
+ "Loading best model from ./checkpoint-300 (score: 17.076113182715506).\n"
5692
  ]
5693
+ },
5694
+ {
5695
+ "data": {
5696
+ "text/plain": [
5697
+ "TrainOutput(global_step=300, training_loss=0.27811144128490317, metrics={'train_runtime': 8190.4014, 'train_samples_per_second': 2.344, 'train_steps_per_second': 0.037, 'total_flos': 4.50451963772928e+19, 'train_loss': 0.27811144128490317, 'epoch': 42.02})"
5698
+ ]
5699
+ },
5700
+ "execution_count": 22,
5701
+ "metadata": {},
5702
+ "output_type": "execute_result"
5703
  }
5704
  ],
5705
  "source": [
 
5728
  },
5729
  {
5730
  "cell_type": "code",
5731
+ "execution_count": 23,
5732
  "id": "6dd0e310-9b07-4133-ac14-2ed2d7524e22",
5733
  "metadata": {},
5734
  "outputs": [],
 
5757
  "execution_count": null,
5758
  "id": "95737cda-c5dd-4887-a4d0-dfcb0d61d977",
5759
  "metadata": {},
5760
+ "outputs": [
5761
+ {
5762
+ "name": "stderr",
5763
+ "output_type": "stream",
5764
+ "text": [
5765
+ "Saving model checkpoint to ./\n",
5766
+ "Configuration saved in ./config.json\n",
5767
+ "Model weights saved in ./pytorch_model.bin\n",
5768
+ "Feature extractor saved in ./preprocessor_config.json\n",
5769
+ "tokenizer config file saved in ./tokenizer_config.json\n",
5770
+ "Special tokens file saved in ./special_tokens_map.json\n",
5771
+ "added tokens file saved in ./added_tokens.json\n",
5772
+ "Several commits (2) will be pushed upstream.\n",
5773
+ "The progress bars may be unreliable.\n",
5774
+ "Upload file pytorch_model.bin: 0%| | 1.00/5.75G [00:00<?, ?B/s]\n",
5775
+ "Upload file runs/Dec20_16-04-54_129-146-50-243/events.out.tfevents.1671552308.129-146-50-243.731508.0: 0%| | 1.00/50.8\u001b[A\n",
5776
+ "Upload file runs/Dec20_16-04-54_129-146-50-243/events.out.tfevents.1671552308.129-146-50-243.731508.0: 4.66GB [00:01, 4.99GB/s]\u001b[A\n",
5777
+ "Upload file runs/Dec20_16-04-54_129-146-50-243/events.out.tfevents.1671552308.129-146-50-243.731508.0: 4.66GB [00:14, 4.99GB/s]\u001b[A"
5778
+ ]
5779
+ }
5780
+ ],
5781
  "source": [
5782
  "trainer.push_to_hub(**kwargs)"
5783
  ]