Downloads · 30 days
4
5% of all-time downloads
Jim6789/kotoba-whisper-bilingual-ct2
kotoba-whisper-bilingual-ct2 is a machine learning model from Jim6789. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Converted https://huggingface.co/kotoba-tech/kotoba-whisper-bilingual-v1.0 to a CT2 model. Tested compatibility with https://github.com/m-bain/whisperX.
Downloads · 30 days
4
5% of all-time downloads
All-time downloads
79
Public
Repo size
3 GB
Likes
0
Public
Click a slice to open those files.
.bin3 GB · 100%
From the Hugging Face model README
Converted https://huggingface.co/kotoba-tech/kotoba-whisper-bilingual-v1.0 to a CT2 model. Tested compatibility with https://github.com/m-bain/whisperX.
Make sure transformers and ctranslate2 is installed.
In the interactive python shell:
# Import the transformers module
import transformers
# Import the AutoTokenizer submodule (so you won't run into NameError: name 'AutoTokenizer' is not defined)
from transformers import AutoTokenizer
# Load tokenizer from existing files
tokenizer = AutoTokenizer.from_pretrained(<source_model_dir>)
# Save the tokenizer data as tokenizer.json
tokenizer.save_pretrained(<output_dir>, legacy_format=False)
Copy all generated files (tokenizer_config.json, tokenizer.json) into source_model_dir
Generate CT2 Model
ct2-transformers-converter --model <source_model_dir> --copy_files tokenizer.json preprocessor_config.json --output_dir <output_dir> --quantization float32
The model can do translation to English (using --task translate --language=en), and transcription (using --task transcribe --language=ja).