OP
openai/whisper-large-v3
automatic-speech-recognitiontransformersapache-2.01.5B params · updated Aug 2024
Usage
usage.pytemplate from repo id
from osai import AutoModelForCausalLM, AutoTokenizer
repo = "openai/whisper-large-v3"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(
repo, dtype="bfloat16", device_map="auto",
)
msgs = [{"role": "user", "content": "Explain speculative decoding."}]
ids = tok.apply_chat_template(msgs, return_tensors="pt").to(model.device)
print(tok.decode(model.generate(ids, max_new_tokens=256)[0]))Hardware
Computed from 1.54B parameters × bytes per parameter, plus 20% for activations and KV cache. Not measured.
| Precision | Weights | Estimated VRAM | Fits on |
|---|---|---|---|
| bf16 | 2.9 GB | 3.4 GB | CPU or T4 16 GB |
| int8 | 1.4 GB | 1.7 GB | CPU or T4 16 GB |
| nf4 | 736 MB | 0.9 GB | CPU or T4 16 GB |