Downloads · 30 days
86
44% of all-time downloads
vivekvar/qwen3-14b-pocso-legal-assistant
qwen3-14b-pocso-legal-assistant is a text generation model from vivekvar. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
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.
Downloads · 30 days
86
44% of all-time downloads
All-time downloads
195
Public
Repo size
1 GB
Likes
1
Public
Click a slice to open those files.
.safetensors1 GB · 98%
From the Hugging Face model README
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.
| Property | Value |
|---|---|
| Base Model | Qwen/Qwen3-14B |
| Fine-tuning Method | LoRA (Low-Rank Adaptation) |
| LoRA Rank (r) | 64 |
| LoRA Alpha | 128 |
| Dropout | 0.05 |
| Target Modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Training Examples | 8,954 |
| Validation Examples | 1,054 |
| Epochs | 3 |
| Learning Rate | 2e-5 |
The model was fine-tuned on Indian legal case examples including:
Suggests applicable legal sections based on complaint text.
Extracts key details (victim, accused, incident) from complaints.
Recommends evidence collection priorities.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen3-14B",
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-14B")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "vivekvar/qwen3-14b-pocso-legal-assistant")
# Generate
prompt = """Task: Suggest legal sections for this complaint.
Complaint: A 15-year-old girl was harassed by her neighbor.
Output JSON:"""
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.1)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
| Metric | Score |
|---|---|
| Semantic Similarity | 77.8% |
| JSON Output Validity | 100% |
| Reliability | 100% |
| Model Grade | EXCELLENT |
| Task | Qwen3-14B (this) | GPT + RAG |
|---|---|---|
| SUGGEST_SECTIONS | 70% | 0% (refuses) |
| GENERATE_SUMMARY | 85% | 75% |
| Reliability | 100% | 66.7% |
⚠️ This model is an AI assistant and should NOT replace professional legal advice.
All suggestions must be verified by qualified legal professionals.
Apache 2.0
@misc{qwen3-14b-pocso-legal,
title={Qwen3-14B Fine-tuned for Indian Legal Domain},
author={AI4AP Team},
year={2026},
publisher={Hugging Face},
url={https://huggingface.co/vivekvar/qwen3-14b-pocso-legal-assistant}
}