Ministral Legal Reasoning LoRA

A QLoRA fine-tuned legal reasoning adapter trained for grounded California statutory question answering and legal reasoning tasks.

This model was trained to:

  • answer using only provided statutory excerpts
  • reduce hallucinations
  • refuse unsupported claims
  • provide concise citation-aware responses
  • perform legal QA over California legislative text

Base Model

  • Ministral / Mistral reasoning model
  • Quantized 4-bit QLoRA training
  • Fine-tuned using Unsloth

Training Objective

The model was supervised on synthetic legal reasoning data generated from California legislative and statutory excerpts.

Training focused heavily on:

  • grounded statutory reasoning
  • hallucination resistance
  • refusal behavior
  • concise legal answers
  • section-aware responses
  • lightweight chain-of-thought reasoning

Dataset Characteristics

The dataset contains:

  • statutory QA
  • obligations
  • timelines
  • reporting requirements
  • applicability questions
  • refusal examples
  • adversarial hallucination-resistance prompts

Examples of trained refusal behavior:

"The provided text does not specify this information."


Example Usage

Load Base Model + LoRA Adapter

from unsloth import FastLanguageModel
from peft import PeftModel

base_model, tokenizer = FastLanguageModel.from_pretrained(
    "YOUR_BASE_MODEL"
)

model = PeftModel.from_pretrained(
    base_model,
    "Shubhwtf/ministral-legis-lora"
)

Example Prompt

Bill: AB1064

Statutory Excerpt:
Section 22757.21(c)(2)(B) excludes systems designed solely for research or technical assistance.

Question:
Does the law apply to systems used solely for research purposes?

Example Output

Section 22757.21(c)(2)(B) excludes systems designed solely for research or technical assistance from the scope of the law.
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Shubhwtf/ministral-legis-lora

Adapter
(93)
this model