vllm.model_executor.models.qwen3_xpress
¶
Classes:
XPressRefinerHead
¶
Bases: Module
Methods:
-
jacobi_refine_greedy–The refined draft ids [N, B-1] and, if return_logits, the last pass's
-
process_weights_after_loading–Transposed, contiguous weight copies the fused kernels index directly.
_scratch_buffers(dtype, device)
¶
Buffers for the fused Jacobi passes, allocated once at max_num_reqs.
Not allocated in the constructor: the dtype and device a head ends up serving on are not known until it is called. The first call is the memory profiling run, so the footprint is still accounted for before the KV cache is sized.
jacobi_refine_greedy(base_logits_full, h_full, anchor_ids, tok_am1_ids, num_passes, return_logits=False)
¶
The refined draft ids [N, B-1] and, if return_logits, the last pass's refined logits per draft slot [N * (B-1), C or V]: over the top-C candidates if topc is set, else over the vocabulary (a scratch buffer that the next call overwrites).
process_weights_after_loading()
¶
Transposed, contiguous weight copies the fused kernels index directly.
Built after loading, not in the constructor: mix_kjc is derived from mix_L, which only takes its serving form in fold_from_raw_(). Reloads refill them in place, so captured CUDA graphs keep their addresses.