This is a English to Turkish translator t5-base finetuned model on Helsinki-NLP/opus-100

Example Usage

#Load the model and tokenizer
plain_text = "Translate to Turkish: " #English text here!
inputs = tokenizer(cipher_text, return_tensors="pt", padding=True, truncation=True, max_length=256).to(device)
outputs = model.generate(inputs["input_ids"], max_length=256)
translated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)

License: This model is on Apache-2.0 License. Check licence docs for more!

☕ Buy Me a Coffee

Downloads last month
150
Safetensors
Model size
223M params
Tensor type
F32
·
Inference Providers NEW
This model is not currently available via any of the supported third-party Inference Providers, and the model is not deployed on the HF Inference API.

Model tree for suayptalha/Translate-EN-to-TR

Base model

google-t5/t5-base
Finetuned
(453)
this model

Dataset used to train suayptalha/Translate-EN-to-TR