LexiTune – Legal Contract Fine-tune

LoRA fine-tune of Llama 3.1 8B for clause extraction and risk flagging in Indian commercial contracts, with eval suite.

by Sofia MartinsVerified Author(6) 67 sales 1.7K viewsUpdated 26 Sept 2026
LexiTune – Legal Contract Fine-tune — preview 1
1 / 3

LexiTune extracts clauses, obligations and risks from contracts, trained on a curated, licence-clean corpus of commercial agreements.

Key features

  • LoRA adapters for Llama 3.1 8B Instruct
  • Clause extraction to a typed JSON schema
  • Risk flags with rationale
  • Evaluation suite with 400 labelled contracts
  • vLLM and Ollama serving configs

Tech stack

  • PyTorch
  • PEFT/LoRA
  • vLLM

Requirements

  • GPU with 16 GB VRAM for inference
  • Python 3.11+

Installation

  1. Download the adapter weights from the package.
  2. Load with peft on top of Llama 3.1 8B Instruct.
  3. Run python eval.py to reproduce benchmark results.

What's included

  • Full source code with comments
  • Step-by-step documentation
  • Demo data and seed scripts where applicable
  • 12 months of author support and all future updates

More from this author

View all

Related in AI & Machine Learning Tools

View all