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_grouped_quantize_nvfp4_row_scaled
struct Struct_grouped_quantize_nvfp4_row_scaled
Registers the quantization.grouped.quantize.nvfp4.row_scaled graph op with the graph compiler.
Quantizes grouped BF16 rows to NVFP4 with a global scale per row, taken
from the row's amax inside the kernel, and returns the scales for the
grouped matmul's a_row_scales. The result is bit-identical to the
chain of a row amax, two BF16 roundings and
quantization.grouped.quantize.dynamic.block.scaled with a tensor-wise scale of 1.
apply_relu2 quantizes relu(x) * relu(x) in place of x, with
relu from nn.activations.
Implemented traitsโ
Methodsโ
executeโ
static def execute[apply_relu2: Int](output: T, scales: T, row_scales: T, input: T, row_offsets: T, scales_offsets: T, context: DeviceContext)