Skip to content

Instantly share code, notes, and snippets.

View argosopentech's full-sized avatar
🚀

Argos Open Tech argosopentech

🚀
View GitHub Profile
@ymoslem
ymoslem / M2M-100-example.py
Last active May 17, 2024 09:49
Example of translating a file with M2M-100 using CTranslate2
# This example uses M2M-100 models converted to the CTranslate2 format.
# Download CTranslate2 models:
# • M2M-100 418M-parameter model: https://bit.ly/33fM1AO
# • M2M-100 1.2B-parameter model: https://bit.ly/3GYiaed
import ctranslate2
import sentencepiece as spm