MURUGAYESU/tamil-govt-scheme-qa
Viewer • Updated • 300 • 10
How to use MURUGAYESU/tamil-govt-scheme-Llama-3.2-1B with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for MURUGAYESU/tamil-govt-scheme-Llama-3.2-1B to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for MURUGAYESU/tamil-govt-scheme-Llama-3.2-1B to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MURUGAYESU/tamil-govt-scheme-Llama-3.2-1B to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="MURUGAYESU/tamil-govt-scheme-Llama-3.2-1B",
max_seq_length=2048,
)Fine-tuned on Tamil-language QA pairs covering 10 major Indian and Tamil Nadu government welfare schemes (PM-KISAN, Amma Unavagam, MGNREGS, Ayushman Bharat, etc.)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained("MURUGAYESU/tamil-govt-scheme-llama3-8b", torch_dtype=torch.float16, device_map='auto')
tokenizer = AutoTokenizer.from_pretrained("MURUGAYESU/tamil-govt-scheme-llama3-8b")
prompt = '''### Instruction:
கீழே கொடுக்கப்பட்ட அரசு திட்டம் பற்றிய கேள்விக்கு தமிழில் விரிவான பதிலளிக்கவும்.
### Input:
PM-KISAN திட்டத்திற்கு யார் தகுதியானவர்கள்?
### Response:
'''
inputs = tokenizer(prompt, return_tensors='pt').to('cuda')
output = model.generate(**inputs, max_new_tokens=150, temperature=0.1, do_sample=True)
print(tokenizer.decode(output[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True))
PM-KISAN, Amma Unavagam, MGNREGS, Pradhan Mantri Awas Yojana, Ayushman Bharat, Kisan Credit Card, Sukanya Samridhi, CM Solar Scheme TN, Mukhyamantri Kalaignar Scheme, National Scholarship Portal
This model provides general educational information only. Always verify with official government portals (india.gov.in, tn.gov.in) before making any decisions.