d3-lite ONNX (int8)

vllm-sr/d3-lite (revision 6c01fba14e74f63b70e1ef442b0b6d1b934339d5) as an ONNX model for ONNX Runtime, including onnxruntime-web on WebGPU or WebAssembly. Text only.

About d3-lite

  • d3-lite is a small decision model (0.85B parameters, built on Qwen3.5-0.8B) behind the System One API: given a state (any text) and typed questions (yes/no, multiple choice, a score on a scale), it returns the probability of each answer in one forward pass, with no generated text.
  • Typical uses: routing and classification, moderation, checks on documents or agent states, any decision that needs calibrated probabilities instead of a free-text reply. Thresholds on those probabilities set how strict each decision is.

Files

  • model.onnx, model.onnx.data: the Qwen3.5 backbone, linear weights quantized to 8 bits (MatMulNBits). Output hidden_states [1, L, 1024], after the final norm.
  • readout.bin: the answer-code readout, float32 little endian, [255, 1024].
  • decision_config.json: the original prompt contract, with the 255 answer codes in readout order.
  • tokenizer.json, tokenizer_config.json: the original tokenizer.
  • LICENSE, NOTICE: the original model's license and notice.

Use

  1. Render one prompt per question as d3-lite does (d3_format.py in the original repository: Qwen3.5 chat template, thinking disabled, options under the codes of decision_config.json) and tokenize it.
  2. Run the model with batch 1: input_ids [1, L], position_ids [3, 1, L] (0..L-1 on each of the three rows) and the remaining state inputs empty (length 0 on past_sequence_length, zeros elsewhere).
  3. Take hidden_states[0, L-1], multiply by the readout transposed and keep the first n logits, n the number of options of the question (a yes/no question has 2: false, true). The softmax gives the option probabilities.

How it was made

  • Built with the onnxruntime-genai 0.20.0 model builder (-p int8 -e cpu, exclude_lm_head=true) on the original weights.
  • The six full-attention layers use MultiHeadAttention without the causal mask: every position reads the whole prompt, as the original runtime does (attention_mode: noncausal_full_attention). The Gated DeltaNet layers keep their causal scan.

Parity

Against the original runtime (BF16 on CPU), two yes/no questions per page:

Set Decisions Largest probability difference Different decisions
41 web pages 82 0.043 0
2 more web pages, from their static HTML and after rendering 8 0.014 0

The unquantized export matches the PyTorch backbone with cosine similarity 0.99999 on the last hidden state.

License

Apache-2.0, as the original (see LICENSE and NOTICE). d3-lite is built on Qwen/Qwen3.5-0.8B (Apache-2.0).

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for davidemodolo-oc/d3-lite-onnx

Finetuned
vllm-sr/d3-lite
Quantized
(14)
this model