Downloads · 30 days
5
6% of all-time downloads
ShivRamSaud/hy-mt2-1.8b-wmt26
hy-mt2-1.8b-wmt26 is a translation model from ShivRamSaud. Use it when you need text moved from one language to another. The card lists the license as apache-2.0.
Fine-tuned from Hy-MT2-1.8B using QLoRA on TVsub subtitle data for the WMT26 Video Subtitle Translation shared task.
Downloads · 30 days
5
6% of all-time downloads
All-time downloads
85
Public
Parameters
1.8B
3.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.6 GB · 100%
From the Hugging Face model README
Fine-tuned from Hy-MT2-1.8B using QLoRA on TVsub subtitle data for the WMT26 Video Subtitle Translation shared task.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("ShivRamSaud/hy-mt2-1.8b-wmt26")
tokenizer = AutoTokenizer.from_pretrained("ShivRamSaud/hy-mt2-1.8b-wmt26")
prompt = tokenizer.apply_chat_template([
{"role": "system", "content": "Translate the following Chinese subtitle to English."},
{"role": "user", "content": "你好,世界"},
], tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt")
output = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(output[0], skip_special_tokens=True))
Evaluation on a 200-pair dev split sampled from TVsub training data.
Apache 2.0