vllm.models.minimax_m3.amd.dspark_akr_fused
¶
The rest of the amd_kernels draft route's DSpark forward at TP4 on the library
block amd_kernels.decoder.dense_mxfp8_h6144_i3072_ranks4: the input fc split by N
(eager), the layer stack around the draft attention and the context K/V chain.
Classes:
-
DraftFused–The library block of the draft's layers, built collectively on the 4 TP ranks
Functions:
-
setup–The fused forward of a loaded draft (every TP rank, before graph capture), or
DraftFused
¶
The library block of the draft's layers, built collectively on the 4 TP ranks once the draft shares the target's embedding.
Methods:
-
capture–Around the draft's graph capture (registers the tails' peer inputs).
-
fc_into–The speculator's
akr_fc_intohook: out[:num_tokens] = -
forward–DFlashQwen3Model.forward (embedding, the layers, the final norm).
-
store_context_kv–precompute_and_store_context_kvon the library's norm + GEMM + insert
Source code in vllm/models/minimax_m3/amd/dspark_akr_fused.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | |
capture()
¶
fc_into(taps, num_tokens, out)
¶
The speculator's akr_fc_into hook: out[:num_tokens] =
fc(cat(taps)[:num_tokens]), the 5 taps read in place (eager, every rank).
Source code in vllm/models/minimax_m3/amd/dspark_akr_fused.py
forward(inner, input_ids, positions)
¶
DFlashQwen3Model.forward (embedding, the layers, the final norm).
Source code in vllm/models/minimax_m3/amd/dspark_akr_fused.py
store_context_kv(inner, states, positions, slot_mapping)
¶
precompute_and_store_context_kv on the library's norm + GEMM + insert
chain; False where the stock path runs.
Source code in vllm/models/minimax_m3/amd/dspark_akr_fused.py
setup(model, max_query_rows)
¶
The fused forward of a loaded draft (every TP rank, before graph capture), or None where it stays off.