For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
Struct_ep_fused_silu_mxfp8
struct Struct_ep_fused_silu_mxfp8
Registers the ep.fused_silu.mxfp8 graph op with the graph compiler.
Implemented traitsโ
Methodsโ
executeโ
static def execute[fp8_dtype: DType, scales_dtype: DType, input_dtype: DType, target: StringSpan[ImmStaticOrigin], *, max_padded_M: Int, activation: StringSpan[ImmStaticOrigin] = StringSpan("silu"), swiglu_alpha: Float32 = 0, swiglu_limit: Float32 = 0](output: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=output.static_spec], scales: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=scales.static_spec], input: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=input.static_spec], row_offsets: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=row_offsets.static_spec], context: DeviceContextBase)
Execute the EP fused SILU kernel with MXFP8 quantization.
Same body as ep.fused_silu.mxfp4: fused_silu_mx_kernel takes its
element packing from the output dtype, so one fp8_e4m3fn byte per
element here rather than two FP4 nibbles, leaving output at the full
hidden size along axis 1. scales is shaped
[n_local_experts * max_padded_M, K_SCALES].