Downloads · 30 days
18
11% of all-time downloads
izyya/Qwen3-Izy-Translate-EN-TH-0.6B
Qwen3-Izy-Translate-EN-TH-0.6B is a translation model from izyya. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as apache-2.0.
This repository contains the safetensors weights for Qwen3-Izy-Translate-EN-TH-0.6B, a highly efficient, lightweight model fine-tuned for bidirectional English and Thai translation.
Downloads · 30 days
18
11% of all-time downloads
All-time downloads
167
Public
Parameters
596M
1.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 99%
From the Hugging Face model README
This repository contains the safetensors weights for Qwen3-Izy-Translate-EN-TH-0.6B, a highly efficient, lightweight model fine-tuned for bidirectional English and Thai translation.
The model was trained 2x faster with Unsloth and Hugging Face's TRL library.
unsloth/qwen3-0.6b-unsloth-bnb-4bitsafetensorsFor optimal translation quality, structure your inputs exactly as shown below depending on the translation direction.
Translate the following English text to Thai.
### English:
[Your English text here]
Translate the following Thai text to English.
### Thai:
[Your Thai text here]
This snippet demonstrates how to load the model, pipe your translation prompt into it, and cleanly extract the output text.
from transformers import AutoModelForCausalLM, AutoTokenizer
# Replace with your actual Hugging Face repo path if it differs
model_name = "izyya/Qwen3-Izy-Translate-EN-TH-0.6B"
# Load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
# Prepare the translation snippet input
prompt = """
Translate the following English text to Thai.
### English:
But friends, I am so gay, that if I had a wife, I would encourage her to cheat on me.
"""
messages = [
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
# Conduct text completion
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):]
content = tokenizer.decode(output_ids, skip_special_tokens=True).strip("\n")
print("content:", content)