Downloads · 30 days
10
2% of all-time downloads
rob-wav/nllb-multi-lora-adapter-v2
nllb-multi-lora-adapter-v2 is a translation model from rob-wav. Use it when you need text moved from one language to another. It is set up for peft.
- NOTE: Version 1 was initially trained on 5 million parallel sentences per pair, which led to a dramatic underestimation of compute unit cost and training time. Adapter v2 uses a downsampled version with 300k paralle…
Downloads · 30 days
10
2% of all-time downloads
All-time downloads
472
Public
Repo size
66.9 MB
Likes
0
Public
Click a slice to open those files.
.safetensors34.7 MB · 52%
From the Hugging Face model README
This repository contains a LoRA adapter sampled on 300K bidirectional parallel sentences fine-tuned from facebook/nllb-200-distilled-600M.
The following Datasets were used:
Each direction used 300K parallel sentences for a total of 1.8mil sentences across all 6 directions
Post-training BLEU was computed with SacreBLEU using generation with the correct NLLB forced_bos_token_id per target language.
BLEU results:
eng_Latn {'bleu': 20.14, 'count': 1000}
amh_Ethi {'bleu': 7.84, 'count': 1000}
spa_Latn {'bleu': 35.81, 'count': 1000}
uzb_Latn {'bleu': 3.82, 'count': 1000}
overall {'bleu': 16.36, 'count': 4000}
co2_eq_emissions:
emissions: 0.28
source: Calculated after training with MLCO2 impact
training_type: LoRA adapter fine-tuning
geographical_location: Google Colab Provider - US Central
hardware_used: Google Colab Pro A100
COMPUTE REPORT
✓ Training Statistics:
Total steps: 15,000
Total epochs: 2.00
Training time: 7107.43 seconds (1.97 hours)
✓ Compute Efficiency:
Samples/second: 67.53
Steps/second: 2.11
Total FLOPs: 7.97e+16
FLOPs per step: 5.32e+12
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForSeq2SeqLM.from_pretrained("facebook/nllb-200-distilled-600M")
tokenizer = AutoTokenizer.from_pretrained("facebook/nllb-200-distilled-600M")
model = PeftModel.from_pretrained(base_model, "rob-wav/nllb-multi-lora-adapter-v2")
"""