Image-Text-to-Text
Transformers
Safetensors
English
qwen3_5
legal
contracts
redlining
agentic
tool-calling
reasoning
long-context
litil
conversational
Run this model with HF Jobs
Run litillabs/LiTiL-One on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/litillabs/LiTiL-One. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/litillabs/LiTiL-One on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/litillabs/LiTiL-One. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/litillabs/LiTiL-One. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use litillabs/LiTiL-One with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use litillabs/LiTiL-One with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="litillabs/LiTiL-One") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("litillabs/LiTiL-One") model = AutoModelForMultimodalLM.from_pretrained("litillabs/LiTiL-One", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use litillabs/LiTiL-One with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "litillabs/LiTiL-One" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "litillabs/LiTiL-One", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/litillabs/LiTiL-One
- SGLang
How to use litillabs/LiTiL-One with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "litillabs/LiTiL-One" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "litillabs/LiTiL-One", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "litillabs/LiTiL-One" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "litillabs/LiTiL-One", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use litillabs/LiTiL-One with Docker Model Runner:
docker model run hf.co/litillabs/LiTiL-One
File size: 14,019 Bytes
ea3fa5d 1e75edb ea3fa5d dbc6606 468ac66 dbc6606 468ac66 ea3fa5d 468ac66 ea3fa5d 7d0baf7 ea3fa5d 468ac66 ea3fa5d dbc6606 ea3fa5d 468ac66 ea3fa5d 468ac66 ea3fa5d 468ac66 dbc6606 468ac66 ea3fa5d 468ac66 ea3fa5d 7d0baf7 ea3fa5d 468ac66 dbc6606 468ac66 dbc6606 ea3fa5d 1e75edb ea3fa5d 468ac66 ea3fa5d 1e75edb ea3fa5d 468ac66 dbc6606 468ac66 ea3fa5d 468ac66 ea3fa5d 1e75edb ea3fa5d 468ac66 dbc6606 468ac66 ea3fa5d 468ac66 ea3fa5d 468ac66 ea3fa5d 468ac66 ea3fa5d 468ac66 ea3fa5d 468ac66 ea3fa5d dbc6606 7d0baf7 ea3fa5d dbc6606 468ac66 ea3fa5d dbc6606 ea3fa5d dbc6606 ea3fa5d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 | ---
license: apache-2.0
library_name: transformers
pipeline_tag: image-text-to-text
language:
- en
base_model:
- Qwen/Qwen3.8-27B
base_model_relation: finetune
tags:
- legal
- contracts
- redlining
- agentic
- tool-calling
- reasoning
- long-context
- qwen3_5
- litil
---
<p align="center">
<img src="assets/litil-labs.svg" width="320" alt="LiTiL Labs">
</p>
<p align="center">
<a href="https://litil.ai/litil-one">Release Paper</a> |
<a href="https://huggingface.co/litillabs/LiTiL-One">BF16</a> |
<a href="https://huggingface.co/litillabs/LiTiL-One-FP8">FP8</a> |
<a href="https://huggingface.co/litillabs/LiTiL-One-GGUF">GGUF</a> |
<a href="https://huggingface.co/collections/litillabs/litil-one-6b0dc11db79effee35b728f6">Collection</a> |
<a href="https://litil.ai/contact">Work With LiTiL Labs</a>
</p>
# Introducing LiTiL One (27B — BF16)
A Pareto frontier contracts model that you can run at home ~~in a data center~~.
`27B Dense · 256K Context · Tool Calling · Adjustable Reasoning · 16.5 GB Q4 · BF16 / FP8 / GGUF · Apache 2.0`
We built LiTiL One on a simple bet. A 27-billion-parameter model trained properly for contract work can go head to head with frontier models ten to a hundred times its size, and still fit on a machine you control. At 16.5 GB, LiTiL One sets the Pareto frontier for contract work: no plotted open-weight model under 300B parameters beats it on full-task completion, and to our knowledge it is the first publicly released model that hits frontier performance on full legal tasks on a single workstation or consumer GPU.
LiTiL One starts from [`Qwen/Qwen3.8-27B`](https://huggingface.co/Qwen/Qwen3.8-27B). Everything after that was post-training on complete contract matters. The model gets a realistic deal file: drafts, counterparty redlines, email chains, amendments, financial schedules, and client instructions. It has to sit in the position of the lawyer, read everything, figure out what matters, and produce the finished work product: a tracked redline, a clean execution copy, and a client memo.
This repository holds the reference BF16 Safetensors weights (55.6 GB, standalone — no base-model download needed) with the native 262,144-token context window, preserved vision tower, structured tool calling, and selectable reasoning effort.
## Model Family
| Repository | Package | Size | Target Hardware & Runtime |
| :--- | :--- | :---: | :--- |
| [`litillabs/LiTiL-One`](https://huggingface.co/litillabs/LiTiL-One) | BF16 Safetensors (+ vision) | 55.6 GB | Reference precision, benchmark audits, custom firm RL / fine-tuning |
| [`litillabs/LiTiL-One-FP8`](https://huggingface.co/litillabs/LiTiL-One-FP8) | FP8 Safetensors (+ vision) | 30.9 GB | Single H100 / H200 / B300 enterprise serving via SGLang or vLLM |
| [`litillabs/LiTiL-One-GGUF`](https://huggingface.co/litillabs/LiTiL-One-GGUF) | Q4_K_M · BF16 GGUF · F16 Vision `mmproj` | 16.5–54.7 GB | MacBook / Mac Studio (32 GB+) or single 24–32 GB GPU via llama.cpp, Ollama, or LM Studio |
## Evaluation and Real Deal Proof
It’s easy to make a model look good if you’re just testing it on single-paragraph clauses like a quiz. Real transactional work is much less forgiving. Even if it catches 9 out of 10 issues, the missed issues can make or break a deal. We evaluated LiTiL One across four public benchmarks covering full matter execution, commercial redlining restraint, doctrinal precision, and continuing-matter reasoning.
| Benchmark & Metric | Scope | LiTiL One (27B) | Frontier & Specialized Reference Scores |
| :--- | :--- | :---: | :--- |
| Harvey — Task All-Pass | 498 contract tasks (100% criteria met) | 13.3% | Kimi K3 12.9% · Opus 5.5 9.2% · GPT-6 Astra 7.1% · Fable 5.1 6.7% · GPT-6 Luna 4.2% |
| Harvey — Criterion Pass | 498 contract tasks (two-judge mean) | 91.2% | Kimi K3 93.5% · GPT-6 Astra 91.7% · Opus 5.5 89.8% · GPT-6 Luna 88.3% |
| ContractBench | Commercial redlining & escalation | 54.29% | Opus 5.5 57.98% · Kimi K3 57.37% · Gemini 3.8 Flash 54.81% · GLM-5.3 54.76% · DeepSeek V4 Pro 47.87% · GPT-6 Astra 45.85% |
| LegalBench — Contracts | 87 contract categories | 87.9% | Contract-specific slice inside the 161-category LegalBench suite |
| LegalBench — Overall | All 161 legal categories | 85.6% | Fable 5.1 88.5% · GPT-6 Astra 87.1% · Opus 5.5 87.0% · Kimi K3 86.2% · GPT-5.6 Luna 84.0% |
| LegalReasonBench | Continuing-matter legal reasoning | 34.58% | Fable 5.1 50.60% · Opus 5.5 46.50% · Gemini 3.8 Flash 39.60% · GPT-6 Astra 39.50% · GPT-6 Sol 31.90% |
<p align="center">
<img src="assets/fig-01-frontier-comparison.png" width="100%" alt="LiTiL One (27B) versus frontier models across four legal benchmarks">
</p>
Size matters as much as raw score. Plotted against open-weight models using Vals reference scores, LiTiL One anchors the Pareto frontier at 27B parameters (13.25% task all-pass). Models ten to a hundred times larger sit beside or below it, including Kimi K3 (12.92%) and GLM 5.3 Flash (10.42%), and you don’t need a cluster of B300s to run it.
<p align="center">
<img src="assets/fig-02-harvey-pareto.png" width="100%" alt="Size-performance Pareto frontier: Harvey task all-pass versus total model size">
</p>
### Harvey Legal Agent Benchmark
Across 498 contract tasks scored by two independent judges under Vals methodology, LiTiL One passed 91.2% of individual criteria, ahead of Opus 5.5 (89.8%) and GPT-6 Luna (88.3%) and half a point behind GPT-6 Astra (91.7%). The bigger separation shows up on task all-pass, where every criterion on a task has to pass and a single missed instruction or broken cross-reference fails the whole task. On task all-pass, LiTiL One scores 13.3%, ahead of Kimi K3 (12.9%), Opus 5.5 (9.2%), GPT-6 Astra (7.1%), and Fable 5.1 (6.7%).
Across eleven corporate practice groups in the 498-task suite, LiTiL One scores between 88.2% and 93.8% on criterion accuracy. We ran Harvey with a minimal setup: one model, the source documents, and seven basic tools (`bash, read, write, edit, glob, grep, finish`), with no separate planner or second reviewer checking the output.
### ContractBench
[ContractBench](https://huggingface.co/datasets/micro1-inc/ContractBench) evaluates commercial contract review and redlining: what needs editing, what settled terms must stay untouched, and when to escalate an open business call to the client. LiTiL One scores 54.29%, beating GPT-6 Astra (45.85%) by 8.44 points and DeepSeek V4 Pro (47.87%) by 6.42 points. Its strongest category was preserving agreed terms, earning 87.21% of the positive rubric weight on restraint checks. Knowing what to leave alone is half of deal lawyering.
You can see what that looks like in practice below, comparing LiTiL One (27B) against GLM-5.3 FlashX Legal (320B MoE) on the same lab lease counterproposal from ContractBench. On paper, year-one rent stayed at $32.50/RSF, but the tenant added a 120-day Rent Commencement deferral in §2(b). GLM missed the deferral, left the §3(f) operating-expense gross-up change untouched, and didn’t flag the §9(b) sublease recapture issue for Asset Management (63.8%). LiTiL One struck the deferral in tracked changes, tightened §2(c) back to the 10-business-day exercise window, restored the 95% gross-up in §3(f), escalated §9(b), and left four settled terms alone (74.5%). On the Crescent / Northstar studio lease, which came back with 244 counterparty tracked changes, LiTiL One hit 100.0% (17/17 criteria, all four settled terms intact) against 25.6% for GLM.
<p align="center">
<img src="assets/fig-06-counterproposal-case-study.png" width="100%" alt="Inside a real ContractBench counterproposal">
</p>
<details>
<summary>View additional benchmark & training figures (Figures 3–5, 7–11)</summary>
<p align="center"><img src="assets/fig-03-harvey-benchmark.png" width="100%" alt="Harvey Legal Agent Benchmark: Criterion pass vs. task all-pass"></p>
<p align="center"><img src="assets/fig-04-harvey-practices.png" width="100%" alt="Harvey criterion pass rate across eleven corporate practice areas"></p>
<p align="center"><img src="assets/fig-05-contractbench.png" width="100%" alt="ContractBench public leaderboard comparison"></p>
<p align="center"><img src="assets/fig-07-legalbench.png" width="100%" alt="LegalBench overall and contract-category results"></p>
<p align="center"><img src="assets/fig-08-legalreasonbench.png" width="100%" alt="LegalReasonBench weighted legal-reasoning score"></p>
<p align="center"><img src="assets/fig-09-matter-execution.png" width="100%" alt="From high-entropy data room to coordinated deliverables"></p>
<p align="center"><img src="assets/fig-10-cispo-pipeline.png" width="100%" alt="Long-horizon RL pipeline: modified CISPO with isolated rubric supervision"></p>
<p align="center"><img src="assets/fig-11-deployment-profiles.png" width="100%" alt="Sovereign deployment footprints and measured throughput"></p>
</details>
## How We Built It
To train LiTiL One, we built realistic matter files containing drafts, counterparty redlines, email threads, internal memos, amendments, and financial schedules. This reflects the kind of record that you see in practice, where a late email modifies a playbook rule or a schedule formula conflicts with the main agreement. Across billions of tokens and over 4,000 grading criteria (up to 100 subcriteria per rubric), LiTiL One trained inside a live tool environment over 20 to more than 140 turns and 500,000+ cumulative tokens using a modified version of Clipped Importance Sampling Policy Optimization (CISPO) with within-task score centering and exact-prefix trajectory assembly across windows. Read the full methodology in the [release paper](https://litil.ai/litil-one).
## Weights, Deployment, and Serving
| Item | Specification |
| :--- | :--- |
| Base model | [`Qwen/Qwen3.8-27B`](https://huggingface.co/Qwen/Qwen3.8-27B) (dense hybrid-attention, 27B) |
| Architecture | `Qwen3_5ForConditionalGeneration` (64 layers + preserved vision tower) |
| Native context window | 262,144 tokens |
| Default sampling | `temperature: 1.0`, `top_p: 0.95`, `top_k: 20`, `max_tokens: 32768` |
| Reasoning effort | `xhigh` (default), `medium`, `low`, or `enable_thinking: false` |
| Tool & reasoning parsers | `--reasoning-parser qwen3` · `--tool-call-parser qwen3_coder` |
| Package in this repo | BF16 Safetensors (55.6 GB) |
### SGLang
```bash
bash scripts/serve_sglang.sh litillabs/LiTiL-One
```
```bash
python -m sglang.launch_server \
--model-path litillabs/LiTiL-One \
--served-model-name litil-one \
--host 127.0.0.1 --port 8000 \
--context-length 262144 \
--dtype bfloat16 \
--reasoning-parser qwen3 \
--tool-call-parser qwen3_coder
```
### vLLM
```bash
bash scripts/serve_vllm.sh litillabs/LiTiL-One
```
```bash
vllm serve litillabs/LiTiL-One \
--served-model-name litil-one \
--host 127.0.0.1 --port 8000 \
--max-model-len 262144 \
--dtype bfloat16 \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--tool-call-parser qwen3_coder
```
### OpenAI-Compatible Python Client
You can dial reasoning effort to match the task. Keep `xhigh` enabled for multi-document redlines and schedule reconciliation, step down to `medium` or `low` for quick single-agreement triage, or switch thinking off for fast clause extraction:
```python
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ.get("LITIL_ONE_BASE_URL", "http://127.0.0.1:8000/v1"),
api_key=os.environ.get("LITIL_ONE_API_KEY", "not-needed"),
timeout=1200,
)
stream = client.chat.completions.create(
model=os.getenv("LITIL_ONE_MODEL", "litil-one"),
messages=[{
"role": "user",
"content": "Review this agreement against our playbook...",
}],
temperature=1.0,
top_p=0.95,
max_tokens=32768,
stream=True,
extra_body={
"top_k": 20,
"chat_template_kwargs": {
"enable_thinking": True,
"reasoning_effort": "xhigh",
"preserve_thinking": True,
},
},
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
```
## Own Your Intelligence
Every serious law firm, investment fund, and corporate legal team already owns something no general-purpose API provider can replicate: decades of hard-won deal judgment. Which risks your partners accept, where your fallback lines stop, how a specific counterparty pushes back, and how thousands of past deals actually closed. That institutional memory is what clients pay for.
Renting closed APIs puts firms in a bad trade. You send privileged client work outside your network into a generic model that treats every firm’s risk appetite identically, collects a permanent per-token toll, and leaves your practice with zero compounding asset of its own. Our entire mission is focused on one bet: that the future is organizations training, owning, and running specialized models right where their work sits. We believe the future is LiTiL.
LiTiL One is the open-weights proof of what our post-training pipeline produces. We partner directly with law firms, enterprise legal departments, and financial institutions to turn their precedent banks, negotiation playbooks, and partner judgment into private evaluation suites, bespoke post-trained models, and sovereign contract agents deployed inside their own infrastructure.
- Release paper: [litil.ai/litil-one](https://litil.ai/litil-one)
- Work with LiTiL Labs: [litil.ai/contact](https://litil.ai/contact)
## Citation
```bibtex
@misc{litillabs2026litilone,
title = {Introducing LiTiL One},
author = {LiTiL Labs},
year = {2026},
url = {https://litil.ai/litil-one}
}
```
## License
Released under the [Apache License 2.0](./LICENSE) (see [NOTICE](./NOTICE)). Post-trained from [`Qwen/Qwen3.8-27B`](https://huggingface.co/Qwen/Qwen3.8-27B).
|