Downloads · 30 days
17
31% of all-time downloads
d-matrix/whisper-large-v3-turbo
whisper-large-v3-turbo is a machine learning model from d-matrix. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is a d-Matrix functional reference of the whisper-large-v3-turbo model. The reference provides the following functional configurations: Configuration | Explanation :-- | :-- BASELINE | a reference functionally eq…
Downloads · 30 days
17
31% of all-time downloads
All-time downloads
55
Public
Parameters
809M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.6 GB · 100%
From the Hugging Face model README
This is a d-Matrix functional reference of the whisper-large-v3-turbo model. The reference provides the following functional configurations:
| Configuration | Explanation |
|---|---|
BASELINE | a reference functionally equivalent to the original model |
BASIC | all linear algebraic operands quantized to MXINT8-64, and all other operations transformed to approximated kernel simulations |
Install d-Matrix Dmx_Compressor first.
pip install dmx_compressor
The following is an example model and its evaluation.
import torch
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
from datasets import load_dataset
from dmx.compressor.modeling import DmxModel
device = "cuda:0" if torch.cuda.is_available() else "cpu"
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
model_id = "d-matrix/whisper-large-v3-turbo"
model = AutoModelForSpeechSeq2Seq.from_pretrained(
model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True
)
model.to(device)
processor = AutoProcessor.from_pretrained(model_id)
pipe = pipeline(
"automatic-speech-recognition",
model=model,
tokenizer=processor.tokenizer,
feature_extractor=processor.feature_extractor,
torch_dtype=torch_dtype,
device=device,
)
dataset = load_dataset("distil-whisper/librispeech_long", "clean", split="validation")
sample = dataset[0]["audio"]
shorter_audio = sample["array"][:1000]
pipe.model = DmxModel.from_torch(pipe.model)
result = pipe(shorter_audio)
print(result["text"])