Downloads · 30 days
13
7% of all-time downloads
RakshithFury/Qwen2.5-7b-en-kn-translate
Qwen2.5-7b-en-kn-translate is a text generation model from RakshithFury. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A fine-tuned translation model based on Qwen2.5-7B-Instruct, specialized for translating between English and Kannada (ಕನ್ನಡ).
Downloads · 30 days
13
7% of all-time downloads
All-time downloads
200
Public
Parameters
7.6B
30.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors30.5 GB · 100%
From the Hugging Face model README
A fine-tuned translation model based on Qwen2.5-7B-Instruct, specialized for translating between English and Kannada (ಕನ್ನಡ).
This model is a fine-tuned version of Qwen/Qwen2.5-7B-Instruct trained on English-Kannada translation pairs. Kannada is a Dravidian language spoken primarily in the Indian state of Karnataka.
Training was done across 4xNVIDIA A100-SXM4-40GB GPUs for 6h 48m 10s using 64,603,656 tokens. Training frameworks used were transformers, peft, trl and accelerate for distributed setup.
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("RakshithFury/Qwen2.5-7b-en-kn-translate")
model = AutoModelForCausalLM.from_pretrained("RakshithFury/Qwen2.5-7b-en-kn-translate")
model = model.to("cuda:0")
sentences = [sentence1, sentence2,....]
for sentence in sentences:
messages = [
{"role": "user", "content": "Translate the following English sentence to Kannada:" + sentence},
]
inputs = tokenizer.apply_chat_template(messages,add_generation_prompt=True,tokenize=True,return_dict=True,return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=200,temperature=0.5,min_p=0.1)
res = tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:],skip_special_tokens=True)
print(res)
Trained on 500000 samples of english-kannada translation pairs.

The train loss is 0.5036 and the token accuracy is 87%.

It is clear that the eval loss hasn't saturated. There is still scope for it's decrease.
English sentence:
What is the meaning of life?
Default model:
生命周期 ನೀಡಲು ಎಂದು ತೆರೆಯಿರಿ?
Finetuned model:
ಜೀವನದ ಅರ್ಥ ಏನು?
English sentence:
My biggest problem is deciding what I should wear.
Default model:
ನ ಹೊಸ ಸಮಸ್ಯೆಯು ನನ್ನ ವೈರಾಗ್ಯವನ್ನು ತಿಳಿದೇಕ್ಕಾಗಿ ಎಂಬ ವೈಸೀನಿಯನ್ನು ಒಡ್ಡುವುದು.
Finetuned model:
ನಾನು ಏನು ಧರಿಸಬೇಕೆಂದು ನಿರ್ಧರಿಸುವುದು ನನಗೆ ಅತಿ ದೊಡ್ಡ ಸಮಸ್ಯೆ.
English sentence:
It was probably the first thing I remembered from my early childhood.
Default model:
ಯಾವುದೇ ಈಗ ಹಲವಾರು ವರ್ಷಗಳ ಕ್ಕೆ ಪ್ರೊಜೆಕ್ಟ್ನಲ್ಲಿ ಮನೆಯಲ್ಲಿ ಬರುತ್ತಿರುವ ಮುಖ್ಯ ಚಿತ್ರಗಳು ನಂತರ ಮುಂದೆ ಹೆಚ್ಚು ವರ್ಷಗಳ ಕ್ಕೆ ಸೆಟ್ಪಡಿಸಲಾಗಿದೆ.
Finetuned model:
ಬೆಳೆದ ಮೊದಲ ವರ್ಷದಲ್ಲಿ ನನಗೆ ಸಂಭವನೀಯವಾಗಿ ಮರೆಯಲಾಗದ ಒಂದು ಘಟನೆ.
English sentence:
Captain America is my favorite Avenger
Default model:
ಕप्टन ಅಮೆರಿಕಾ ಎಂದರೆ ನನ್ನ ಪ್ರಯತ್ನಿತ ಏವ್ನೇಂಟಿನ ಸೊನ್ನೋತ್ತಮ ವಿಷಯವಾಗಿದೆ.
Finetuned model:
ನಾನು ನಿರ್ದೇಶಕ ಅವರ ಪ್ರಿಯ ಸ್ಟಾರ್ ಆಗಿದ್ದೇನೆ ಕ್ಯಾಪ್ಟನ್ ಅಮೆರಿಕಾ.
Experiments were conducted using a private infrastructure, which has a carbon efficiency of 0.432kgCO2/kWh.
Total emissions are estimated to be 0.76 kgCO2 Which is equivalent to
If you use this model in your research, please cite:
@misc{RakshithFury/Qwen2.5-7b-en-kn-translate,
author = {Rakshith Rao},
title = {Qwen2.5-7B English-Kannada Translation Model},
year = {2024},
publisher = {HuggingFace},
url = {https://huggingface.co/your-username/model-name}
}
@article{qwen2.5,
title={Qwen2.5: A Party of Foundation Models},
author={Qwen Team},
year={2024},
journal={arXiv preprint arXiv:2412.xxxxx}
}
For questions or feedback: