Model save
Browse files- README.md +67 -0
- config.json +58 -0
- generation_config.json +101 -0
- model.safetensors +3 -0
- preprocessor_config.json +14 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: openai/whisper-small.en
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- wer
|
| 8 |
+
model-index:
|
| 9 |
+
- name: checkpoints_1
|
| 10 |
+
results: []
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 14 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 15 |
+
|
| 16 |
+
# checkpoints_1
|
| 17 |
+
|
| 18 |
+
This model is a fine-tuned version of [openai/whisper-small.en](https://huggingface.co/openai/whisper-small.en) on an unknown dataset.
|
| 19 |
+
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 0.0186
|
| 21 |
+
- Wer: 2.9762
|
| 22 |
+
- Cer: 1.0999
|
| 23 |
+
|
| 24 |
+
## Model description
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Intended uses & limitations
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training and evaluation data
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training procedure
|
| 37 |
+
|
| 38 |
+
### Training hyperparameters
|
| 39 |
+
|
| 40 |
+
The following hyperparameters were used during training:
|
| 41 |
+
- learning_rate: 5e-05
|
| 42 |
+
- train_batch_size: 16
|
| 43 |
+
- eval_batch_size: 8
|
| 44 |
+
- seed: 42
|
| 45 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 46 |
+
- lr_scheduler_type: cosine
|
| 47 |
+
- lr_scheduler_warmup_steps: 1000
|
| 48 |
+
- num_epochs: 1
|
| 49 |
+
- mixed_precision_training: Native AMP
|
| 50 |
+
|
| 51 |
+
### Training results
|
| 52 |
+
|
| 53 |
+
| Training Loss | Epoch | Step | Cer | Validation Loss | Wer |
|
| 54 |
+
|:-------------:|:------:|:-----:|:------:|:---------------:|:------:|
|
| 55 |
+
| 0.0529 | 0.5716 | 5000 | 3.5532 | 0.0494 | 7.8609 |
|
| 56 |
+
| 0.028 | 1.1432 | 10000 | 5.5656 | 0.0413 | 9.7632 |
|
| 57 |
+
| 0.0298 | 1.7149 | 15000 | 2.9926 | 0.0350 | 6.4210 |
|
| 58 |
+
| 0.0133 | 2.2865 | 20000 | 2.1896 | 0.0322 | 5.0360 |
|
| 59 |
+
| 0.0105 | 2.8581 | 25000 | 2.0795 | 0.0307 | 4.7797 |
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
### Framework versions
|
| 63 |
+
|
| 64 |
+
- Transformers 4.42.3
|
| 65 |
+
- Pytorch 2.3.1+cu121
|
| 66 |
+
- Datasets 2.20.0
|
| 67 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "openai/whisper-small.en",
|
| 3 |
+
"activation_dropout": 0.0,
|
| 4 |
+
"activation_function": "gelu",
|
| 5 |
+
"apply_spec_augment": false,
|
| 6 |
+
"architectures": [
|
| 7 |
+
"WhisperForConditionalGeneration"
|
| 8 |
+
],
|
| 9 |
+
"attention_dropout": 0.0,
|
| 10 |
+
"begin_suppress_tokens": [
|
| 11 |
+
1541
|
| 12 |
+
],
|
| 13 |
+
"bos_token_id": 1546,
|
| 14 |
+
"classifier_proj_size": 256,
|
| 15 |
+
"d_model": 768,
|
| 16 |
+
"decoder_attention_heads": 12,
|
| 17 |
+
"decoder_ffn_dim": 3072,
|
| 18 |
+
"decoder_layerdrop": 0.0,
|
| 19 |
+
"decoder_layers": 12,
|
| 20 |
+
"decoder_start_token_id": 1546,
|
| 21 |
+
"dropout": 0.0,
|
| 22 |
+
"encoder_attention_heads": 12,
|
| 23 |
+
"encoder_ffn_dim": 3072,
|
| 24 |
+
"encoder_layerdrop": 0.0,
|
| 25 |
+
"encoder_layers": 12,
|
| 26 |
+
"eos_token_id": 1541,
|
| 27 |
+
"forced_decoder_ids": null,
|
| 28 |
+
"init_std": 0.02,
|
| 29 |
+
"is_encoder_decoder": true,
|
| 30 |
+
"mask_feature_length": 10,
|
| 31 |
+
"mask_feature_min_masks": 0,
|
| 32 |
+
"mask_feature_prob": 0.0,
|
| 33 |
+
"mask_time_length": 10,
|
| 34 |
+
"mask_time_min_masks": 2,
|
| 35 |
+
"mask_time_prob": 0.05,
|
| 36 |
+
"max_length": 448,
|
| 37 |
+
"max_source_positions": 1500,
|
| 38 |
+
"max_target_positions": 448,
|
| 39 |
+
"median_filter_width": 7,
|
| 40 |
+
"model_type": "whisper",
|
| 41 |
+
"num_hidden_layers": 12,
|
| 42 |
+
"num_mel_bins": 80,
|
| 43 |
+
"pad_token_id": 1541,
|
| 44 |
+
"scale_embedding": false,
|
| 45 |
+
"suppress_tokens": [
|
| 46 |
+
1546,
|
| 47 |
+
1548,
|
| 48 |
+
1547,
|
| 49 |
+
1544,
|
| 50 |
+
1545,
|
| 51 |
+
1542
|
| 52 |
+
],
|
| 53 |
+
"torch_dtype": "float32",
|
| 54 |
+
"transformers_version": "4.42.3",
|
| 55 |
+
"use_cache": true,
|
| 56 |
+
"use_weighted_layer_sum": false,
|
| 57 |
+
"vocab_size": 1549
|
| 58 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
| 73 |
+
2
|
| 74 |
+
],
|
| 75 |
+
[
|
| 76 |
+
11,
|
| 77 |
+
4
|
| 78 |
+
]
|
| 79 |
+
],
|
| 80 |
+
"begin_suppress_tokens": [
|
| 81 |
+
1541
|
| 82 |
+
],
|
| 83 |
+
"bos_token_id": 1546,
|
| 84 |
+
"decoder_start_token_id": 1546,
|
| 85 |
+
"eos_token_id": 1541,
|
| 86 |
+
"is_multilingual": false,
|
| 87 |
+
"max_initial_timestamp_index": 50,
|
| 88 |
+
"max_length": 448,
|
| 89 |
+
"no_timestamps_token_id": 1543,
|
| 90 |
+
"pad_token_id": 1541,
|
| 91 |
+
"prev_sot_token_id": 1545,
|
| 92 |
+
"suppress_tokens": [
|
| 93 |
+
1546,
|
| 94 |
+
1548,
|
| 95 |
+
1547,
|
| 96 |
+
1544,
|
| 97 |
+
1545,
|
| 98 |
+
1542
|
| 99 |
+
],
|
| 100 |
+
"transformers_version": "4.42.3"
|
| 101 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:843fee5c155158d8481d09c9f7589fa2fac7e2b24dff61e6361f262b363ee0b5
|
| 3 |
+
size 817182816
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"chunk_length": 30,
|
| 3 |
+
"feature_extractor_type": "WhisperFeatureExtractor",
|
| 4 |
+
"feature_size": 80,
|
| 5 |
+
"hop_length": 160,
|
| 6 |
+
"n_fft": 400,
|
| 7 |
+
"n_samples": 480000,
|
| 8 |
+
"nb_max_frames": 3000,
|
| 9 |
+
"padding_side": "right",
|
| 10 |
+
"padding_value": 0.0,
|
| 11 |
+
"processor_class": "WhisperProcessor",
|
| 12 |
+
"return_attention_mask": false,
|
| 13 |
+
"sampling_rate": 16000
|
| 14 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f69fb4ded8615f00095eaf37f2a4dcb4dd6a305513ecdb097b4d301cde57a5f2
|
| 3 |
+
size 7480
|