Instructions to use mohammed/quantized-whisper-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mohammed/quantized-whisper-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="mohammed/quantized-whisper-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("mohammed/quantized-whisper-small") model = AutoModelForSpeechSeq2Seq.from_pretrained("mohammed/quantized-whisper-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -25,6 +25,11 @@ This a quantized model that reads arabic voice and transcribes/translate it into
|
|
| 25 |
|
| 26 |
### Direct Use
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
```python
|
| 29 |
from optimum.onnxruntime import ORTModelForSpeechSeq2Seq
|
| 30 |
from transformers import WhisperTokenizerFast, WhisperFeatureExtractor, pipeline
|
|
@@ -63,6 +68,12 @@ Users (both direct and downstream) should be made aware of the risks, biases and
|
|
| 63 |
Use the code below to get started with the model.
|
| 64 |
|
| 65 |
```python
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
from optimum.onnxruntime import ORTModelForSpeechSeq2Seq
|
| 67 |
from transformers import WhisperTokenizerFast, WhisperFeatureExtractor, pipeline
|
| 68 |
|
|
|
|
| 25 |
|
| 26 |
### Direct Use
|
| 27 |
|
| 28 |
+
First, install the following packages using the following commands:
|
| 29 |
+
|
| 30 |
+
pip install -U optimum[exporters,onnxruntime] transformers
|
| 31 |
+
pip install huggingface_hub
|
| 32 |
+
|
| 33 |
```python
|
| 34 |
from optimum.onnxruntime import ORTModelForSpeechSeq2Seq
|
| 35 |
from transformers import WhisperTokenizerFast, WhisperFeatureExtractor, pipeline
|
|
|
|
| 68 |
Use the code below to get started with the model.
|
| 69 |
|
| 70 |
```python
|
| 71 |
+
|
| 72 |
+
First, install the following packages using the following commands:
|
| 73 |
+
|
| 74 |
+
pip install -U optimum[exporters,onnxruntime] transformers
|
| 75 |
+
pip install huggingface_hub
|
| 76 |
+
|
| 77 |
from optimum.onnxruntime import ORTModelForSpeechSeq2Seq
|
| 78 |
from transformers import WhisperTokenizerFast, WhisperFeatureExtractor, pipeline
|
| 79 |
|