vllm.models.deepseek_v4.amd.mono.attention.plan
¶
Geometry of the attention stages (front, back): the KV record, the
split attention's chunks and the scratch (mailbox) layout; the model's widths
and a TP rank's share of them are in ..dims.
Functions:
-
back_scratch–K2's scratch regions, laid out past
start: published data (plain) -
front_end–Where K2's regions start: past K1's, which share the launch tag.
-
front_scratch–K1's scratch regions -> (byte offset, bytes): published data (plain
back_scratch(s, d, start=0)
¶
K2's scratch regions, laid out past start: published data (plain)
and flag pairs.
Source code in vllm/models/deepseek_v4/amd/mono/attention/plan.py
front_end(s, d)
¶
Where K2's regions start: past K1's, which share the launch tag.
front_scratch(s, d)
¶
K1's scratch regions -> (byte offset, bytes): published data (plain words behind a flag) and mailbox pairs.