Downloads · 30 days
152
7% of all-time downloads
Infomaniak-AI/faster-whisper-large-v3-turbo
faster-whisper-large-v3-turbo is a automatic speech recognition model from Infomaniak-AI. Use it when you need speech turned into text. It is set up for ctranslate2. The card lists the license as mit.
This repository contains the conversion of openai/whisper-large-v3-turbo to the CTranslate2 model format.
Downloads · 30 days
152
7% of all-time downloads
All-time downloads
2.1K
Public
Repo size
1.6 GB
Likes
2
Public
Click a slice to open those files.
.bin1.6 GB · 100%
From the Hugging Face model README
This repository contains the conversion of openai/whisper-large-v3-turbo to the CTranslate2 model format.
This model can be used in CTranslate2 or projects based on CTranslate2 such as faster-whisper.
import time
from faster_whisper import WhisperModel, BatchedInferencePipeline
from faster_whisper.audio import decode_audio
model = WhisperModel("Infomaniak-AI/faster-whisper-large-v3-turbo",
device="cuda",
num_workers=4,
compute_type='float16')
batch = BatchedInferencePipeline(model=model,
use_vad_model=True,
chunk_length=30)
audio = decode_audio("audio.mp3", sampling_rate=model.feature_extractor.sampling_rate)
start_time = time.time()
segment_generator, info = batch.transcribe(audio,
batch_size=32,
beam_size=5,
task="transcribe",
word_timestamps=True,
suppress_blank=True)
segments = []
text = ""
for segment in segment_generator:
segments.append(segment)
text = text + segment.text
print("--- %s seconds ---" % (time.time() - start_time))
The original model was converted with the following command:
ct2-transformers-converter --model openai/whisper-large-v3-turbo --output_dir whisper-large-v3-turbo --copy_files tokenizer.json preprocessor_config.json --quantization float16
Note that the model weights are saved in FP16. This type can be changed when the model is loaded using the compute_type option in CTranslate2.
For more information about the original model, see its model card.