Views
No views yet
| File | Quantization | Quality | Use Case |
|---|---|---|---|
RLM-hinglish-translator-bidir-2.Q8_0.gguf | Q8_0 | Near lossless | Best quality, recommended |
llama-cli -hf rudrashah/RLM-hinglish-translator-bidir-2-gguf --jinjaollama run rudrashah/RLM-hinglish-translator-bidir-2-gguf1ollama create RLM-hinglish-bidir -f ./Modelfile
2ollama run RLM-hinglish-bidirHinglish: or English: to set the translation direction.1from transformers import TextStreamer
2
3# Hinglish → English
4messages = [{
5 "role": "user",
6 "content": [{"type": "text", "text": "Hinglish: kal mujhe office jaana hai"}]
7}]
8
9# English → Hinglish
10# messages = [{
11# "role": "user",
12# "content": [{"type": "text", "text": "English: I have to go to the office tomorrow."}]
13# }]
14
15inputs = tokenizer.apply_chat_template(
16 messages,
17 add_generation_prompt=True,
18 return_tensors="pt",
19 tokenize=True,
20 return_dict=True,
21).to("cuda")
22
23_ = model.generate(
24 **inputs,
25 max_new_tokens=128,
26 use_cache=True,
27 temperature=1.0, top_p=0.95, top_k=64,
28 streamer=TextStreamer(tokenizer, skip_prompt=True),
29)Note: Just change the prefix — useHinglish:to translate to English, orEnglish:to translate to Hinglish.
| Hinglish Input | English Output |
|---|---|
aapka name kya hai? | What is your name? |
kal mujhe office jaana hai | I have to go to the office tomorrow. |
Tumne kal ki match dekhi thi? kon man of the match bana tha? | Did you watch yesterday's match? Who was man of the match? |
| English Input | Hinglish Output |
|---|---|
What is your name? | aapka naam kya hai? |
I have to go to the office tomorrow. | kal mujhe office jaana hai. |
Did you watch yesterday's match? | Tumne kal ki match dekhi thi? |
| Property | Details |
|---|---|
| Base Model | 4B instruction-tuned LLM |
| Fine-tuning Method | PEFT (LoRA), rank 64, lora_alpha 64 |
| Trainer | TRL SFTTrainer |
| Dataset | findnitai/english-to-hinglish |
| Training Samples | 15,000 (both directions) |
| Format | Chat template (user/assistant) |
| Quantization | Q8_0 via Unsloth |
| License | MIT |
| Model | Direction | Format | Notes |
|---|---|---|---|
| RLM-hinglish-translator | Hinglish → English | Full precision | v1, 2B base |
| RLM-hinglish-translator-2 | Hinglish → English | Full precision | v2, 4B base |
| RLM-hinglish-translator-bidir-2 | Hinglish ↔ English | Full precision | Bidirectional |
| RLM-hinglish-translator-bidir-2-gguf (this) | Hinglish ↔ English | GGUF Q8_0 | Quantized for local use |