Proof of concept — best used inside Writ, not as a standalone oracle.
Proof of concept · Indian legal domain

Indian law, understood — entirely on your machine.

Vidhi is a proof-of-concept legal language model fine-tuned on roughly 15,000 Supreme Court judgments (2010–2026) and the IndiaCode Central Acts data. It is built to reason about Indian law inside Writ, where retrieval grounds it in High Court / Supreme Court precedent — not to be used as a standalone oracle.

No API. Runs entirely on your hardware. No subscription. Download once. ~2.0 GB · 3 GB VRAM minimum.
$ ollama run hf.co/prawinin/vidhi

Requires Ollama installed. Loads in <10s on a 4 GB GPU, <20s on CPU. Alternative: llama.cpp.

~15kSC judgments
8,192Token context
3BLlama 3.2 base
100%Offline capable

What it does

A research assistant for Indian jurisprudence.

Vidhi is tuned for the way Indian lawyers actually work — provisions, ingredients, limitation, procedure, and the reasoning of constitutional, criminal, civil, and commercial benches. A research and educational tool, not a substitute for counsel.

I

Statutory interpretation

Parse Central Acts provision-by-provision: ingredients, exceptions, provisos, and cross-references — from the Constitution to the IPC, CrPC, CPC, NI Act, and Companies Act.

II

Case-law reasoning

Summaries and ratio-oriented discussion grounded in Supreme Court and High Court doctrine — holdings, tests laid down, and doctrinal evolution across benches.

III

Criminal & civil procedure

Step-throughs of CrPC and CPC workflows: cognizance, charge, bail, trial stages, pleadings, interim relief, execution — with limitation awareness.

IV

Commercial & regulatory

Working knowledge of the Companies Act, Consumer Protection Act, Transfer of Property Act, and GST legislation for first-pass commercial analysis.

V

Drafting assistance

Structure legal notices, complaints, written statements, and research memos — with issue framing, relief mapping, and checklist-style completeness.

VI

Private by design

Every query stays on your hardware. Client facts never leave the machine — suitable for chambers, clinics, and classrooms with confidentiality needs.

Training corpus

Trained on Supreme Court judgments and Central Acts.

Roughly 15,000 Supreme Court judgments (2010–2026) across constitutional, criminal, civil, and commercial benches · the full IndiaCode Central Acts data. High Court judgments are not in the weights — they live in Writ's retrieval knowledge base, which is why Vidhi is designed to be used inside Writ.

~15,000Supreme Court judgments · 2010–2026

Ratio decidendi, tests, and doctrinal lines — the core of Vidhi's reasoning patterns.

IndiaCodeCentral Acts & provisions · full data

Constitution, IPC, CrPC, CPC, NI Act, Consumer Protection, TPA, Companies Act, GST, and more.

Held outHigh Court judgments · via Writ retrieval

HC precedent stays in the knowledge base, not the weights — use Vidhi with Writ to reach it.

Constitution of India Indian Penal Code Code of Criminal Procedure Code of Civil Procedure Negotiable Instruments Act Consumer Protection Act Transfer of Property Act Companies Act GST legislation + several hundred Central Acts

Quick start

Running in under a minute.

Two supported paths. Ollama is recommended for most users; llama.cpp for direct control. No API keys, no accounts, no network calls at inference time.

Run with Ollama

Install Ollama, then pull and run. Loads in under 10 seconds on a 4 GB GPU, under 20 seconds on CPU.

Terminal
ollama run hf.co/prawinin/vidhi
File size~2.0 GB (Q4_K_M)
GPU path3 GB+ VRAM minimum
CPU path8 GB RAM minimum

Model card

Small enough to run anywhere. Tuned for one job.

A LoRA fine-tune of Llama 3.2 3B Instruct, quantized for consumer hardware — built with Unsloth.

Base modelLlama 3.2 3B Instruct
Fine-tuningLoRA · rank 16 · alpha 16
Context window8,192 tokens
QuantizationQ4_K_M (GGUF)
File size~2.0 GB
Minimum hardware3 GB VRAM (GPU) or 8 GB RAM (CPU)
LanguagesEnglish · Hindi (legal usage)
Repositoryhuggingface.co/prawinin/vidhi

Why 3B, and why local?

Large general models are powerful but impractical where confidentiality, cost, and connectivity matter. Vidhi trades breadth for depth: a compact model that carries Indian statute and precedent knowledge and runs wherever a lawyer, student, or researcher works.

  • Chambers & courts without reliable internet
  • Legal-aid clinics handling sensitive facts
  • Classrooms teaching statutory reading

Responsible use

What Vidhi is — and isn't.

Research & education tool.
Vidhi is not a substitute for qualified legal advice from a licensed advocate. Do not rely on outputs without independent verification.
Knowledge cutoff applies.
The model may not reflect recent amendments, new legislation, or judgments delivered after its training data was collected.
Verify against authority.
Always check outputs against bare Acts, official gazettes, and reported judgments before use in any professional context.

License & access

Personal, non-commercial evaluation.

Redistribution, sublicensing, sale, modification, or use in any product, service, or research publication requires explicit written permission.

Commercial licensing & partnerships

For enterprise deployment, commercial licensing, or collaboration, contact the author directly. Built with Unsloth; underlying base model subject to the Meta Llama 3.2 Community License.

PermittedPersonal evaluation
Requires permissionCommercial use · redistribution · derivatives
Base licenseMeta Llama 3.2 Community License

FAQ

Questions, answered briefly.

Should I use Vidhi alone or with Writ?

With Writ. Vidhi is a proof of concept: strong on legal reasoning patterns, unreliable on exact citations from memory. Writ's retrieval grounds it in prior High Court / Supreme Court judgments and Acts before generating — that combination is the actual product.

How do I run Vidhi?

Install Ollama, then run ollama run hf.co/prawinin/vidhi. For direct control, use llama-cli -hf prawinin/vidhi with llama.cpp. Both run fully offline after the initial download.

What hardware do I need?

The Q4_K_M build is ~2.0 GB. Minimum: 3 GB VRAM on GPU, or 8 GB RAM on CPU. A 4 GB GPU loads the model in under 10 seconds.

Which areas of law does it cover?

Criminal, civil, constitutional, and commercial law — including the Constitution, IPC, CrPC, CPC, NI Act, Consumer Protection Act, Transfer of Property Act, Companies Act, and GST legislation, plus Supreme Court and High Court doctrine.

Is it a substitute for a lawyer?

No. Vidhi is a research and educational tool. Outputs must be verified against authoritative sources and reviewed by a licensed advocate before reliance.

Can I use it commercially?

Not without permission. The model is released for personal, non-commercial evaluation only. Write to prawin@vyapai.tech for commercial licensing or enterprise deployment.

Does it send data anywhere?

No. Inference runs entirely on your hardware with no API, no internet connection, and no subscription. Your queries never leave the machine.