mohamadpk/nllb-200-3.3B-ct2-int8_float16
021
NLLB-200 3.3B CTranslate2 int8_float16 Bundle
This folder contains an optimized CTranslate2 build of facebook/nllb-200-3.3B plus helper scripts. It is focused on fast, high-quality English to Persian (en->fa) and Persian to English (fa->en) translation.
Model link
- Hugging Face model: https://huggingface.co/mohamadpk/nllb-200-3.3B-ct2-int8_float16
- GitHub repo: https://github.com/mongo-driver/nllb-200-3.3B-ct2-int8_float16
- GitHub version of this repo excludes
model.binto keep repository size manageable.
Keywords: english to persian translation, persian to english translation, en fa, fa en, farsi translation, NLLB, CTranslate2
File details
Quick usage
Run commands from the project root:
venv\Scripts\pip.exe install -r nllb-200-3.3B-ct2-int8_float16\requirements.txt
venv\Scripts\python.exe nllb-200-3.3B-ct2-int8_float16\check_gpu.py
venv\Scripts\python.exe nllb-200-3.3B-ct2-int8_float16\translate.pyBenchmark results (CUDA)
Benchmark mode: HF float16 GPU vs CTranslate2 int8_float16 GPU
Benchmark environment:
- GPU: NVIDIA GeForce RTX 2060 SUPER (8GB VRAM)
- Runtime mode: CUDA
- Comparison: HF float16 GPU vs CT2 int8_float16 GPU
Quality snapshots:
- en->fa Input (EN): <div dir="ltr">In the Golang programming language, we can use defer to execute code at the end of a function.</div> HF (FA): <div dir="rtl">در زبان برنامه نویسی گولانگ گولانگ، ما می توانیم از defer استفاده کنیم تا کد را در پایان تابع اجرا کنیم.</div> CT2 (FA): <div dir="rtl">در زبان برنامه نویسی Golang، ما می توانیم از defer برای اجرای کد در پایان یک تابع استفاده کنیم.</div>
- en->fa Input (EN): <div dir="ltr">Artificial intelligence is transforming the world.</div> HF (FA): <div dir="rtl">هوش مصنوعی هوش مصنوعی در حال تغییر جهان است</div> CT2 (FA): <div dir="rtl">هوش مصنوعی در حال تغییر جهان است.</div>
- en->fa Input (EN): <div dir="ltr">Machine learning models require large amounts of data to train effectively.</div> HF (FA): <div dir="rtl">مدل های یادگیری ماشینی مدل های یادگیری ماشین ماشین مدل های یادگیری یادگیری ماشین ماشین نیاز به مقدار زیادی از داده برای آموزش به طور موثر نیاز به داده های بزرگ برای آموزش موثر. .</div> CT2 (FA): <div dir="rtl">مدل های یادگیری ماشین به مقادیر زیادی از داده ها برای آموزش موثر نیاز دارند.</div>
- fa->en Input (FA): <div dir="rtl">پردازش زبان طبیعی یکی از شاخه های مهم هوش مصنوعی است.</div> HF (EN): <div dir="ltr">Natural Language Processing (NLP) is one of the most important branches of AI.</div> CT2 (EN): <div dir="ltr">Natural language processing is one of the important branches of artificial intelligence.</div>
Attribution
- Base model:
facebook/nllb-200-3.3B - Original model authors: Meta AI / NLLB team
- This package is a converted and quantized derivative (
CTranslate2 int8_float16)
Notes
translate.pyis self-contained and loads model/tokenizer files from this folder.convert_model.pyis for local one-time conversion fromfacebook/nllb-200-3.3B.
License
- Base/derived model artifacts follow:
CC-BY-NC-4.0 - Non-commercial use only, unless you obtain separate permission from rights holders.
- Keep attribution to the base model when redistributing this package.
