How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf LiquidAI/d1-3B-GGUF:
# Run inference directly in the terminal:
llama cli -hf LiquidAI/d1-3B-GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf LiquidAI/d1-3B-GGUF:
# Run inference directly in the terminal:
llama cli -hf LiquidAI/d1-3B-GGUF:
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf LiquidAI/d1-3B-GGUF:
# Run inference directly in the terminal:
./llama-cli -hf LiquidAI/d1-3B-GGUF:
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf LiquidAI/d1-3B-GGUF:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf LiquidAI/d1-3B-GGUF:
Use Docker
docker model run hf.co/LiquidAI/d1-3B-GGUF:
Quick Links
Liquid AI
Try LFM โ€ข Docs โ€ข Discord

d1-3B-GGUF

d1-3B is a decision model developed by Liquid AI: it answers named, typed questions over a state (text, JSON or images) in one forward pass, with no generated tokens.

Find more details in the original model card: https://huggingface.co/LiquidAI/d1-3B

๐Ÿƒ How to run d1-3B

Example usage with llama.cpp:

llama-server -hf LiquidAI/d1-3B-GGUF:Q8_0

Then send questions to the /v1/systemone endpoint.

Text

curl http://127.0.0.1:8080/v1/systemone -H "Content-Type: application/json" -d '{
  "state": "I was charged twice this month, please refund one of them.",
  "questions": {
    "refund":  {"type": "noul", "instructions": "Is the customer asking for a refund?"},
    "team":    {"type": "choice", "instructions": "Which team should handle this?",
                "criteria": {"billing": "Charges, refunds, invoices", "technical": "App or site faults",
                             "fraud": "Suspected unauthorised use"}},
    "urgency": {"type": "score", "instructions": "How urgent is this?",
                "criteria": ["Can wait", "Today", "Blocking the customer now"]}
  }
}'

Image + Text

curl -sL -o cats.jpg http://images.cocodataset.org/val2017/000000039769.jpg  # two cats on a sofa

curl http://127.0.0.1:8080/v1/systemone -H "Content-Type: application/json" -d @- <<JSON
{
  "state": "Photo attached to a pet-sitting request.",
  "images": ["data:image/jpeg;base64,$(base64 < cats.jpg | tr -d '\n')"],
  "questions": {
    "pet":  {"type": "choice", "instructions": "Which animals are in the photo?",
             "criteria": {"cats": "Cats", "dogs": "Dogs", "birds": "Birds"}},
    "sofa": {"type": "noul", "instructions": "Are the animals on a sofa?"}
  }
}
JSON

The state can be null when the images are the whole state.

Downloads last month
37,390
GGUF
Model size
3B params
Architecture
lfm2
Hardware compatibility
Log In to add your hardware

4-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for LiquidAI/d1-3B-GGUF

Finetuned
LiquidAI/d1-3B
Quantized
(22)
this model
Finetunes
1 model

Space using LiquidAI/d1-3B-GGUF 1