Downloads · 30 days
13
9% of all-time downloads
KordAI/Typhoon-Gemma3-KordTranslate-EN-TH-4B
Typhoon-Gemma3-KordTranslate-EN-TH-4B 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
13
9% of all-time downloads
All-time downloads
152
Public
Parameters
3.9B
7.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.8 GB · 99%
From the Hugging Face model README
Typhoon 2.1 Gemma 3 KordTranslate EN-TH 4B is a bilingual English ↔ Thai translation model fine-tuned from typhoon-ai/typhoon2.1-gemma3-4b for high-quality machine translation between Thai and English.
| Item | Value |
|---|---|
| Model | KordAI/Typhoon-Gemma3-KordTranslate-EN-TH-4B |
| Base Model | typhoon-ai/typhoon2.1-gemma3-4b |
| Architecture | Gemma 3 (4B) |
| 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-Gemma3-KordTranslate-EN-TH-4B"
# 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/typhoon2.1-gemma3-4b 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:
typhoon2.1-gemma3-4b base model.@misc{kordtranslate2026,
title={Typhoon Gemma3 KordTranslate EN-TH 4B},
author={KordAI},
year={2026},
publisher={Hugging Face},
howpublished={https://huggingface.co/KordAI/Typhoon-Gemma3-KordTranslate-EN-TH-4B}
}