Downloads · 30 days
34
29% of all-time downloads
zeromodels/whisper_tiny
whisper_tiny is a automatic speech recognition model from zeromodels. Use it when you need speech turned into text. It is set up for zeromodels. The card lists the license as apache-2.0.
[](https://github.com/IMvision12/ZeroModels) [](https://imvision12.github.io/ZeroModels/whisper/) [](https://huggingface.co/collections/zeromodels/whisper-6a8eaf34918224be11047f86)
Downloads · 30 days
34
29% of all-time downloads
All-time downloads
117
Public
Repo size
151 MB
Likes
0
Public
Click a slice to open those files.
.h5151 MB · 98%
From the Hugging Face model README
Paper: Robust Speech Recognition via Large-Scale Weak Supervision (arXiv:2212.04356) · HF Papers
Whisper is a multilingual encoder-decoder ASR model trained on large-scale weak supervision. Use task="transcribe" to keep the source language or task="translate" to render English. Pass language=None to let the model detect the spoken language. Output is cased and punctuated.
For more details on the model, please go to the upstream model card.
Pure-Keras 3 conversion of openai/whisper-tiny for zeromodels. One implementation runs unmodified on TensorFlow / Torch / JAX.
This is an ASR checkpoint (WhisperConditionalGenerate, 39M).
import os
os.environ["KERAS_BACKEND"] = "torch" # or "jax" / "tensorflow"
import soundfile as sf
from zeromodels.models.whisper import (
WhisperProcessor,
WhisperConditionalGenerate,
)
model = WhisperConditionalGenerate.from_weights("zeromodels/whisper_tiny")
processor = WhisperProcessor.from_weights("zeromodels/whisper_tiny")
audio, sr = sf.read("your_audio.wav", dtype="float32") # 16 kHz mono
# task="transcribe" keeps the source language; "translate" -> English.
text = model.generate(audio, processor, language="en", task="transcribe")
print(repr(text[0]))
Load any Whisper variant the same way with from_weights("zeromodels/<variant>"):
| Variant | Hub | Notes |
|---|---|---|
whisper_tiny | zeromodels/whisper_tiny | 39M |
whisper_base | zeromodels/whisper_base | 74M |
whisper_small | zeromodels/whisper_small | 244M |
whisper_medium | zeromodels/whisper_medium | 769M |
whisper_large | zeromodels/whisper_large | 1.55B |
whisper_large_v2 | zeromodels/whisper_large_v2 | 1.55B |
whisper_large_v3 | zeromodels/whisper_large_v3 | 128 mel bins |
whisper_large_v3_turbo | zeromodels/whisper_large_v3_turbo | 4 decoder layers |
KERAS_BACKEND before importing Keras / zeromodels.WhisperProcessor.from_weights(...) so mel bins match the variant (v3 uses 128).hf: prefix, e.g. WhisperConditionalGenerate.from_weights("hf:openai/whisper-tiny").A huge thank you to the OpenAI Whisper authors for creating and releasing these models.
License: Apache 2.0.