Views
No views yet
| Metric | Qwen-base | GPT-4o-mini | GPT-4o | This model |
|---|---|---|---|---|
| Hinglish marker density | 8.9% | 29.5% | 24.6% | 31.6% |
| English drift rate | 32% | 0% | 4% | 0% |
| Devanagari injection bug | 12.5% | 0% | 2.5% | 0% |
| Claude judge register score (/5) | 1.24 | 2.50 | 2.12 | 3.98 |
| Claude judge total (/20) | 6.72 | 13.56 | 12.90 | 12.48 |
| Infrastructure | $/M tokens | vs GPT-4o-mini |
|---|---|---|
| AWS T4 on-demand | $0.50 | parity |
| GCP T4 on-demand | $0.33 | 1.5× cheaper |
| AWS T4 reserved (1yr) | $0.30 | 1.7× cheaper |
| RunPod community | $0.18 | 2.8× cheaper |
| AWS T4 spot | $0.15 | 3.4× cheaper |
| GPT-4o-mini API | $0.51 (blended 20%/80% in/out) | baseline |
1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base_model = AutoModelForCausalLM.from_pretrained(
5 "Qwen/Qwen2.5-3B-Instruct",
6 torch_dtype="auto",
7 device_map="auto"
8)
9tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-3B-Instruct")
10
11# Load the LoRA adapter
12model = PeftModel.from_pretrained(base_model, "DSMJ910/qwen2.5-3b-hinglish-lora")
13
14messages = [{"role": "user", "content": "Bhai weekend pe Bangalore mein kya karein?"}]
15inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to("cuda")
16outputs = model.generate(inputs, max_new_tokens=300, do_sample=True, temperature=0.7)
17print(tokenizer.decode(outputs[0], skip_special_tokens=True))1@misc{hinglish-qwen-3b-2026,
2 title={Qwen2.5-3B Hinglish: QLoRA Fine-tuning for Indian Code-Mixed Conversation},
3 author={Muskan Jaiswal},
4 year={2026},
5 publisher={HuggingFace},
6 url={https://huggingface.co/DSMJ910/qwen2.5-3b-hinglish-lora}
7}