The error you're encountering is due to a version incompatibility between your installed CTranslate2 library and the Whisper model you're trying to load. Your CTranslate2 installation only supports models with binary version v6 or below, but you're attempting to use a model with binary version v67324752, which was created with a newer version of CTranslate2[6][8].
Understanding the Error
This error occurs because CTranslate2 does not guarantee forward compatibility, meaning older versions of the library cannot load models generated by newer versions[4]. The binary version mismatch indicates that the model was converted or generated using a more recent version of CTranslate2 than what you currently have installed.
Solutions
1. Update CTranslate2
The most straightforward solution is to update your CTranslate2 installation to a newer version:
pip install --upgrade ctranslate2
Recent versions of CTranslate2 include support for newer model formats, CUDA 12, and various model architectures like Whisper, Llama3, and Phi3[3].
2. Re-download or Re-convert the Model
If updating isn't possible:
- Try deleting and re-downloading the model files, as they might be corrupted[4]
- Convert the model again using your current version of CTranslate2:
ct2-transformers-converter --model openai/whisper-base --output_dir faster-whisper-base --copy_files tokenizer.json --quantization float16
3. Check Model Integrity
If you're downloading pre-converted models, verify the files were transferred correctly. You can compare MD5 checksums between sources to ensure file integrity[10].
4. Use a Compatible Pre-converted Model
Some repositories offer Whisper models in various CTranslate2 versions. Try using a model specifically listed as compatible with your CTranslate2 version[1][9].
Requirements for Using CTranslate2 with Whisper
For optimal compatibility when using Whisper models with CTranslate2:
- Use Python 3.7 or newer
- If using GPU support, ensure you have installed CUDA 12.x
- For models with convolutional layers (like Whisper), ensure cuDNN is installed[7]
- The transformers library version should be 4.23.0 or higher when converting Whisper models[9]
If creating your own Whisper model conversion, use the correct parameters:
from faster_whisper import WhisperModel
# Load model with appropriate settings
model = WhisperModel("base", device="cuda", compute_type="float16")
# Transcribe audio
segments, info = model.transcribe("audio.mp3")
for segment in segments:
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))