Image-Text-to-Text
Transformers
Safetensors
lfm2_vl
liquid
lfm2.5
edge
decision
classification
calibration
system-one
multimodal
decision-model
conversational
custom_code
Eval Results
Instructions to use LiquidAI/d1-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LiquidAI/d1-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="LiquidAI/d1-3B", trust_remote_code=True) 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("LiquidAI/d1-3B", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("LiquidAI/d1-3B", trust_remote_code=True, 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 LiquidAI/d1-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LiquidAI/d1-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LiquidAI/d1-3B", "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/LiquidAI/d1-3B
- SGLang
How to use LiquidAI/d1-3B 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 "LiquidAI/d1-3B" \ --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": "LiquidAI/d1-3B", "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 "LiquidAI/d1-3B" \ --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": "LiquidAI/d1-3B", "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 LiquidAI/d1-3B with Docker Model Runner:
docker model run hf.co/LiquidAI/d1-3B
Update README.md
Browse files
README.md
CHANGED
|
@@ -59,11 +59,13 @@ model's distribution over the options, with no generation and no parsing.
|
|
| 59 |
(LFM2.5-VL-3B: 73.9).
|
| 60 |
- **Fast**: 8 ms a decision on an NVIDIA RTX 4090, 9 ms on an AMD MI325X, 30 ms on an Apple M5 Pro.
|
| 61 |
|
| 62 |
-
|
|
|
|
|
|
|
| 63 |
|
| 64 |
> [!NOTE]
|
| 65 |
> 💻 **Demos**: Try d1-3B in a Hugging Face space without any setup:
|
| 66 |
-
> **
|
| 67 |
|
| 68 |
|
| 69 |
## 🗒️ Model Details
|
|
@@ -246,6 +248,16 @@ With the images removed, the same questions score 45.1, so the answers come from
|
|
| 246 |
|
| 247 |
## Citation
|
| 248 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 249 |
```bibtex
|
| 250 |
@article{liquidai2025lfm2,
|
| 251 |
title = {LFM2 Technical Report},
|
|
@@ -253,4 +265,4 @@ With the images removed, the same questions score 45.1, so the answers come from
|
|
| 253 |
journal = {arXiv preprint arXiv:2511.23404},
|
| 254 |
year = {2025}
|
| 255 |
}
|
| 256 |
-
```
|
|
|
|
| 59 |
(LFM2.5-VL-3B: 73.9).
|
| 60 |
- **Fast**: 8 ms a decision on an NVIDIA RTX 4090, 9 ms on an AMD MI325X, 30 ms on an Apple M5 Pro.
|
| 61 |
|
| 62 |
+
Find more information about open d1 in our [blog post](www.liquid.ai/blog/open-d1).
|
| 63 |
+
|
| 64 |
+

|
| 65 |
|
| 66 |
> [!NOTE]
|
| 67 |
> 💻 **Demos**: Try d1-3B in a Hugging Face space without any setup:
|
| 68 |
+
> [**Open d1 Arcade**](https://huggingface.co/spaces/LiquidAI/system-one-arcade): Collection of 10 demos using d1-3B
|
| 69 |
|
| 70 |
|
| 71 |
## 🗒️ Model Details
|
|
|
|
| 248 |
|
| 249 |
## Citation
|
| 250 |
|
| 251 |
+
```bibtex
|
| 252 |
+
@article{liquidAI2026opend1,
|
| 253 |
+
author = {Liquid AI},
|
| 254 |
+
title = {Open d1: Edge decision models for text, vision, and audio},
|
| 255 |
+
journal = {Liquid AI Blog},
|
| 256 |
+
year = {2026},
|
| 257 |
+
note = {www.liquid.ai/blog/open-d1},
|
| 258 |
+
}
|
| 259 |
+
```
|
| 260 |
+
|
| 261 |
```bibtex
|
| 262 |
@article{liquidai2025lfm2,
|
| 263 |
title = {LFM2 Technical Report},
|
|
|
|
| 265 |
journal = {arXiv preprint arXiv:2511.23404},
|
| 266 |
year = {2025}
|
| 267 |
}
|
| 268 |
+
```
|