vllm.models.muse_spark.nvidia.specialized_decode.cutedsl.boundary.layer_front
¶
The first decoder layer's input as one CuTe kernel: the embedded tokens into the FP32 stream (and the aux state) and the layer's pre_qkv_proj_norm of the stream into the attention input.
Uses the row norm of common/row_norm.py, bit for bit with the stock norm.
With PDL the kernel releases its dependents right after its wait; the QKV front
waits for this grid before it reads the attention input.
Classes:
-
LayerFront–The first layer's front: what the stock forward does with the embedded
LayerFront
¶
The first layer's front: what the stock forward does with the embedded
tokens x before the QKV front, bitwise.
run(x, stream, out, aux) writes stream = x.float(), aux =
stream (an aux layer) and out = norm(stream) in BF16, where norm
is the layer's pre_qkv_proj_norm on its fused-kernel path. x is BF16
(the Omni class's eager embedding) or FP32 (the text class's in-graph
embedding). Both input dtypes' kernels compile at construction (before
CUDA graph capture); then it is graph-capturable and allocates nothing.
Methods:
-
warm_up–Run both input dtypes' kernels once at
rowsrows (before CUDA
Source code in vllm/models/muse_spark/nvidia/specialized_decode/cutedsl/boundary/layer_front.py
warm_up(device, rows)
¶
Run both input dtypes' kernels once at rows rows (before CUDA
graph capture).