Model architecture Model size Language

Fine-tuned French whisper-large-v2 model for CTranslate2

This repository contains the bofenghuang/whisper-large-v2-cv11-french model converted to the CTranslate2 format.

Usage

from faster_whisper import WhisperModel
from huggingface_hub import snapshot_download

downloaded_model_path = snapshot_download(repo_id="bofenghuang/whisper-large-v2-cv11-french-ct2")

# Run on GPU with FP16
model = WhisperModel(downloaded_model_path, device="cuda", compute_type="float16")
# or run on GPU with INT8
# model = WhisperModel(downloaded_model_path, device="cuda", compute_type="int8_float16")
# or run on CPU with INT8
# model = WhisperModel(downloaded_model_path, device="cpu", compute_type="int8")

segments, info = model.transcribe("./sample.wav", beam_size=1)

print("Detected language '%s' with probability %f" % (info.language, info.language_probability))

for segment in segments:
    print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))

You can also use the following Google Colab Notebook to infer the converted Whisper models.

Open In Colab

Conversion

The original model was converted with the following command:

ct2-transformers-converter --model bofenghuang/whisper-large-v2-cv11-french --output_dir whisper-large-v2-cv11-french-ct2 --quantization float16
Downloads last month
10
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The HF Inference API does not support automatic-speech-recognition models for ctranslate2 library.

Space using bofenghuang/whisper-large-v2-cv11-french-ct2 1