Downloads · 30 days
5
3% of all-time downloads
MEscriva/gilbert-whisper-onnx
gilbert-whisper-onnx is a machine learning model from MEscriva. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for optimum. The card lists the license as mit.
Version ONNX optimisée du modèle Whisper pour la transcription française, optimisée pour l'inférence en production.
Downloads · 30 days
5
3% of all-time downloads
All-time downloads
145
Public
Repo size
3.3 GB
Likes
0
Public
Click a slice to open those files.
.onnx_data2.5 GB · 77%
From the Hugging Face model README
Version ONNX optimisée du modèle Whisper pour la transcription française, optimisée pour l'inférence en production.
from optimum.onnxruntime import ORTModelForSpeechSeq2Seq
from transformers import AutoProcessor
import torch
# Charger le modèle et le processeur
model = ORTModelForSpeechSeq2Seq.from_pretrained("gilbert-whisper-onnx")
processor = AutoProcessor.from_pretrained("gilbert-whisper-onnx")
# Transcrire de l'audio
audio = [...] # Audio en numpy array (16kHz)
inputs = processor(audio, sampling_rate=16000, return_tensors="pt")
# Génération
with torch.no_grad():
generated_ids = model.generate(**inputs, language="fr")
# Décodage
transcription = processor.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(transcription)
| Métrique | Valeur |
|---|---|
| Taille modèle | 0.74 GB |
| Réduction vs original | ~50% |
| Accélération inférence | 2-3x |
| Format | ONNX Runtime |
MIT License - Voir LICENSE pour plus de détails.
Si vous utilisez ce modèle, citez :
@misc{gilbert_whisper_onnx,
title={Version ONNX optimisée de Whisper pour le français},
author={Gilbert Models},
year={2025},
howpublished={\url{https://huggingface.co/gilbert-whisper-onnx}}
}