Downloads · 30 days
17
7% of all-time downloads
tidelganesh/Qwen3-thirukkural-tamil-v2
Qwen3-thirukkural-tamil-v2 is a text generation model from tidelganesh. 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.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
17
7% of all-time downloads
All-time downloads
251
Public
Parameters
596M
8.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 99%
From the Hugging Face model README
This model is a fine-tuned version of Qwen/Qwen3-0.6B on an Thirukkural dataset. It achieves the following results on the evaluation set:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.2331 | 1.0 | 200 | 0.3307 |
| 0.1840 | 2.0 | 400 | 0.3093 |
| 0.1735 | 3.0 | 600 | 0.3013 |
| 0.1550 | 4.0 | 800 | 0.2983 |
| 0.1789 | 5.0 | 1000 | 0.2980 |
| 0.1689 | 6.0 | 1200 | 0.2986 |
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "tidelganesh/Qwen3-thirukkural-tamil" # your repo
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, dtype="auto")
messages = [{"role": "user", "content": "பொறையுடைமை அதிகாரத்தில் வரும் 158ஆம் குறளைத் தருக."}]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(
**inputs, max_new_tokens=150,
eos_token_id=tokenizer.eos_token_id,
pad_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))