vllm.models.deepseek_v41.amd.akr_sample
¶
Route markov: DSpark's sequential Markov draft steps (Markov bias GEMV,
Gumbel sample, draft-logits cache write) for every request in one amd_kernels
launch, in place of about nine launches per step.
Its workgroups wait for each other, so it needs every CU: it is the last launch of the draft step and nothing runs beside it.
Functions:
-
markov_chain–All Markov steps for
base_logits[n, steps, V]; the drafts land in -
unsupported_reason–Why the kernel cannot serve this speculator and batch (host checks).
markov_chain(spec, model, base_logits, prev, idx_map, sample_pos, out_tokens, prev_indices)
¶
All Markov steps for base_logits [n, steps, V]; the drafts land in
out_tokens. Returns an empty tensor (no confidence head) when done, or
None, having done nothing, for the speculator's loop.
Source code in vllm/models/deepseek_v41/amd/akr_sample.py
unsupported_reason(spec, model, base_logits)
¶
Why the kernel cannot serve this speculator and batch (host checks).