Run this model with HF Jobs

Run litillabs/LiTiL-One-FP8 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-FP8. 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-FP8 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-FP8. 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.
LiTiL-One-FP8 / README.md
narcolepticchicken's picture
Pre-launch QA polish: figures, CSP-safe logo badge, quickstart ports & presets
af1b6cb verified
|
Raw History Blame Contribute Delete
8.98 kB
---
license: apache-2.0
library_name: transformers
pipeline_tag: image-text-to-text
language:
- en
base_model:
- litillabs/LiTiL-One
base_model_relation: quantized
tags:
- fp8
- 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> &nbsp;|&nbsp;
<a href="https://huggingface.co/litillabs/LiTiL-One">BF16</a> &nbsp;|&nbsp;
<a href="https://huggingface.co/litillabs/LiTiL-One-FP8">FP8</a> &nbsp;|&nbsp;
<a href="https://huggingface.co/litillabs/LiTiL-One-GGUF">GGUF</a> &nbsp;|&nbsp;
<a href="https://huggingface.co/collections/litillabs/litil-one-6b0dc11db79effee35b728f6">Collection</a> &nbsp;|&nbsp;
<a href="https://litil.ai/contact">Work With LiTiL Labs</a>
</p>
# LiTiL One (27B — FP8)
Fine-grained FP8 production weights for [LiTiL One](https://huggingface.co/litillabs/LiTiL-One): a Pareto frontier contracts model that you can run at home ~~in a data center~~.
`30.9 GB FP8 · 256K Context · 149–167 tok/s × 6 ~256K Streams on 1× B300 · 291 tok/s Single Stream · Apache 2.0`
Running a 27B dense model changes the math on security and cost immediately. Put the weights inside your VPC or on an office GPU and per-token API charges drop to zero, with zero client files leaving your network. For high-concurrency firm-wide serving on one NVIDIA B300, this FP8 checkpoint running on SGLang with Multi-Token Prediction (MTP) sustains 149–167 tokens per second per request across six simultaneous warmed near-256K-context streams (2.3–3.1s time to first token), and hits 291 tokens per second on a single stream after prefill.
This repository packages LiTiL One in fine-grained E4M3FN FP8 (128×128 weight blocks, FP32 `weight_scale_inv`, dynamic activation scaling, and the official `Qwen3.8-27B-FP8` layer exclusions) while keeping the tokenizer, chat template, and vision components intact. FP8 quantization is read automatically from `config.json`—do not re-quantize at startup.
## 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 |
<p align="center">
<img src="assets/fig-11-deployment-profiles.png" width="100%" alt="Sovereign deployment footprints and measured throughput">
</p>
## Evaluation Summary
On Harvey’s Legal Agent Benchmark across 498 contract tasks, LiTiL One scores 13.3% on full-task completion (task all-pass), beating Kimi K3 (12.9%) and Claude Opus 5.5 (9.2%), and nearly doubling GPT-6 Astra (7.1%) and Fable 5.1 (6.7%). On ContractBench, it scores 54.29% (+8.44 points over GPT-6 Astra and +6.42 points over DeepSeek V4 Pro), earning 87.21% of the positive rubric weight on preserving agreed terms. Plotted against open-weight models using Vals reference scores, LiTiL One anchors the size-performance Pareto frontier at 27B parameters—no plotted open-weight model under 300B beats it on task all-pass, and you don’t need a cluster of B300s to run it.
| 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>
<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>
## Serving Quickstart
Requires SGLang (v0.5.19+) or vLLM with `Qwen3_5ForConditionalGeneration` / Transformers >=5.8.0 support and FP8-capable NVIDIA GPUs (Ada, Hopper, or Blackwell). `--dtype bfloat16` applies only to the retained high-precision components, not FP8 weights.
### SGLang (Recommended)
```bash
bash scripts/serve_sglang.sh litillabs/LiTiL-One-FP8
```
```bash
python -m sglang.launch_server \
--model-path litillabs/LiTiL-One-FP8 \
--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-FP8
```
```bash
vllm serve litillabs/LiTiL-One-FP8 \
--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).