15 September 202610 min readDocument processing

Contract review on a local LLM: how long-context models read a whole data room without the files leaving the building

TL;DR

  • Contract review on a local LLM works today, and for a due diligence data room it is usually the only version the NDA allows.
  • An agreement is a graph, not a page: a page-level extractor returns text deleted by Amendment No. 2 with full confidence. A long-context model reads the cap, the carve-outs and the amendment together.
  • A 60-page master services agreement with two amendments and four schedules is on the order of 50,000–90,000 tokens. Keep working sets in the low hundreds of thousands of tokens at most.
  • Illustrative scenario: a 5,000-document room of about 100,000 hard pages costs roughly €2,060 in GPT-4.1 sticker price versus about €150 of rented EU GPU compute — and a €600 reserved GPU covers this room and the next.
  • No quote, no value: every extracted field returns a verbatim quote, a page reference and a confidence. Explicit fields are reliable with spot checks; change of control, liability caps and indemnities are review-grade, not final.

Questions people ask

Can a local LLM do contract review?
Yes. A long-context open-weight model such as Llama 4 Scout can read a full agreement with its amendments and schedules in one prompt and pull parties, term, governing law, change of control and liability terms into a schema with a page reference for each answer. Qwen3-VL reads the scanned exhibits — signature pages, stamps, photographed pricing tables. Explicit fields are trustworthy with spot checks; composed clauses are review-grade.
Why not send a data room to ChatGPT or a cloud API?
A data room exists because of an NDA, and typical terms restrict disclosure to employees and advisers who need to know. Uploading 5,000 documents to a third-party inference API is a disclosure to a sub-processor the NDA did not anticipate, and virtual data room terms often forbid bulk export. Agreements also name people, so a US provider is a GDPR transfer under Articles 44–49. A local model removes the third party entirely.
How much does it cost to run a data room through a local model?
In the article’s illustrative scenario, a 5,000-document room of 100,000 hard pages costs about €150 of rented EU GPU compute — roughly 83 GPU-hours at €1.80 an hour — against about €2,060 on GPT-4.1 and €3,310 on Claude Sonnet 5 at list price. With 1.5× retries that is €225 versus €3,090 on GPT-4.1. The whole-file extraction pass adds about €100 locally. A reserved GPU at about €600 a month covers this room and the next.
What GPU do you need for long-context contract review?
Sizing this workload is about memory for context, not throughput. One A100-class 80 GB card carries a quantized long-context model and the OCR model for a room of about 100,000 pages, and a rented EU A100-class card is enough for a first room. Keep each prompt to tens of thousands of tokens by retrieving candidate clauses from the assembled bundle rather than loading the whole room, because quality and latency degrade past the low hundreds of thousands.
How accurate is AI contract review?
Anyone quoting one accuracy number has not defined the task. Explicit fields — parties, dates, governing law, payment terms in a clean schedule — are reliable enough to trust with spot checks, and errors there are mostly OCR or assembly mistakes. Composed fields such as change of control, liability caps and indemnities are review-grade. Absence is the hardest answer. Measure precision and recall per field on 50–100 lawyer-reviewed agreements.
Why does page-by-page OCR fail on contracts?
Because the number you want is rarely on the page the model is looking at. “Subject to Clause 14.3” on page 6 means nothing until page 31 has been read; Amendment No. 2 deletes a section the original PDF still shows; defined terms like “Change of Control” live in a definitions clause; pricing sits in a schedule and a side letter can change the deal. Page-level pipelines are right for 100,000 invoices and wrong for 5,000 agreements.

Want this worked out on your documents?

We will price a real sample against OpenAI or Anthropic and tell you whether Local document models or a local model on your hardware is the cheaper first step.