Downloads · 30 days
10
12% of all-time downloads
iBoostAI/distil-whisper-distil-large-v3.5-ct2
distil-whisper-distil-large-v3.5-ct2 is a machine learning model from iBoostAI. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for ctranslate2. The card lists the license as mit.
This model repository is a copy of distil-whisper/distil-large-v3.5-ct2; the reason for creating this copy is to use the unified string "iBoostAI/distil-whisper-distil-large-v3.5-ct2" in projects to download this mode…
Downloads · 30 days
10
12% of all-time downloads
All-time downloads
82
Public
Repo size
1.5 GB
Likes
4
Public
Click a slice to open those files.
.bin1.5 GB · 100%
From the Hugging Face model README
This model repository is a copy of distil-whisper/distil-large-v3.5-ct2; the reason for creating this copy is to use the unified string "iBoostAI/distil-whisper-distil-large-v3.5-ct2" in projects to download this model from both HuggingFace and ModelScope, as the original creator did not provide this model on ModelScope. Thanks to all members of the Distil-Whisper project for their outstanding work.
This repository contains the model weights for distil-large-v3.5 converted to CTranslate2 format. CTranslate2 is a fast inference engine for Transformer models and is the supported backend for the Faster-Whisper package.
To use the model in Faster-Whisper, first install the PyPi package according to the official instructions.
For this example, we'll also install 🤗 Datasets to load a toy audio dataset from the Hugging Face Hub:
pip install --upgrade pip
pip install --upgrade git+https://github.com/SYSTRAN/faster-whisper datasets[audio]
The following code snippet loads the distil-large-v3 model and runs inference on an example file from the LibriSpeech ASR dataset:
import torch
from faster_whisper import WhisperModel
from datasets import load_dataset
# define our torch configuration
device = "cuda" if torch.cuda.is_available() else "cpu"
compute_type = "float16" if torch.cuda.is_available() else "float32"
# load model on GPU if available, else cpu
model = WhisperModel("distil-whisper/distil-large-v3.5-ct2", device=device, compute_type=compute_type)
# load toy dataset for example
dataset = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
sample = dataset[1]["audio"]["path"]
segments, info = model.transcribe(sample, beam_size=5, language="en")
for segment in segments:
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
To transcribe a local audio file, simply pass the path to the audio file as the audio argument to transcribe:
segments, info = model.transcribe("audio.mp3", beam_size=5, language="en")
For more information about the Distil-Large-v3.5 model, refer to the original model card.
Distil-Whisper inherits the MIT license from OpenAI's Whisper model.
If you use this model, please consider citing the Distil-Whisper paper:
@misc{gandhi2023distilwhisper,
title={Distil-Whisper: Robust Knowledge Distillation via Large-Scale Pseudo Labelling},
author={Sanchit Gandhi and Patrick von Platen and Alexander M. Rush},
year={2023},
eprint={2311.00430},
archivePrefix={arXiv},
primaryClass={cs.CL}
}