This repository contains a LoRA adapter for English-to-Bengali scientific-paper
title translation. It is the Run 1 system submitted by team Origin to
SciHigh 2026 Task 3.
The adapter must be loaded on top of
facebook/nllb-200-distilled-600M
at commit
f8d333a098d19b4fd9a8b18f94170487ad3f821d; it is
not a standalone
full model.
The adapter was trained only on the 60 official training triplets from the
SciHigh 2026 Task 3 SpringerSSAT-Tiny-Multilingual split. Each input was the
English title and each target was its expert Bengali translation. No synthetic
examples or test labels were used.
The 20 official validation examples were held out from gradient optimization
and used once per epoch for checkpoint selection.
Scores below were calculated on the 20 held-out validation titles. ROUGE-L uses
whitespace-delimited Bengali tokens
1pip install "transformers==4.53.2" "peft>=0.16,<0.18" \
2 "sentencepiece>=0.2,<0.3" torch
1import torch
2from peft import PeftModel
3from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
4
5adapter_id = "uthayamurthy/origin-task3-nllb-lora"
6base_id = "facebook/nllb-200-distilled-600M"
7base_revision = "f8d333a098d19b4fd9a8b18f94170487ad3f821d"
8device = "cuda" if torch.cuda.is_available() else "cpu"
9
10tokenizer = AutoTokenizer.from_pretrained(
11 adapter_id, src_lang="eng_Latn", tgt_lang="ben_Beng"
12)
13base_model = AutoModelForSeq2SeqLM.from_pretrained(
14 base_id,
15 revision=base_revision,
16 torch_dtype=torch.bfloat16 if device == "cuda" else torch.float32,
17)
18model = PeftModel.from_pretrained(base_model, adapter_id).to(device).eval()
19
20title = "A framework to measure microaggressions in the mathematics classroom"
21inputs = tokenizer(title, return_tensors="pt").to(device)
22with torch.inference_mode():
23 tokens = model.generate(
24 **inputs,
25 forced_bos_token_id=tokenizer.convert_tokens_to_ids("ben_Beng"),
26 num_beams=5,
27 max_new_tokens=96,
28 )
29print(tokenizer.batch_decode(tokens, skip_special_tokens=True)[0])