Ertas for Legal
Train AI models on your firm's legal documents, then run them on your own servers so the client documents lawyers send them in daily work stay in-house.
The Challenge
Law firms and corporate legal departments generate enormous volumes of contracts, briefs, memos, and case law research every day. Extracting patterns from this data (identifying unfavorable clauses in vendor agreements, summarizing depositions, or surfacing relevant precedent across thousands of filings) is exactly the kind of task large language models excel at. Yet generic models trained on internet text routinely misapply legal terminology, confuse jurisdictions, and produce citations to cases that do not exist.
The confidentiality problem is even more acute than the accuracy problem. Attorney-client privilege and work-product doctrine impose strict obligations on how legal data is handled. Sending client contracts or litigation strategy documents to a third-party API, where data may be logged, cached, or used for model improvement, creates privilege-waiver risks that no general counsel wants to accept. Many firms have blanket policies prohibiting the use of external AI services on client matters, leaving lawyers without access to the productivity gains the rest of the enterprise enjoys.
The Solution
Ertas lets legal teams build AI models that are accurate on their own domain. In Ertas Studio, legal technologists fine-tune open models on curated sets of anonymized contracts, case summaries, and internal knowledge management content, uploaded as JSONL or built in Data Craft, Studio's guided dataset builder, where lawyers review, edit and approve each example. LoRA fine-tuning keeps training efficient, and several candidate models can train in parallel for side-by-side comparison. The resulting models learn the firm's citation formats, contractual boilerplate, and jurisdiction-specific terminology.
Training runs on Ertas's cloud GPUs, so the training set is uploaded to Ertas. Firms should anonymize or minimize it first and decide, under their own confidentiality obligations, which material is suitable for training. After training, the model is downloaded from Hub as GGUF or safetensors and runs on the firm's own servers, where the documents lawyers send it during day-to-day work stay inside the firm's network. Access, matter segregation, ethical walls and logging are handled by the firm's existing systems around that server. Firms that want help scoping a build can start with Ertas's enterprise custom-model service: a free use-case audit, then a three-to-four-week proof of concept.
Key Features
Legal Corpus Fine-Tuning
Use Studio's visual fine-tuning canvas to train models on JSONL datasets of contract clauses, legal Q&A pairs, case summaries, and regulatory text. Apply LoRA adapters to specialize models for contract review, legal research, or document drafting without full retraining costs.
Lawyer-Reviewed Training Data
Build and refine examples in Data Craft, Studio's guided dataset builder. Lawyers add and edit USER and ASSISTANT turns, keep versions, and mark which examples are approved, so only reviewed work goes into a training run.
Inference on Your Own Servers
Download the trained model from Hub as GGUF for llama.cpp or Ollama, or as safetensors for vLLM, and run it on the firm's own servers. Documents sent to the model during review stay inside the firm's network, and the model has no Ertas dependency at runtime.
A Separate Model per Practice Group
Train separate models for corporate, litigation or IP work, each on that group's own dataset. Each model is a file the firm owns and can place behind its existing access rules and ethical walls.
Example Workflow
A mid-size corporate law firm wants to speed up contract review for M&A due diligence. The legal technology team exports 30,000 commercial contracts from the firm's document management system, anonymizes them and removes client identifiers, and converts the clause-level annotations into a JSONL dataset. Senior associates spot-check a sample in Data Craft before it is uploaded to Ertas Studio. The team launches LoRA fine-tuning runs on Mistral 7B and Llama 3.1 8B in parallel, focused on clause classification and risk flagging, and compares each run against a held-out set of contracts the firm's lawyers have already reviewed. The better model is exported as safetensors and served with vLLM on the firm's own servers. Associates on the deal team send target-company contracts through an internal review tool connected to that server and get clause-by-clause risk notes on change-of-control provisions, indemnification caps and non-standard termination clauses. Lawyers review every flag, and their corrections feed the next training run.
Compliance & Security
Whether a given use of AI preserves privilege, or meets bar association and ethics rules, is the firm's own assessment, and Ertas makes no claim on that question. Here is what the product does. Training runs on Ertas's cloud GPUs, so the training set is uploaded to Ertas: anonymize or minimize client material before upload, and confirm that using it for training fits the firm's engagement terms. Datasets are stored so runs can be repeated, and you can delete them. After export, the model runs on the firm's own infrastructure, so documents sent to it during day-to-day work stay there. Access rules, ethical walls and logging around that server come from the firm's existing systems.
Related Resources
Fine-Tuning
GGUF
JSONL
LoRA
Inference
Privacy-Conscious AI Development: Fine-Tune in the Cloud, Run on Your Terms
Introducing Ertas Studio: A Visual Canvas for Fine-Tuning AI Models
Data Sovereignty for AI Agencies: Why Clients Demand Local Models
Hugging Face
Ollama
llama.cpp
Ertas for Healthcare
Ertas for Finance
Ertas for Customer Support
Ertas for Data Extraction
Ertas for AI Automation Agencies
Ship AI that runs on your users' devices.
Free plan with 30 credits/mo, no card required. Paid plans from $10/mo USD.