Legal Intelligence
A local legal-document pipeline: Llama 3 fine-tuned with LoRA, with a second model checking every summary.
A local pipeline for legal documents. It covers dataset preparation, Llama 3 fine-tuning with LoRA, PDF and DOCX processing, structured summaries and batch execution, with Gemma verifying each summary before it is trusted.
Highlights
- LoRA fine-tuning
- Runs on local models
- Summary verification
Stack: Python, Llama 3, LoRA, Ollama, Gemma
Where it fits
Related work
- Transcription Analyzer: Speech, OCR, NLP and sentiment, stitched into one pipeline.
- Anomaly Detection: ML ensembles running over streaming data.
- GPT-2 Generator: Local text generation with keyword extraction.
Related field notes
- The Air-Gapped AI Blueprint: Deploying Sovereign LLMs in Regulated Defense and Banking
- The Pydantic Trap: Why Strict Structured Outputs Cause Silent Semantic Truncation in Production
- The Judge is Blind: Why LLM-as-a-Judge Correlates Poorly with Human Domain Experts
- LoRA vs. QLoRA vs. Full Parameter Tuning in 2026: Practical Benchmarks for Enterprise Domain Models