Automatic Speech Recognition
Transformers
PyTorch
whisper
whisper-medium
asr
zh-TW
Eval Results (legacy)
Instructions to use Jasper881108/whisper-medium-zh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jasper881108/whisper-medium-zh with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="Jasper881108/whisper-medium-zh")# Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("Jasper881108/whisper-medium-zh") model = AutoModelForSpeechSeq2Seq.from_pretrained("Jasper881108/whisper-medium-zh", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from Jasper881108/whisper-medium-zh: direct link, hf CLI and curl.
- Browser
- Download file 1.88 kB
-
https://huggingface.co/Jasper881108/whisper-medium-zh/resolve/main/README.md
- Command line
-
hf download hf://Jasper881108/whisper-medium-zh/README.md
-
curl -L -o README.md https://huggingface.co/Jasper881108/whisper-medium-zh/resolve/main/README.md
1.88 kB
| license: apache-2.0 | |
| tags: | |
| - whisper-medium | |
| - asr | |
| - zh-TW | |
| datasets: | |
| - mozilla-foundation/common_voice_11_0 | |
| model-index: | |
| - name: Whisper Medium TW | |
| results: | |
| - task: | |
| type: automatic-speech-recognition | |
| name: Automatic Speech Recognition | |
| dataset: | |
| name: mozilla-foundation/common_voice_11_0 | |
| type: mozilla-foundation/common_voice_11_0 | |
| config: zh-TW | |
| split: test | |
| metrics: | |
| - type: wer | |
| value: 7.38 | |
| name: WER | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # Whisper Medium TW | |
| This model is a fine-tuned version of [openai/whisper-medium](https://huggingface.co/openai/whisper-medium) on the mozilla-foundation/common_voice_11_0 dataset. | |
| ## Training and evaluation data | |
| Training: | |
| - [mozilla-foundation/common_voice_11_0](https://huggingface.co/datasets/mozilla-foundation/common_voice_11_0) (train+validation) | |
| Evaluation: | |
| - [mozilla-foundation/common_voice_11_0](https://huggingface.co/datasets/mozilla-foundation/common_voice_11_0) (test) | |
| ## Training procedure | |
| - Datasets were augmented using [audiomentations](https://github.com/iver56/audiomentations) via PitchShift, TimeStretch, Gain, AddGaussianNoise transformations at `p=0.3`. | |
| - A space is added between each Chinese character, as demonstrated in the original paper. Effectively, WER == CER in this case. | |
| ### Training hyperparameters | |
| The following hyperparameters were used during training: | |
| - learning_rate: 1e-05 | |
| - train_batch_size: 1 | |
| - eval_batch_size: 1 | |
| - gradient_accumulation_steps: 32 | |
| - optimizer: Adam | |
| - generation_max_length: 225, | |
| - warmup_steps: 200 | |
| - max_steps: 2000, | |
| - fp16: True, | |
| - evaluation_strategy: "steps", | |
| ### Framework versions | |
| - Transformers 4.27.1 | |
| - Pytorch 2.0.1+cu120 | |
| - Datasets 2.13.1 | |