vllm.models.deepseek_v41.amd.mono.attention.plan
¶
Geometry of the DeepSeek-V4.1 attention mega kernel: model widths, a TP rank's share of them, task counts and the scratch (mailbox) layout.
Classes:
-
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
Dims
dataclass
¶
Attributes:
Source code in vllm/models/deepseek_v41/amd/mono/attention/plan.py
group_k
property
¶
wo_a's K a group: its eight heads' outputs.
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_v41/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.