Downloads · 30 days
144
2% of all-time downloads
thoaibuiic/PhoWhisper-large-ct2
PhoWhisper-large-ct2 is a automatic speech recognition model from thoaibuiic. Use it when you need speech turned into text. It is set up for ctranslate2. The card lists the license as mit.
Fork notice: this is a fork of kiendt/PhoWhisper-large-ct2 (MIT license). Only the model card metadata was changed — libraryname: ctranslate2 and tags were added so HF-tag-based discovery/filtering tools (e.g. Speache…
Downloads · 30 days
144
2% of all-time downloads
All-time downloads
6.6K
Public
Repo size
3.1 GB
Likes
0
Public
Click a slice to open those files.
.bin3.1 GB · 100%
From the Hugging Face model README
Fork notice: this is a fork of kiendt/PhoWhisper-large-ct2 (MIT license). Only the model card metadata was changed —
library_name: ctranslate2andtagswere added so HF-tag-based discovery/filtering tools (e.g. Speaches) recognize this as a valid CTranslate2 ASR checkpoint. The weights are unmodified, byte-identical to the original repo.
This repository contains the PhoWhisper-large model converted to use CTranslate2 for faster inference. This allows for significant performance improvements, especially on CPU.
Installation: Ensure you have the necessary libraries installed:
pip install transformers ctranslate2 faster-whisper
Conversion (only needed once): This step converts the original Hugging Face model to the CTranslate2 format.
ct2-transformers-converter --model vinai/PhoWhisper-large --output_dir PhoWhisper-large-ct2 --copy_files tokenizer_config.json --quantization float16
Transcription:
import os
from faster_whisper import WhisperModel
model_size = "kiendt/PhoWhisper-large-ct2"
# Run on GPU with FP16
#model = WhisperModel(model_size, device="cuda", compute_type="float16")
# or run on GPU with INT8
# model = WhisperModel(model_size, device="cuda", compute_type="int8_float16")
# or run on CPU with INT8
model = WhisperModel(model_size, device="cpu", compute_type="int8")
segments, info = model.transcribe("audio.wav", beam_size=5) # Replace audio.wav with your audio file
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))
vinai/PhoWhisper-large model.ct2-transformers-converter.Contributions are welcome! Please open an issue or submit a pull request.
MIT