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 StatsGary/Qwen-D1:Q8_0
# Run inference directly in the terminal:
llama cli -hf StatsGary/Qwen-D1:Q8_0
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf StatsGary/Qwen-D1:Q8_0
# Run inference directly in the terminal:
llama cli -hf StatsGary/Qwen-D1:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf StatsGary/Qwen-D1:Q8_0
# Run inference directly in the terminal:
./build/bin/llama cli -hf StatsGary/Qwen-D1:Q8_0
Use Docker
docker model run hf.co/StatsGary/Qwen-D1:Q8_0
Quick Links

Qwen-D1

A decision model fine-tuned from unsloth/Qwen3.5-4B with Unsloth's FastDecisionModel on LocalLLaMA/typed-decisions. It reads an input (state) and typed questions (choice, noul yes/no, score) and returns calibrated probabilities for every option. It does not generate text: on Ollama and llama.cpp it answers on /v1/systemone, not on chat or generate.

Formats

Each format is in its own folder, so you only download the one you need.

Folder Format Size Use with
unsloth/ Unsloth: LoRA adapters + decision head + calibration 0.2 GB FastDecisionModel (also downloads unsloth/Qwen3.5-4B)
safetensors/ Safetensors: merged 16-bit + decision head 8.8 GB Unsloth Decision API, FastDecisionModel
gguf/ GGUF (Q8_0, Q4_K_M) + Ollama Modelfile 7.1 GB Ollama 0.35+, llama.cpp b11443+

Benchmarks

No GPU benchmarks yet. Run the Benchmark section of the notebook to add one.

Unsloth (unsloth/)

from unsloth import FastDecisionModel

model, tokenizer = FastDecisionModel.from_pretrained(
    "StatsGary/Qwen-D1", subfolder = "unsloth", max_seq_length = 2048, load_in_4bit = True,
)
FastDecisionModel.for_inference(model)
questions = {
    "team": {"type": "choice", "instructions": "Which team should handle this?",
             "criteria": {"billing": "invoices, payments, refunds", "technical": "bugs, outages, errors"}},
    "refund": {"type": "noul", "instructions": "Does the customer ask for a refund?"},
    "urgency": {"type": "score", "instructions": "How urgent is this?",
                "criteria": ["not urgent", "soon", "today"]},
}
answers = FastDecisionModel.predict(model, tokenizer, "Hi, I was charged twice for invoice #4411. Please refund the duplicate today.", questions)
for name, result in answers.items():
    print(name, result["answer"], result["probabilities"])

subfolder makes Unsloth download only this folder. You can keep fine-tuning from it too.

Safetensors (safetensors/)

Serve it with the Unsloth Decision API (GPU):

hf download StatsGary/Qwen-D1 --include "safetensors/*" --local-dir qwen-d1
UNSLOTH_SYSTEMONE_MODEL=$PWD/qwen-d1/safetensors unsloth studio -H 0.0.0.0 -p 8888
curl http://localhost:8888/v1/systemone -H "Content-Type: application/json" -d '{
    "model": "default",
    "state": "Hi, I was charged twice for invoice #4411. Please refund the duplicate today.",
    "questions": {
      "team": {"type": "choice", "instructions": "Which team should handle this?",
               "criteria": {"billing": "invoices, payments, refunds", "technical": "bugs, outages, errors"}},
      "refund": {"type": "noul", "instructions": "Does the customer ask for a refund?"},
      "urgency": {"type": "score", "instructions": "How urgent is this?", "criteria": ["not urgent", "soon", "today"]}
    }
  }'

Or in Python: FastDecisionModel.from_pretrained("StatsGary/Qwen-D1", subfolder = "safetensors"). The decision head lives in joint_head.safetensors + joint_head_config.json; a plain AutoModelForCausalLM load ignores it.

Ollama (gguf/)

hf download StatsGary/Qwen-D1 --include "gguf/*" --local-dir qwen-d1
cd qwen-d1/gguf
ollama create qwen-d1 -f Modelfile
curl http://localhost:11434/v1/systemone -H "Content-Type: application/json" -d '{
    "model": "qwen-d1",
    "state": "Hi, I was charged twice for invoice #4411. Please refund the duplicate today.",
    "questions": {
      "team": {"type": "choice", "instructions": "Which team should handle this?",
               "criteria": {"billing": "invoices, payments, refunds", "technical": "bugs, outages, errors"}},
      "refund": {"type": "noul", "instructions": "Does the customer ask for a refund?"},
      "urgency": {"type": "score", "instructions": "How urgent is this?", "criteria": ["not urgent", "soon", "today"]}
    }
  }'

The Modelfile points at Q4_K_M. To use another quantization, edit its FROM line. To download a single file, use --include "gguf/model-Q8_0.gguf" "gguf/Modelfile". Q8_0 stays closest to the PyTorch model; k-quants such as Q4_K_M are smaller but can shift probabilities and flip close answers.

llama.cpp (gguf/)

llama-server -m qwen-d1/gguf/model-Q8_0.gguf --port 8080
curl http://localhost:8080/v1/systemone -H "Content-Type: application/json" -d '{
    "model": "qwen-d1",
    "state": "Hi, I was charged twice for invoice #4411. Please refund the duplicate today.",
    "questions": {
      "team": {"type": "choice", "instructions": "Which team should handle this?",
               "criteria": {"billing": "invoices, payments, refunds", "technical": "bugs, outages, errors"}},
      "refund": {"type": "noul", "instructions": "Does the customer ask for a refund?"},
      "urgency": {"type": "score", "instructions": "How urgent is this?", "criteria": ["not urgent", "soon", "today"]}
    }
  }'
Downloads last month
230
GGUF
Model size
4B params
Architecture
clef
Hardware compatibility
Log In to add your hardware

4-bit

8-bit

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

Model tree for StatsGary/Qwen-D1

Finetuned
Qwen/Qwen3.5-4B
Adapter
(262)
this model

Dataset used to train StatsGary/Qwen-D1