Match NVFP4 block scale swizzle
This commit is contained in:
parent
57b84b8d6b
commit
b3a2544936
1 changed files with 2 additions and 1 deletions
|
|
@ -120,7 +120,8 @@ __global__ void quantize_nvfp4_bf16_kernel(
|
||||||
block_scale_value = decode_fp8_e4m3(scale_byte);
|
block_scale_value = decode_fp8_e4m3(scale_byte);
|
||||||
}
|
}
|
||||||
if (row < scale_rows) {
|
if (row < scale_rows) {
|
||||||
block_scale[row * scale_cols + block_col] = scale_byte;
|
const int64_t tile_row = (row / 128) * 128 + (row % 32) * 4 + ((row % 128) / 32);
|
||||||
|
block_scale[tile_row * scale_cols + block_col] = scale_byte;
|
||||||
}
|
}
|
||||||
if (row < q_rows && block_col * 8 < q_cols) {
|
if (row < q_rows && block_col * 8 < q_cols) {
|
||||||
#pragma unroll
|
#pragma unroll
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue