Downloads · 30 days
8
14% of all-time downloads
mehii123/kathe-2026-nllb-kashmiri
kathe-2026-nllb-kashmiri is a translation model from mehii123. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
This model is a fine-tuned version of facebook/nllb-200-distilled-600M trained on the BPCC dataset for English (engLatn) to Kashmiri Perso-Arabic (kasArab) machine translation for the KATHE 2026 competition.
Downloads · 30 days
8
14% of all-time downloads
All-time downloads
58
Public
Parameters
1.4B
5.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.6 GB · 99%
From the Hugging Face model README
This model is a fine-tuned version of facebook/nllb-200-distilled-600M trained on the BPCC dataset for English (eng_Latn) to Kashmiri Perso-Arabic (kas_Arab) machine translation for the KATHE 2026 competition.
eng_Latn -> kas_Arab)import torch
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
MODEL_ID = "mehii123/kathe-2026-nllb-kashmiri"
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForSeq2SeqLM.from_pretrained(MODEL_ID).to(DEVICE)
text = "She was a true visionary."
inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True).to(DEVICE)
target_lang_id = tokenizer.lang_code_to_id["kas_Arab"]
outputs = model.generate(
**inputs,
forced_bos_token_id=target_lang_id,
max_new_tokens=100,
num_beams=2,
length_penalty=1.0,
early_stopping=True
)
translation = tokenizer.decode(outputs[0], skip_special_tokens=True)
print("Kashmiri Translation:", translation)