Downloads · 30 days
30
7% of all-time downloads
MEscriva/gilbert-whisper-distil-fr-v0.2
gilbert-whisper-distil-fr-v0.2 is a automatic speech recognition model from MEscriva. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as mit.
Gilbert-Whisper-Distil-FR-v0.2 is a distilled version of Whisper Large V3, optimized for French speech recognition and designed for production deployment and research acceleration within the Gilbert project ecosystem.…
Downloads · 30 days
30
7% of all-time downloads
All-time downloads
434
Public
Parameters
756M
8.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.bin3.6 GB · 44%
From the Hugging Face model README
Gilbert-Whisper-Distil-FR-v0.2 is a distilled version of Whisper Large V3, optimized for French speech recognition and designed for production deployment and research acceleration within the Gilbert project ecosystem. This model provides 2-4x faster inference while maintaining performance close to the full Large V3 model, making it ideal for real-time applications and cost-effective production systems.
Important Notice on Intellectual Property:
MEscriva/gilbert-whisper-distil-fr-v0.2) is distributed under the MIT License, allowing research and commercial use.The Gilbert project requires both high-precision baseline models (Gilbert-FR-Source) and production-optimized models for different deployment scenarios. This distilled model serves as the fast inference baseline for:
This model complements the full-size Gilbert-FR-Source baseline, providing researchers and developers with a speed-optimized alternative for production deployments.
This model is optimized for:
This model serves as:
| Metric | Distilled Model | Full Large V3 | Improvement |
|---|---|---|---|
| Inference Speed | 2-4x faster | Baseline (1x) | 2-4x speedup |
| GPU Memory | ~2-3 GB | ~6-8 GB | ~50% reduction |
| Throughput | 2-4x higher | Baseline | 2-4x increase |
The distilled model maintains performance close to the full model on most tasks:
Note: Exact WER metrics are evaluated on both in-distribution (ID) and out-of-distribution (OOD) datasets. Performance may vary slightly on complex tasks compared to the full model, but the speed-accuracy trade-off is highly favorable for production use.
When used as a draft model with the full Whisper Large V3 as teacher:
pip install transformers torch torchaudio librosa soundfile
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor
import torch
model_id = "MEscriva/gilbert-whisper-distil-fr-v0.2"
device = "cuda" if torch.cuda.is_available() else "cpu"
torch_dtype = torch.float16 if device == "cuda" else torch.float32
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForSpeechSeq2Seq.from_pretrained(
model_id,
torch_dtype=torch_dtype,
low_cpu_mem_usage=True
)
model.to(device)
# Process audio
audio_path = "your_audio.wav"
inputs = processor(audio_path, return_tensors="pt", sampling_rate=16000)
inputs = {k: v.to(device) for k, v in inputs.items()}
with torch.no_grad():
generated_ids = model.generate(
inputs["input_features"],
language="fr",
task="transcribe"
)
transcription = processor.batch_decode(
generated_ids,
skip_special_tokens=True
)[0]
import whisper
# Load the distilled model
model = whisper.load_model("large-v3") # Compatible format
# Transcribe French audio
result = model.transcribe(
"audio.wav",
language="fr",
task="transcribe"
)
print(result["text"])
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor
import torch
# Load both models
draft_model_id = "MEscriva/gilbert-whisper-distil-fr-v0.2"
teacher_model_id = "openai/whisper-large-v3" # or Gilbert-FR-Source
processor = AutoProcessor.from_pretrained(draft_model_id)
draft_model = AutoModelForSpeechSeq2Seq.from_pretrained(draft_model_id)
teacher_model = AutoModelForSpeechSeq2Seq.from_pretrained(teacher_model_id)
# Use speculative decoding for 2x speedup with identical output
# (Implementation details depend on your decoding framework)
| Aspect | Distilled | Full Source |
|---|---|---|
| Speed | ⭐⭐⭐⭐⭐ (2-4x) | ⭐⭐⭐ (1x) |
| Accuracy | ⭐⭐⭐⭐ (proche) | ⭐⭐⭐⭐⭐ (max) |
| Memory | ⭐⭐⭐⭐⭐ (faible) | ⭐⭐⭐ (élevée) |
| Use Case | Production, Real-time | Research, Max accuracy |
Use Distilled Model if:
Use Full Source Model if:
This model uses patient teacher distillation:
This distilled model inherits limitations from the distillation process:
However, for most production use cases, the speed-accuracy trade-off is highly favorable.
Gilbert-Distil-Meetings-v1
Gilbert-Distil-Longform-v1
Gilbert-Distil-Accents-v1
All future Gilbert models are the exclusive intellectual property of Lexia France and will include detailed evaluation reports.
This distilled model (MEscriva/gilbert-whisper-distil-fr-v0.2) is distributed under the MIT License, allowing:
See the LICENSE file for full terms.
Important: While this model is available under MIT License:
For licensing inquiries regarding Gilbert project models, contact: [email protected]
If you use this distilled model in your research, please cite:
@software{gilbert_distil_2024,
title={Gilbert-Whisper-Distil-FR-v0.2: Distilled Model for Production and Research},
author={MEscriva and Lexia France},
year={2024},
url={https://huggingface.co/MEscriva/gilbert-whisper-distil-fr-v0.2},
version={0.2},
note={Distilled Whisper model for fast French speech recognition}
}
This distilled model is based on:
We acknowledge the contributions of:
For research collaboration, evaluation access, or technical inquiries:
© 2024 Lexia France. All rights reserved for Gilbert project derivatives.