Downloads · 30 days
60
1% of all-time downloads
mervinpraison/tamil-large-language-model-7b-v1.0
tamil-large-language-model-7b-v1.0 is a text generation model from mervinpraison. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Developing a large language model for Tamil is a significant achievement, highlighting the potential for advanced AI technologies to support and enrich Tamil digital content. Created by Mervin Praison, this model stan…
Downloads · 30 days
60
1% of all-time downloads
All-time downloads
6K
Public
Parameters
8.5B
17.1 GB on disk
Likes
8
Public
Click a slice to open those files.
.safetensors17.1 GB · 100%
From the Hugging Face model README
Developing a large language model for Tamil is a significant achievement, highlighting the potential for advanced AI technologies to support and enrich Tamil digital content. Created by Mervin Praison, this model stands as a testament to innovation and dedication towards enhancing language processing capabilities for Tamil speakers around the globe. It is designed to understand, interpret, and generate Tamil text, offering invaluable tools for businesses, educators, and researchers. By leveraging this model, we can unlock new opportunities for content creation, automate and improve customer support, and contribute to preserving and promoting the Tamil language in the digital age.
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("mervinpraison/tamil-large-language-model-7b-v1.0")
model = AutoModelForCausalLM.from_pretrained("mervinpraison/tamil-large-language-model-7b-v1.0")
query_to_llm = "ஆரோக்கியமாக இருப்பதற்கான இரண்டு வழிகள்"
inputs = tokenizer.encode(query_to_llm, return_tensors="pt")
outputs = model.generate(inputs, max_length=200)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)