Downloads · 30 days
18
8% of all-time downloads
aishu15/colloquial-tamil
colloquial-tamil is a translation model from aishu15. Use it when you need text moved from one language to another. The card lists the license as apache-2.0.
To use this model, you can either directly use the Hugging Face transformers library or you can use the model via the Hugging Face inference API.
Downloads · 30 days
18
8% of all-time downloads
All-time downloads
217
Public
Parameters
484M
1.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.9 GB · 100%
From the Hugging Face model README
To use this model, you can either directly use the Hugging Face transformers library or you can use the model via the Hugging Face inference API.
Training Details
Load and test the model using Hugging Face Transformers:
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
# Load model and tokenizer
model_name = "aishu15/colloquial-tamil"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
# Function to translate text
def translate(text):
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_length=128)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
# Example translations
test_sentences = [
"This is so beautiful",
"Bro, are you coming or not?",
"My mom is gonna kill me if I don't reach home now!"
]
for sentence in test_sentences:
print(f"English: {sentence}")
print(f"Colloquial Tamil: {translate(sentence)}\n")