Views
No views yet
This is an adapter, not a model, and it is superseded. For actual use, takeMEYNG/nllb-sango-finetuned-600m-v2-2(Sango→French) orfacebook/nllb-200-distilled-600Mdirectly (French→Sango).
adapter_config.json and adapter_model.safetensors. There is
no config.json and no model.safetensors, so AutoModelForSeq2SeqLM.from_pretrained will
not work on it. It must be loaded with peft on top of the base model.3ep), 26,187 steps.MEYNG/nllb-sango-finetuned-600m (v1).
An earlier version of this card said the two were the same training run. That was wrong, and the
correction is recorded here rather than quietly removed:| steps | source | |
|---|---|---|
| this adapter | 26,187 | the Trainer log reproduced below |
| v1 | 25,395 | last-checkpoint/trainer_state.json in v1's own repository |
r=16, lora_alpha=32, lora_dropout=0.1,
target_modules=[q_proj, v_proj]) — but matching hyper-parameters are what you would expect of
two runs from the same project, and they are not evidence of one run.adapter_config.json and
adapter_model.safetensors. Its own documentation, and its training_args.bin
(gradient_checkpointing enabled, adamw_torch, batch size 12 — the signature of fitting a
full-parameter fine-tune onto a small GPU, which LoRA at this scale does not require), both
describe v1 as a full fine-tune. The adapter files there are most likely strays. Prefer v1's own
card over any inference from this one.MEYNG/nllb-sango-finetuned-600m — a
different run (see the step counts above). Do not attribute those scores to this adapter. The only
measured figures that belong to it are its own training curve, below.MEYNG/nllb-sango-finetuned-600m-v2-2,
which passes the OOD gate in its recommended direction.1from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
2from peft import PeftModel
3
4base = "facebook/nllb-200-distilled-600M"
5tok = AutoTokenizer.from_pretrained(base)
6model = AutoModelForSeq2SeqLM.from_pretrained(base)
7model = PeftModel.from_pretrained(model, "MEYNG/nllb-sango-finetuned-600m-3ep")
8
9tok.src_lang = "sag_Latn"
10enc = tok("Mbi yeke gue na da ti nganga ti kobela.", return_tensors="pt")
11out = model.generate(**enc, forced_bos_token_id=tok.convert_tokens_to_ids("fra_Latn"),
12 max_length=160, num_beams=4)
13print(tok.batch_decode(out, skip_special_tokens=True)[0])adamw_torch_fused, betas=(0.9,0.999), epsilon=1e-08q_proj, v_proj]| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 15.0623 | 0.1146 | 1000 | 1.7556 |
| 14.4898 | 0.2291 | 2000 | 1.6745 |
| 14.0211 | 0.3437 | 3000 | 1.6137 |
| 13.6606 | 0.4583 | 4000 | 1.5683 |
| 13.4614 | 0.5728 | 5000 | 1.5280 |
| 13.1058 | 0.6874 | 6000 | 1.4951 |
| 13.0098 | 0.8019 | 7000 | 1.4680 |
| 12.8789 | 0.9165 | 8000 | 1.4467 |
| 12.4444 | 1.0310 | 9000 | 1.4260 |
| 12.6331 | 1.1456 | 10000 | 1.4081 |
| 12.3781 | 1.2602 | 11000 | 1.3935 |
| 12.1731 | 1.3747 | 12000 | 1.3782 |
| 12.2067 | 1.4893 | 13000 | 1.3670 |
| 12.0454 | 1.6039 | 14000 | 1.3578 |
| 11.9698 | 1.7184 | 15000 | 1.3479 |
| 11.9595 | 1.8330 | 16000 | 1.3398 |
| 11.8094 | 1.9476 | 17000 | 1.3327 |
| 11.6344 | 2.0621 | 18000 | 1.3272 |
| 11.7943 | 2.1767 | 19000 | 1.3200 |
| 11.7281 | 2.2912 | 20000 | 1.3155 |
| 11.8180 | 2.4058 | 21000 | 1.3110 |
| 11.5384 | 2.5203 | 22000 | 1.3079 |
| 11.7371 | 2.6349 | 23000 | 1.3051 |
| 11.6320 | 2.7495 | 24000 | 1.3031 |
| 11.7702 | 2.8640 | 25000 | 1.3018 |
| 11.6175 | 2.9786 | 26000 | 1.3012 |
| 11.6356 | 3.0 | 26187 | 1.3012 |
⚠️ Unverified caveat. MEYNG's later work documents that Transformers v5 breaks the NLLB tokenizer language prefix (v2-2 onward pintransformers>=4.40,<5.0). This run recorded Transformers 5.8.1 and predates that finding; its per-direction language-token conditioning has not been re-verified. Treat outputs from this adapter with that in mind.
facebook/nllb-200-distilled-600M is released by Meta under CC BY-NC 4.0,
and this adapter is a derivative work of it, so the NonCommercial term carries through. It applies
to the adapter weights and to any merge of them into the base model.facebook/nllb-200-distilled-600M, CC BY-NC 4.0).
Redistribution or adaptation must credit both the base model and this fine-tune.NLLB Team et al., No Language Left Behind: Scaling Human-Centered Machine Translation, 2022. arXiv:2207.04672