Whisper Hindi2Hinglish Apex (CTranslate2, int8_float16)
This is a CTranslate2 conversion of Oriserve/Whisper-Hindi2Hinglish-Apex for use with faster-whisper. It powers the Hybrid (Hinglish) mode of KalaJadu Anchor, an offline dictation app for Windows.
The model hears Hindi and Hinglish speech and writes it in Roman (English) letters, keeping English words in English, for example: "kal subah meeting hai, please laptop le aana".
All credit for training the model goes to Oriserve. This repository only changes the file format.
What was changed
- Converted from the original Transformers weights to CTranslate2 format.
- Quantised to int8_float16 (int8 weights, float16 compute). This makes it about 0.8 GB, needing about 1 GB of GPU memory.
- The weights were not retrained or fine-tuned in any way.
Source: Oriserve/Whisper-Hindi2Hinglish-Apex at revision f3214eed20b4e4d4144e739982d911f87b9cb223.
Conversion command:
ct2-transformers-converter --model Oriserve/Whisper-Hindi2Hinglish-Apex \
--output_dir hindi2hinglish-apex-ct2 \
--quantization int8_float16 \
--copy_files tokenizer.json preprocessor_config.json
tokenizer.json and preprocessor_config.json come from the source repository. Where the source revision did not include them, they were taken from openai/whisper-large-v3-turbo, the base model Apex is fine-tuned from, which uses the same tokenizer.
Files
| File | What it is |
|---|---|
model.bin | CTranslate2 weights (int8_float16) |
config.json | Model configuration |
vocabulary.json | Token vocabulary |
tokenizer.json | Whisper tokenizer (from whisper-large-v3-turbo) |
preprocessor_config.json | Audio feature settings (from whisper-large-v3-turbo) |
LICENSE | Apache License 2.0 |
NOTICE | Attribution and modification notice |
Usage
from faster_whisper import WhisperModel
model = WhisperModel("<your-username>/anchor-hinglish-apex-ct2", device="cuda", compute_type="int8_float16")
segments, _ = model.transcribe("audio.wav", language="hi")
print(" ".join(s.text for s in segments))
Limitations
- English-only speech is transcribed less accurately than with the standard Whisper turbo model. Anchor uses this model only for Hindi or Hinglish speech in Hybrid mode.
- Roman-letter spelling of Hindi words is not standardised, so the same word can be spelled in different ways.
- It needs an NVIDIA GPU for real-time use. CPU inference works but is slow.
License and attribution
- Licensed under the Apache License 2.0, the same licence as the original model. See
LICENSEandNOTICE. - Original model: Oriserve, Whisper-Hindi2Hinglish-Apex.
- Base model: OpenAI, Whisper large-v3-turbo (MIT).
- Conversion: KalaJadu Anchor (Abhay Sharma).