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
69
Safetensors
Model size
223M params
Tensor type
F32
·
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.

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

Base model

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

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