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

Source code

Where it fits

Related work

Related field notes