flashinfer.comm.CakeFp4AllReduceFusedNormResult¶
- class flashinfer.comm.CakeFp4AllReduceFusedNormResult(output: CakeFp4AllReduceFusedNormOutput, residual_out: Tensor, out: Tensor | None = None, values: Tensor | None = None, scales: Tensor | None = None)¶
Outputs of one fused call.
residual_outisbf16(sum + residual)([rows, 6144]). With the bfloat16 outputoutholdsy; with the NVFP4 outputvaluesholds the packed E2M1 pairs (uint8[rows, 3072], element2iin the low nibble) andscalesthe 128x4-swizzled E4M3 block scales (uint8,ceil(rows / 128) * 128 * 384bytes); with the MXFP8 outputvaluesholds E4M3 bytes ([rows, 6144],torch.float8_e4m3fn) andscalesthe swizzled UE8M0 scales (uint8,ceil(rows / 128) * 128 * 192bytes) – the layoutsfp4_quantize/mxfp8_quantizeproduce fory. Scale bytes of padding rows are left untouched (zero when allocated here).- __init__(output: CakeFp4AllReduceFusedNormOutput, residual_out: Tensor, out: Tensor | None = None, values: Tensor | None = None, scales: Tensor | None = None) None¶
Methods
__init__(output, residual_out[, out, ...])Attributes
outscalesvaluesoutputresidual_out