Automatic Speech Recognition
Transformers
PyTorch
whisper
audio
speech
wav2vec2
Eval Results (legacy)
Run this model with HF Jobs
Run devasheeshG/whisper_medium_fp16_transformers on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/devasheeshG/whisper_medium_fp16_transformers. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/devasheeshG/whisper_medium_fp16_transformers on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use devasheeshG/whisper_medium_fp16_transformers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use devasheeshG/whisper_medium_fp16_transformers with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="devasheeshG/whisper_medium_fp16_transformers")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("devasheeshG/whisper_medium_fp16_transformers") model = AutoModelForSpeechSeq2Seq.from_pretrained("devasheeshG/whisper_medium_fp16_transformers", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
fbc6b69
1
Parent(s): 94be451
added benchmarks
Browse filesFiles changed (2)
- README.md+100-4
- __init__.py-16
3 unmodified lines45678910106 unmodified lines1171181191201211221236 unmodified lines1301311321331341351361371381391401411421431441451463 unmodified linestags:- pytorch- audio- automatic-speech-recognitionlanguage:- en- zh106 unmodified lines* transformers Version: 4.30.2* accelerate Version: 0.20.3## BENCHMARK:- RAM: 2.8 GB (Original_Model: 5.5GB)- VRAM: 1812 MB (Original_Model: 6GB)6 unmodified lines| 1660 Super | OOM | 3.3 | 1,408 | - || Collab (Tesla T4) | 2.8 | 2.2 | 2,560 | 320 || Collab (CPU) | 35 | - | - | - |- **NOTE: TensorCores are efficient in mixed-precision calculations**- CPU -> torch.float16 not supported on CPU (AMD Ryzen 5 3600 or Collab GPU)- Punchuation: True## UsageA file ``__init__.py`` is contained inside this repo which contains all the code to use this model.Firstly, clone this repo and place all the files inside a folder.# Make sure you have git-lfs installed (https://git-lfs.com)```bashgit lfs installgit clone https://huggingface.co/devasheeshG/whisper_medium_fp16_transformers3 unmodified lines45678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879106 unmodified lines1861871881891901911926 unmodified lines1992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412423 unmodified linestags:- pytorch- audio- speech- automatic-speech-recognition- whisper- wav2vec2model-index:- name: whisper_medium_fp16_transformersresults:- task:type: automatic-speech-recognitionname: Automatic Speech Recognitiondataset:type: common_voicename: Common Voice (14.0) (Hindi) (test.tsv -> 2557 samples used)metrics:- type: wervalue: 1.7name: Test WERdescription: Word Error Rate- type: mervalue: 1.1name: Test MERdescription: Match Error Rate- type: wilvalue: 3,584name: Test WILdescription: Word Information Lost- type: wipvalue: 112name: Test WIPdescription: Word Information Preserved- type: cervalue: 1.7name: Test CERdescription: Character Error Rate- task:type: automatic-speech-recognitionname: Automatic Speech Recognitiondataset:type: common_voicename: Common Voice (14.0) (English) (test.tsv -> 2557 samples used)metrics:- type: wervalue: -name: Test WERdescription: Word Error Rate- type: mervalue: -name: Test MERdescription: Match Error Rate- type: wilvalue: -name: Test WILdescription: Word Information Lost- type: wipvalue: -name: Test WIPdescription: Word Information Preserved- type: cervalue: -name: Test CERdescription: Character Error Ratewidget:- example_title: Librispeech sample 1src: https://cdn-media.huggingface.co/speech_samples/sample1.flac- example_title: Librispeech sample 2src: https://cdn-media.huggingface.co/speech_samples/sample2.flaclanguage:- en- zh106 unmodified lines* transformers Version: 4.30.2* accelerate Version: 0.20.3## Model Benchmarks:- RAM: 2.8 GB (Original_Model: 5.5GB)- VRAM: 1812 MB (Original_Model: 6GB)6 unmodified lines| 1660 Super | OOM | 3.3 | 1,408 | - || Collab (Tesla T4) | 2.8 | 2.2 | 2,560 | 320 || Collab (CPU) | 35 | - | - | - || M1 (CPU) | - | - | - | - || M1 (GPU -> 'mps') | - | - | - | - |- **NOTE: TensorCores are efficient in mixed-precision calculations**- **CPU -> torch.float16 not supported on CPU (AMD Ryzen 5 3600 or Collab GPU)**- Punchuation: True## Model Error Benchmarks:- **WER: Word Error Rate**- **MER: Match Error Rate**- **WIL: Word Information Lost**- **WIP: Word Information Preserved**- **CER: Character Error Rate**### Hindi (test.tsv -> 2557 samples used) [Common Voice 14.0](https://commonvoice.mozilla.org/en/datasets)| | WER | MER | WIL | WIP | CER || ----------------- | -------------------- | ------- | --------- | ----------- | --- || Original_Model | - | - | - | - | - || This_Model | - | - | - | - | - |### English| | WER | MER | WIL | WIP | CER || ----------------- | -------------------- | ------- | --------- | ----------- | --- || Original_Model | - | - | - | - | - || This_Model | - | - | - | - | - |- **'jiwer' library is used for calculations**## Code:- ### [$\textbf{Will be soon Uploaded on Github}$ ](https://github.com/devasheeshG)## UsageA file ``__init__.py`` is contained inside this repo which contains all the code to use this model.Firstly, clone this repo and place all the files inside a folder.### Make sure you have git-lfs installed (https://git-lfs.com)```bashgit lfs installgit clone https://huggingface.co/devasheeshG/whisper_medium_fp16_transformers
12345678910111213141516171819"""CUDA: 12.1cuDNN Version: 8.9.2.26_1.0-1_amd64Tensorflow Version: 2.12.0Torch Version: 2.1.0.dev20230606+cu121Transformers Version: 4.30.2BENCHMARK:- RAM: 2.8 GB- VRAM: 1812 MB- test.wav: 23 s- GPU (3060) -> 1.1s (TensorCore is used for fp16 inference)- GPU (1660S) -> 3.3s- CPU -> torch.float16 not supported on CPU (Ryzen 5 3600)- Punchuation: True"""from transformers import (WhisperForConditionalGeneration, WhisperProcessor, WhisperConfig)123from transformers import (WhisperForConditionalGeneration, WhisperProcessor, WhisperConfig)
README.md+100-4
__init__.py-16