Instructions to use MihaiPopa-1/Qwen3-0.6B-English-Hinglish-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MihaiPopa-1/Qwen3-0.6B-English-Hinglish-Preview with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="MihaiPopa-1/Qwen3-0.6B-English-Hinglish-Preview")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MihaiPopa-1/Qwen3-0.6B-English-Hinglish-Preview") model = AutoModelForCausalLM.from_pretrained("MihaiPopa-1/Qwen3-0.6B-English-Hinglish-Preview", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use MihaiPopa-1/Qwen3-0.6B-English-Hinglish-Preview with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for MihaiPopa-1/Qwen3-0.6B-English-Hinglish-Preview to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for MihaiPopa-1/Qwen3-0.6B-English-Hinglish-Preview to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MihaiPopa-1/Qwen3-0.6B-English-Hinglish-Preview to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="MihaiPopa-1/Qwen3-0.6B-English-Hinglish-Preview", max_seq_length=2048, )
Qwen 3 0.6B English <-> Hinglish (Preview)
This is just a English to Hinglish (code-switched English-Hindi) and back transaltion model. Fine-tuned from Qwen 3 0.6B (with Unsloth), this model is designed for translation tasks on any device!
Issues
Low BLEU Scores: Because I trained this for ONLY a epoch, BLEU scores are lower than in the final version. We're going to train a new version for 5 epochs!
Notes
This is still a experimental model and shouldn't be used for tasks where accurate translations matter!
Evaluation Results
| Direction | BLEU (250 sentences from test split) |
|---|---|
| English -> Hinglish | 4.94 |
| Hinglish -> English | 17.89 |
Usage
Code is by Gemini 3 Flash (then some little modifications by myself):
English to Hinglish
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# 1. Load from your Hugging Face Repo
model_id = "MihaiPopa-1/Qwen3-0.6B-English-Hinglish-Preview"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float32, # Standard for CPU
device_map="cpu" # Forces CPU usage
)
# 2. Translate (replace ron_Latn with your language here)
prompt = "<|im_start|>user\nTranslate English to Hinglish: Hello, how are you doing?<|im_end|>\n<|im_start|>assistant\n"
inputs = tokenizer(prompt, return_tensors="pt").to("cpu")
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.1)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Hinglish to English
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# 1. Load from your Hugging Face Repo
model_id = "MihaiPopa-1/Qwen3-0.6B-English-Hinglish-Preview"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float32, # Standard for CPU
device_map="cpu" # Forces CPU usage
)
# 2. Translate (replace ron_Latn with your language here)
prompt = "<|im_start|>user\nTranslate Hinglish to English: Hello, tum kaise ho?<|im_end|>\n<|im_start|>assistant\n"
inputs = tokenizer(prompt, return_tensors="pt").to("cpu")
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.1)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Data Used
I used CMU's Hinglish Dog for this model (yes, really)!
Uploaded finetuned model
- Developed by: MihaiPopa-1
- License: apache-2.0
- Finetuned from model : unsloth/qwen3-0.6b-unsloth-bnb-4bit
This qwen3 model was trained 2x faster with Unsloth and Huggingface's TRL library.
- Downloads last month
- 12
