Downloads · 30 days
11
15% of all-time downloads
narendarcodes/adaption-contract-clause-analyzer-109b
adaption-contract-clause-analyzer-109b is a text generation model from narendarcodes. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as cc-by-4.0.
Powered by Adaptive Data — Adaption Labs
Downloads · 30 days
11
15% of all-time downloads
All-time downloads
75
Public
Repo size
921 MB
Likes
1
Public
Click a slice to open those files.
.safetensors893 MB · 97%
From the Hugging Face model README
Powered by Adaptive Data — Adaption Labs
Given a contract clause or legal fact pattern, this model classifies the clause type across 41 CUAD categories and applies the governing legal rule step-by-step — never fabricating citations or referencing statutes not in the provided text.
Specifically, this model performs:
Legal professionals spend hundreds of hours per deal manually reviewing contracts clause-by-clause. Current LLMs hallucinate case citations, fabricate legal rules, and provide ungrounded conclusions. This model is trained to:
<think> traces before reaching a <answer>| Field | Value |
|---|---|
| Trained Model Name | adaption_legal_breach_advisory_sample |
| Base Model | meta-llama/Llama-4-Scout-17B-16E-Instruct (109B MoE) |
| Training Method | Supervised Fine-Tuning (SFT) with LoRA |
| Training Platform | Adaption Labs AutoScientist |
| Language | English (en) |
| License | CC-BY-4.0 |
The fine-tuning process was managed through the Adaption Labs AutoScientist platform, applying targeted data engineering and training constraints:
Source Data & Attribution:
| Source | Rows | What It Teaches | License |
|---|---|---|---|
| zenml/cuad-deepseek | ~550 | 41-category contract clause classification with DeepSeek reasoning | Apache-2.0 |
| nguha/legalbench (hearsay) | ~125 | Hearsay admissibility under evidence rules | CC-BY-4.0 |
| nguha/legalbench (sara_entailment) | ~125 | Tax statute entailment vs. fact patterns | CC-BY-4.0 |
| Metric | Before | After | Change |
|---|---|---|---|
| Grade | B | A | ⬆️ |
| Score | 9.0 | 9.8 | +8.9% |
| Percentile | — | 78.4% | — |
| Hyperparameter | Value |
|---|---|
| Finetune Job ID | 38b574a3-841b-486a-9371-cd1b9ef6f759 |
| Training Experiment ID | 0ded6a5c-5597-4c3a-9ad1-3f3e4d6ce5eb |
| LoRA Rank (r) | 64 |
| LoRA Alpha | 128 |
| LoRA Dropout | 0 |
| Target Modules | q_proj, k_proj, v_proj, o_proj, shared_expert.*, feed_forward.* |
| Epochs | 4 |
| Batch Size | max |
| Learning Rate | 5e-5 |
| LR Scheduler | Cosine (0.5 cycles) |
| Warmup Ratio | 0.05 |
| Weight Decay | 0.02 |
| Max Grad Norm | 1.0 |
| Evaluation Set | Base Model | Adapted Model | Winner |
|---|---|---|---|
| On Your Dataset | 19% | 81% | ✅ Adapted |
| Across Category (Held-out) | 35% | 66% | ✅ Adapted |
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-4-Scout-17B-16E-Instruct")
model = PeftModel.from_pretrained(base_model, "narendarcodes/adaption-contract-clause-analyzer-109b")
tokenizer = AutoTokenizer.from_pretrained("narendarcodes/adaption-contract-clause-analyzer-109b")
@misc{golla2026contractanalyzer,
title={Contract Clause Analyzer — CUAD Classification and Legal Rule Application via Grounded Reasoning},
author={Golla Narendar},
year={2026},
note={Trained using Adaption Labs AutoScientist platform. Powered by Adaptive Data.}
}
Powered by Adaptive Data — Adaption Labs
Built for the 2026 Adaption AutoScientist Challenge — Legal Category