Image-Text-to-Text
Transformers
Safetensors
d1_omni
feature-extraction
liquid
lfm2.5
edge
decision
classification
calibration
system-one
multimodal
vision
audio
decision-model
custom_code
Instructions to use LiquidAI/d1-omni-600M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LiquidAI/d1-omni-600M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="LiquidAI/d1-omni-600M", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("LiquidAI/d1-omni-600M", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LiquidAI/d1-omni-600M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LiquidAI/d1-omni-600M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LiquidAI/d1-omni-600M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LiquidAI/d1-omni-600M
- SGLang
How to use LiquidAI/d1-omni-600M 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-omni-600M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LiquidAI/d1-omni-600M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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-omni-600M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LiquidAI/d1-omni-600M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LiquidAI/d1-omni-600M with Docker Model Runner:
docker model run hf.co/LiquidAI/d1-omni-600M
Audio choice labels as trained; yes/no keys in noul criteria
#1
by Aurelien-Lac - opened
Two fixes in prompt.py:
- Audio
choiceoptions are writtenoption_000: text,option_001: text, ... as the audio questions were trained and as the release's own loader writes them. With the option names instead, 7 of 91 top answers change on our reference clips. noulcriteria given as{"yes": ..., "no": ...}were silently ignored. They are now read liketrue/false.
Checked in FP32 against the reference outputs of the release's loader (LFM2.5-Encoder-350M-decide-F-s12500), text without temperatures since that loader applies none:
| ids match | max abs diff | top answer changed | |
|---|---|---|---|
| text, 12 questions, before | 11/12 | 3.2e-3 | 0 |
| text, after | 12/12 | 2.2e-6 | 0 |
| audio, 13 trained questions x 7 clips, before | 9/13 | 0.37 | 7/91 |
| audio, after | 13/13 | 4.5e-6 | 0/91 |
Images and the card's example are unchanged.
mlabonne changed pull request status to merged