Downloads · 30 days
27
3% of all-time downloads
OpenOranje/TweeTaal-nl-en-0.6B
TweeTaal-nl-en-0.6B is a translation model from OpenOranje. 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.
The TweeTaal-en-nl model has been fine-tuned on Dutch-English & English-Dutch translation pairs to provide accurate, fluent translations. The compact 0.6B parameter size makes it suitable for deployment in resource-co…
Downloads · 30 days
27
3% of all-time downloads
All-time downloads
862
Public
Parameters
596M
2.4 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors2.4 GB · 99%
From the Hugging Face model README
The TweeTaal-en-nl model has been fine-tuned on Dutch-English & English-Dutch translation pairs to provide accurate, fluent translations. The compact 0.6B parameter size makes it suitable for deployment in resource-constrained environments while maintaining strong translation quality.
Primary Use Case: Translating Dutch text to English / English text to Dutch across various domains
Recommended Applications:
Method: Supervised Fine-Tuning (SFT)
The model was trained on Dutch-English parallel corpora. (Note: Specify your actual dataset details, such as:
from transformers import AutoTokenizer, AutoModelForCausalLM
# Load model and tokenizer
model_name = "OpenOranje/TweeTaal-nl-en-0.6B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Prepare input
dutch_text = "Hallo, hoe gaat het met je?"
prompt = f"Translate from Dutch to English:\n{dutch_text}"
message = [{"role":"user", "content": prompt}]
# Generate translation
inputs = tokenizer.apply_chat_template(message, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128, temperature=0.7)
translation = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(translation)
The model expects input in the following format:
Translate the following text from Dutch to English:\n{dutch_text}
Translate the following text from English to Dutch:\n{english_text}
Recommended generation parameters:
For questions or issues, please contact: [[email protected]][[email protected]]
License: [Apache 2.0]