Downloads · 30 days
0
rairashmi/hinglish_translation_lora
hinglish_translation_lora is a translation model from rairashmi. Use it when you need text moved from one language to another. It is set up for transformers.
This is a fine-tuned T5-small model for translating English sentences into Hinglish (a mix of Hindi and English written in Latin script). The model was trained using LoRA (Low-Rank Adaptation) to optimize training eff…
Downloads · 30 days
0
Access
Public
Updated Feb 21, 2025
Repo size
6.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors5.5 MB · 63%
From the Hugging Face model README
This is a fine-tuned T5-small model for translating English sentences into Hinglish (a mix of Hindi and English written in Latin script). The model was trained using LoRA (Low-Rank Adaptation) to optimize training efficiency.
This model can be used to translate English sentences into Hinglish text directly via Hugging Face Transformers.
The model can be fine-tuned further or integrated into conversational AI systems and chatbots.
Users should be aware of translation inconsistencies and verify translations for critical applications.
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
model_name = "rairashmi/hinglish_translation_lora"
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
def translate_english_to_hinglish(text):
inputs = tokenizer(f"translate English to Hinglish: {text}", return_tensors="pt", padding=True, truncation=True)
outputs = model.generate(**inputs)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
sentence = "How are you?"
translation = translate_english_to_hinglish(sentence)
print(f"🔹 English: {sentence}")
print(f"🟢 Hinglish: {translation}")
The model was trained on the rairashmi/en-to-hinglish-dataset, a parallel corpus of English-Hinglish text pairs.
sacrebleu)[More Information Needed]
BibTeX:
@misc{hinglish_translation,
author = {Your Name},
title = {English to Hinglish Translation Model},
year = {2025},
url = {https://huggingface.co/rairashmi/hinglish_translation_lora}
}
For further details, check out the Hugging Face Model Page.
For any issues or questions, contact [Your Contact Information].