Downloads · 30 days
10
18% of all-time downloads
rej06/NyayMitra
NyayMitra is a machine learning model from rej06. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
Github link - https://github.com/rejzzzz/NyayMitra
Downloads · 30 days
10
18% of all-time downloads
All-time downloads
57
Public
Repo size
90.6 MB
Likes
3
Public
Click a slice to open those files.
.safetensors73.4 MB · 68%
From the Hugging Face model README
Github link - https://github.com/rejzzzz/NyayMitra
This model is a fine-tuned version of Meta-LLaMA 3.2 3B using QLoRA on Indian Law datasets.
It is designed to assist in legal question answering, case law summarization, and other NLP tasks in the Indian legal domain.
Indian Law Dataset
viber1/indian-law-dataset
LLM Fine Tuning Dataset of Indian Legal Texts
Kaggle Dataset
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "your-username/llama-3.2-indianlaw-lora"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
prompt = "What is Article 21 of the Indian Constitution?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))