Downloads · 30 days
7
24% of all-time downloads
svenschwieger/llama-70b-contract-finetuned
llama-70b-contract-finetuned is a machine learning model from svenschwieger. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as llama3.1.
A fine-tuned LoRA adapter for Meta Llama 3.1 70B specialized in construction contract risk analysis.
Downloads · 30 days
7
24% of all-time downloads
All-time downloads
29
Public
Repo size
837 MB
Likes
0
Public
Click a slice to open those files.
.safetensors837 MB · 100%
From the Hugging Face model README
A fine-tuned LoRA adapter for Meta Llama 3.1 70B specialized in construction contract risk analysis.
| Parameter | Value |
|---|---|
| Batch Size | 2 |
| Gradient Accumulation | 4 |
| Effective Batch Size | 8 |
| Learning Rate | 2e-5 |
| LR Schedule | Cosine |
| Epochs | 1 |
| Max Sequence Length | 2048 |
| Warmup Steps | 100 |
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"meta-llama/Llama-3.1-70B",
torch_dtype="auto",
device_map="auto"
)
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "svenschwieger/llama-70b-contract-finetuned")
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.1-70B")
The model was fine-tuned on synthetic construction contract clauses covering:
This model inherits the Llama 3.1 license.