Downloads · 30 days
253
3% of all-time downloads
rudrashah/RLM-hinglish-translator
RLM-hinglish-translator is a translation model from rudrashah. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as mit.
<p align="center" <a href="https://www.buymeacoffee.com/rudrashah" target="blank" <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px…
Downloads · 30 days
253
3% of all-time downloads
All-time downloads
10K
Public
Parameters
2.5B
10 GB on disk
Likes
11
Public
Click a slice to open those files.
.safetensors10 GB · 100%
From the Hugging Face model README
Project Hinglish aims to develop a high-performance language translation model capable of translating Hinglish (a blend of Hindi and English commonly used in informal communication in India) to standard English. The model is fine-tuned over gemma-2b using PEFT(LoRA) method using the rank 128. Aim of this model is for handling the unique syntactical and lexical characteristics of Hinglish.

from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("rudrashah/RLM-hinglish-translator")
model = AutoModelForCausalLM.from_pretrained("rudrashah/RLM-hinglish-translator")
template = "Hinglish:\n{hi_en}\n\nEnglish:\n{en}" #THIS IS MOST IMPORTANT, WITHOUT THIS IT WILL GIVE RANDOM OUTPUT
input_text = tokenizer(template.format(hi_en="aapka name kya hai?",en=""),return_tensors="pt")
output = model.generate(**input_text)
print(tokenizer.decode(output[0]))