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 function
quantize_and_bmm_fp8_helper
def quantize_and_bmm_fp8_helper[dtype: DType, fp8_dtype: DType, fp8_scale_dtype: DType, m_scale_granularity: Int, n_scale_granularity: Int, k_scale_granularity: Int, target: StringSlice[StaticConstantOrigin] = StringSlice("cpu")](c: TileTensor[dtype, linear_idx_type=c.linear_idx_type, element_size=c.element_size], a: TileTensor[dtype, linear_idx_type=a.linear_idx_type, element_size=a.element_size], b: TileTensor[fp8_dtype, linear_idx_type=b.linear_idx_type, element_size=b.element_size], b_scales: TileTensor[fp8_scale_dtype, linear_idx_type=b_scales.linear_idx_type, element_size=b_scales.element_size], ctx: DeviceContext)
Helper function to quantize and perform a batched matrix multiplication. This function uses the transposed view of the input tensor a.