Downloads · 30 days
17
32% of all-time downloads
dhintech/percobaan_1
percobaan_1 is a translation model from dhintech. 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 model is a fine-tuned version of Helsinki-NLP/opus-mt-id-en specialized for translating Indonesian to English, particularly within contexts found in TED Talks.
Downloads · 30 days
17
32% of all-time downloads
All-time downloads
53
Public
Parameters
72.2M
291 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors289 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of Helsinki-NLP/opus-mt-id-en specialized for translating Indonesian to English, particularly within contexts found in TED Talks.
transformers library.Helsinki-NLP/opus-mt-id-enid) → English (en)from transformers import MarianMTModel, MarianTokenizer
model_name = "dhintech/marian-tedtalks_clean-id-en"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = MarianMTModel.from_pretrained(model_name)
# Pindahkan model ke GPU jika tersedia
import torch
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model.to(device)
def translate(text):
inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True, max_length=128).to(device)
with torch.no_grad():
outputs = model.generate(**inputs, num_beams=4, early_stopping=True)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
# Contoh penggunaan
indonesian_text = "Selamat pagi, mari kita mulai rapat hari ini."
english_translation = translate(indonesian_text)
print(f"ID: {indonesian_text}")
print(f"EN: {english_translation}")
Performance metrics such as BLEU score, inference time, and human evaluation will be added here after the model has been fully trained and evaluated.
Feedback and contributions are welcome! Please use the Community tab or open an issue on the repository if you encounter any problems or have suggestions for improvement.