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
Align model card voice with finalized LiTiL One release paper
Browse files33 unmodified lines343536373839404142434410 unmodified lines5556575859606125 unmodified lines8788899091929394959697989910010110210310410 unmodified lines11511611711811912012112212383 unmodified lines20720820921021121221333 unmodified lines# Introducing LiTiL One (27B — BF16)A 27B open-weights contracts model that beats frontier giants on finished deal work and runs ~~in a data center~~ on a single GPU or workstation.`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 (Q4_K_M), LiTiL One sets the size-performance 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.10 unmodified lines## Evaluation and Real Deal ProofIt’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. Catch nine out of ten of a client’s requests on a live deal and miss the tenth, and you just handed a partner a broken agreement. 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 || :--- | :--- | :---: | :--- |25 unmodified lines[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 (750B-class) on the same lab lease counterproposal from ContractBench. On paper, year-one rent stayed at $32.50/RSF, but the tenant quietly 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>### How LiTiL One Fails vs. Frontier ModelsLooking past overall scores, LiTiL One and larger frontier models fail in different ways. On LegalReasonBench, where rubrics subtract points for serious legal misstatements, LiTiL One (27B) and 750B-class GLM-5.3 FlashX Legal passed the exact same number of positive criteria (126 of 185). LiTiL One still beat GLM on all five matters (34.58% vs. 28.43%) because it triggered half as many negative penalties (7 of 36 vs. 14 of 36).Across 3,424 shared judged criteria in ContractBench redlines, both models agree 80.1% of the time, and both miss unraised internal escalations more often than any other action. Where they differ, LiTiL One beats GLM-5.3 FlashX Legal by 6.26 points on rejecting hostile counterparty edits (62.37% vs. 56.11%) and holds 99.22% on clauses meant to stay untouched, while GLM does better on broad first-turn rewriting and creative countering (60.23% vs. 55.92%). Missed counters and unraised escalations still require a lawyer’s review; where LiTiL One helps is cutting down reopened business terms, memo-to-contract contradictions, and unforced legal misstatements.<details><summary>View additional benchmark & training figures (Figures 3–5, 7–11)</summary>10 unmodified lines## How We Built ItYou can’t train a contracts model on scraped public filings and synthetic Q&A pairs and expect it to handle a live deal. Clean, single-turn examples teach a model how to answer isolated clause questions, not how to work through a folder where documents contradict each other.To train LiTiL One, practicing lawyers built realistic matter files containing drafts, counterparty redlines, email threads, internal memos, amendments, and financial schedules—the kind of record 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/research/litil-one).## Weights, Deployment, and Serving83 unmodified linesEvery 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. 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/research/litil-one](https://litil.ai/research/litil-one)- Work with LiTiL Labs: [litil.ai/contact](https://litil.ai/contact)33 unmodified lines343536373839404142434410 unmodified lines5556575859606125 unmodified lines87888990919293949596979810 unmodified lines10911011111211311411583 unmodified lines19920020120220320420520620733 unmodified lines# 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.10 unmodified lines## Evaluation and Real Deal ProofIt’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 || :--- | :--- | :---: | :--- |25 unmodified lines[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 (750B-class) 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>10 unmodified lines## How We Built ItTo 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/research/litil-one).## Weights, Deployment, and Serving83 unmodified linesEvery 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/research/litil-one](https://litil.ai/research/litil-one)- Work with LiTiL Labs: [litil.ai/contact](https://litil.ai/contact)
README.md+8-14