vllm.model_executor.models.d3
¶
Decision 3.0 (vllm-sr/d3): a Qwen3.5 backbone with an answer-code readout.
The checkpoint is a bare Qwen3_5Model plus readout.safetensors, one row per
answer code, and decision_config.json. The readout scores the codes at the
last prompt token and is served as the score head of a classification model.
D3ForSequenceClassificationConfig applies the checkpoint's attention mode and
label space.
Under the prefix_bidir attention mode a prompt is a state block (the system
turn, the media, State: and the state) followed by a question block. The full
attention layers read each block in both directions and the question block also
reads the state block, so the state never sees a question; the linear-attention
layers stay causal. Each request carries its state block's token count in
PoolingParams.extra_kwargs[STATE_TOKENS], and D3PrefixBidirModelState makes
the two blocks the PrefixLM ranges of its attention.
Classes:
-
D3PrefixBidirModelState–Model Runner V2 state of a
prefix_bidircheckpoint: a request's state
D3PrefixBidirModelState
¶
Bases: DefaultModelState
Model Runner V2 state of a prefix_bidir checkpoint: a request's state
block and question block are the PrefixLM ranges of its attention, so the
attention is causal across them and bidirectional within each.