NLLB-200 1.3B Kikamba fine-tune, CTranslate2 int8
lawmaluki/nllb-200-1.3B-kamba-ft converted with
CTranslate2 (ct2-transformers-converter --quantization int8) for fast CPU
translation in the Understand Kamba app. 1.4 GB instead of 5.5 GB.
On 100 FLORES-200 devtest sentences (Kikamba → English, same decoding: beam 5, no_repeat_ngram_size=4) it scores
chrF++ 46.1 against 46.4 for the original, and runs 3.6× faster on CPU.
import ctranslate2
from huggingface_hub import snapshot_download
from transformers import AutoTokenizer
path = snapshot_download("lawmaluki/nllb-200-1.3B-kamba-ft-ct2-int8")
tok = AutoTokenizer.from_pretrained(path)
model = ctranslate2.Translator(path, device="cpu", compute_type="int8")
tok.src_lang = "kam_Latn"
tokens = tok.convert_ids_to_tokens(tok("Tene tene vyũ, eĩtu atatũ nĩmaendie kuna ngũ.")["input_ids"])
out = model.translate_batch([tokens], target_prefix=[["eng_Latn"]], beam_size=5, no_repeat_ngram_size=4)
print(tok.decode(tok.convert_tokens_to_ids(out[0].hypotheses[0][1:]), skip_special_tokens=True))
Licence CC-BY-NC-4.0 (non-commercial), as the base model. See the base model's card for training data, results and limitations.