Downloads · 30 days
19
12% of all-time downloads
kylebrussell/cap-sft-qwen3-lora-10k
cap-sft-qwen3-lora-10k is a text generation model from kylebrussell. 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 (Low-Rank Adaptation) fine-tuned version of Qwen/Qwen3-14B, specifically trained on legal case analysis tasks using data from the Caselaw Access Project (CAP).
Downloads · 30 days
19
12% of all-time downloads
All-time downloads
154
Public
Repo size
1.6 GB
Likes
0
Public
Click a slice to open those files.
.pt1 GB · 56%
From the Hugging Face model README
This is a LoRA (Low-Rank Adaptation) fine-tuned version of Qwen/Qwen3-14B, specifically trained on legal case analysis tasks using data from the Caselaw Access Project (CAP).
This model was trained on five core legal reasoning tasks:
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen3-14B",
torch_dtype=torch.float16,
device_map="auto"
)
# Load LoRA adapter
model = PeftModel.from_pretrained(
base_model,
"kylebrussell/cap-sft-qwen3-lora-10k"
)
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-14B")
# Example legal reasoning prompt
prompt = """Given the following case facts, identify the primary legal holding:
Case: A company fired an employee for refusing to work overtime without pay...
Options:
A) Employment at-will doctrine applies
B) Fair Labor Standards Act violation
C) Wrongful termination claim
D) Contract breach
Answer:"""
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
The model was trained on kylebrussell/cap-rlvr-sft, which contains processed legal case data from:
kylebrussell/cap-rlvr-retrieval@misc{cap-sft-qwen3-lora-10k,
title={CAP SFT Qwen3 LoRA 10K: Legal Reasoning with LoRA Fine-tuning},
author={Kyle Russell},
year={2024},
publisher={HuggingFace},
howpublished={\url{https://huggingface.co/kylebrussell/cap-sft-qwen3-lora-10k}}
}
Apache 2.0 (following base model license)