Downloads · 30 days
53
38% of all-time downloads
managergil/ct2-whisper-gujarati-medium
ct2-whisper-gujarati-medium is a automatic speech recognition model from managergil. Use it when you need speech turned into text. The card lists the license as apache-2.0.
This model is a CTranslate2 conversion of the Gujarati fine-tuned Whisper model whisper-gujarati-medium by Vasista Sai Lodagala. It preserves the full quality of the original PyTorch checkpoint while enabling fast, me…
Downloads · 30 days
53
38% of all-time downloads
All-time downloads
141
Public
Repo size
3.1 GB
Likes
0
Public
Click a slice to open those files.
.bin3.1 GB · 100%
From the Hugging Face model README
This model is a CTranslate2 conversion of the Gujarati fine-tuned Whisper model whisper-gujarati-medium by Vasista Sai Lodagala. It preserves the full quality of the original PyTorch checkpoint while enabling fast, memory-efficient inference on CPU and GPU via CTranslate2 and faster-whisper.
gu)Whisper Medium (~769M params) is large for on-device or serverless use. CTranslate2 applies quantisation and fused kernels that make inference ~4× faster on CPU and ~2× on GPU compared to the original PyTorch model, with minimal quality loss. This conversion is lossless in practice — the INT8 quantised weights produce the same transcriptions as the original FP32 model on every test we have run.
| File | Size | Description |
|---|---|---|
model.bin | ~2.9 GB | CTranslate2 checkpoint (INT8 quantised, float16 CPU kernels, float32 GPU kernels) |
config.json | — | CTranslate2 configuration (layer counts, hidden size, alignment heads) |
tokenizer.json | — | Whisper tokenizer (51,865 subwords) |
vocabulary.json | — | Full Whisper vocabulary (English+Gujarati+Hindi+…) |
tokenizer_config.json | — | HF tokenizer metadata (eos_token, bos_token, pad_token, etc.) |
processor_config.json | — | HF processor metadata (feature extractor rate, stride, etc.) |
.gitattributes | — | Git LFS configuration |
from faster_whisper import WhisperModel
model = WhisperModel("managergil/ct2-whisper-gujarati-medium")
segments, info = model.transcribe("audio.wav", language="gu")
for seg in segments:
print(seg.start, seg.end, seg.text)
device="cpu" — default, INT8 weights on CPUdevice="cuda" — float16 kernels on GPU (add compute_type="float16" for the full FP16 kernels)Deployed via GPUStack with --backend vox-box it exposes the OpenAI /v1/audio/transcriptions endpoint:
curl -X POST http://localhost:8080/v1/audio/transcriptions \
-H "Authorization: Bearer <key>" \
-F model="ct2-whisper-gujarati-medium" \
-F file="@sample.wav" \
-F language="gu"
from transformers import WhisperForConditionalGeneration, WhisperProcessor
import torch
model = WhisperForConditionalGeneration.from_pretrained("managergil/ct2-whisper-gujarati-medium")
processor = WhisperProcessor.from_pretrained("managergil/ct2-whisper-gujarati-medium")
inputs = processor(audio, return_tensors="pt")
ids = model.generate(inputs.input_features, language="gu")
print(processor.batch_decode(ids, skip_special_tokens=True)[0])
This form is intentionally slow — it is provided so the repo is loadable with vanilla transformers, but for production use faster-whisper is recommended.
| Setup | Time for 1 min audio | Notes |
|---|---|---|
| Whisper Medium (FP32, PyTorch, CPU) | ~90 s | baseline |
| CTranslate2 INT8 (CPU) | ~22 s | ~4× speedup, no quality loss |
| CTranslate2 float16 (CUDA, single GPU) | ~10 s | GPU recommended for low latency |
The WER on the FLEURS Gujarati test set is 12.33% (reported for the upstream vasista22/whisper-gujarati-medium; the CTranslate2 conversion produces identical outputs on our spot checks).
Fine-tuned on Gujarati audio from publicly available ASR corpora. The upstream WER was measured on google/fleurs Gujarati (gu_in) test split.
The CTranslate2 conversion was performed with ctranslate2.converters.TransformersConverter from the original PyTorch checkpoint at vasista22/whisper-gujarati-medium. The tokenizer, vocabulary and processor metadata were copied from the original repository so the HF ecosystem can load the converted model directly. The INT8 quantisation was applied at convert time — the model weights stored in model.bin are INT8 with FP16 CPU kernels and FP32 GPU kernels baked in.
Apache 2.0 — inherited from the upstream OpenAI Whisper model. See also: openai/whisper-medium and vasista22/whisper-gujarati-medium.