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
Add decision-model tag
Browse filesHi Liquid AI team,
This PR adds the `decision-model` tag to the model card metadata, so d1-omni-600M shows up next to the other decision models on the Hub: https://huggingface.co/models?other=decision-model
<img src="https://cdn-uploads.huggingface.co/production/uploads/noauth/gKtmJfAU6e4uyiBQRFjU7.png" alt="decision-model tag" width="500">
The GGUF conversion [TechnoBaptist/d1-omni-600M-GGUF](https://huggingface.co/TechnoBaptist/d1-omni-600M-GGUF) already has this tag: the Hub adds it automatically from its llama.cpp metadata. This PR adds it to the original checkpoint too.
It's a one-line metadata change, nothing else in the card is touched.