Downloads · 30 days
12
3% of all-time downloads
KordAI/Typhoon-llama3.2-KordTranslate-EN-TH-1B
Typhoon-llama3.2-KordTranslate-EN-TH-1B is a translation model from KordAI. Use it when you need text moved from one language to another. The card lists the license as apache-2.0.
<p align="center" <img src="https://i.ibb.co/q3H1WPgj/logo.png" width="220" alt="KordTranslate Logo" </p
Downloads · 30 days
12
3% of all-time downloads
All-time downloads
473
Public
Parameters
1.2B
7.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
Typhoon llama3.2 KordTranslate EN-TH 1B is a bilingual English ↔ Thai translation model fine-tuned from Typhoon llama3.2 KordTranslate EN-TH 1B for high-quality machine translation between Thai and English.
The model is instruction-tuned specifically for translation tasks using bilingual translation datasets while preserving the strong language understanding inherited from the Typhoon base model.
| Item | Value |
|---|---|
| Model | KordAI/Typhoon-llama3.2-KordTranslate-EN-TH-1B |
| Base Model | typhoon-ai/Typhoon-llama3.2-1B |
| Architecture | llama3.2 (1B) |
| Task | Machine Translation |
| Languages | English, Thai |
| Fine-tuning | Supervised Fine-Tuning (SFT) |
This model is optimized for:
For the best performance, use the prompt templates below.
For 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]
from transformers import AutoModelForCausalLM, AutoTokenizer
# Hugging Face repository
model_name = "KordAI/Typhoon-llama3.2-KordTranslate-EN-TH-1B"
# Load tokenizer and model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
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)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):]
translation = tokenizer.decode(
output_ids,
skip_special_tokens=True
).strip()
print(translation)
This model is fine-tuned from typhoon-ai/Typhoon-llama3.2-1B using supervised instruction tuning on bilingual English–Thai translation datasets.
The model is trained to perform direct translation between:
while maintaining natural, fluent, and context-aware outputs.
Special thanks to:
Typhoon-llama3.2-1B base model.@misc{kordtranslate2026,
title={Typhoon llama3.2 KordTranslate EN-TH 1B},
author={KordAI},
year={2026},
publisher={Hugging Face},
howpublished={https://huggingface.co/KordAI/Typhoon-llama3.2-KordTranslate-EN-TH-1B}
}