This is a
LoRA fine-tuned version of
Qwen/Qwen3-14B specifically trained for Indian legal domain tasks, with a focus on
POCSO (Protection of Children from Sexual Offences) Act cases.
Suggests applicable legal sections based on complaint text.
Extracts key details (victim, accused, incident) from complaints.
Recommends evidence collection priorities.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4# Load base model
5base_model = AutoModelForCausalLM.from_pretrained(
6 "Qwen/Qwen3-14B",
7 torch_dtype="auto",
8 device_map="auto"
9)
10tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-14B")
11
12# Load LoRA adapter
13model = PeftModel.from_pretrained(base_model, "vivekvar/qwen3-14b-pocso-legal-assistant")
14
15# Generate
16prompt = """Task: Suggest legal sections for this complaint.
17
18Complaint: A 15-year-old girl was harassed by her neighbor.
19
20Output JSON:"""
21
22inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
23outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.1)
24print(tokenizer.decode(outputs[0], skip_special_tokens=True))
All suggestions must be verified by qualified legal professionals.
1@misc{qwen3-14b-pocso-legal,
2 title={Qwen3-14B Fine-tuned for Indian Legal Domain},
3 author={AI4AP Team},
4 year={2026},
5 publisher={Hugging Face},
6 url={https://huggingface.co/vivekvar/qwen3-14b-pocso-legal-assistant}
7}