Downloads · 30 days
0
kylebrussell/cap-sft-qwen3-lora-30k
cap-sft-qwen3-lora-30k is a machine learning model from kylebrussell. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is the optimal 30,000-sample supervised fine-tuned (SFT) version of Qwen3-14B trained on legal reasoning tasks from the Caselaw Access Project (CAP). The model uses LoRA (Low-Rank Adaptation) for parameter-effici…
Downloads · 30 days
0
Access
Public
Updated Jul 24, 2025
Repo size
783 MB
Likes
0
Public
Click a slice to open those files.
.pt514 MB · 49%
From the Hugging Face model README
This is the optimal 30,000-sample supervised fine-tuned (SFT) version of Qwen3-14B trained on legal reasoning tasks from the Caselaw Access Project (CAP). The model uses LoRA (Low-Rank Adaptation) for parameter-efficient fine-tuning and represents the sweet spot for legal reasoning performance.
Overall Accuracy: 81.3% (67/80 samples across 5 legal tasks) - Peak Performance
| Task | Accuracy | Status | Notes |
|---|---|---|---|
| Bluebook Citation | 100.0% (20/20) | ✅ PASS | Perfect legal citation formatting |
| Holding Selection | 70.0% (14/20) | ❌ FAIL | Multiple choice questions |
| IRAC Summarization | 100.0% (20/20) | ✅ PASS | Perfect case summarization |
| Case Retrieval | N/A | ⚠️ NO DATA | Missing evaluation samples |
| Entailment | 65.0% (13/20) | ❌ FAIL | Case relationship classification |
⭐ Proven Best Performance: This 30K model significantly outperforms both smaller (10K: 70.0%) and larger (75K: 76.2%) training runs, making it the optimal choice for downstream GRPO training.
Scaling Analysis:
🎯 Perfect Tasks: Achieves 100% accuracy on Bluebook citation formatting and IRAC case summarization
📈 Optimal Training Point: Represents the peak of the performance curve before overfitting sets in
🚀 GRPO Ready: This model serves as the optimal base for Group Relative Policy Optimization training
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("kylebrussell/cap-sft-qwen3-lora-30k")
model = AutoModelForCausalLM.from_pretrained("kylebrussell/cap-sft-qwen3-lora-30k")
# Generate legal text
prompt = "Complete this citation: Brown v. Board of Education, "
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=50)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
Trained on kylebrussell/cap-rlvr-sft - a multi-task legal reasoning dataset derived from the Caselaw Access Project.
| Model | Training Samples | Overall Accuracy | Status |
|---|---|---|---|
| Base Qwen3-14B | 0 | 18.8% | Baseline |
| 10K SFT | 10,000 | 70.0% | Good improvement |
| 30K SFT | 30,000 | 81.3% | 🏆 Optimal |
| 75K SFT | 75,000 | 76.2% | Overfitted |
✅ Recommended For:
❌ Not Recommended:
Apache 2.0
@model{cap-sft-qwen3-lora-30k,
title={CAP-SFT-Qwen3-LoRA-30K: Optimal Legal Reasoning with Supervised Fine-Tuning},
author={CAP RLVR Project},
year={2025},
url={https://huggingface.co/kylebrussell/cap-sft-qwen3-lora-30k}
}
This model is currently being used as the base for GRPO (Group Relative Policy Optimization) training to further improve legal reasoning through reinforcement learning with process supervision.