chore: fix some typos (#18577)

Co-authored-by: Liangsheng Yin <lsyincs@gmail.com>
This commit is contained in:
cutetocute
2026-02-10 20:47:41 -08:00
committed by GitHub
co-authored by Liangsheng Yin
parent a2c38f7796
commit 8d2892330c
7 changed files with 12 additions and 12 deletions
@@ -128,10 +128,10 @@ def b_dynamic_mxfp4_quant(x):
return x.view(h, b, d // 2), x_scales.view(h, b, d // 32)
def mxfp4_to_f32(x, is_threed):
def mxfp4_to_f32(x, is_3d):
# 2 because we pack fp4 in uint8.
x = x.repeat_interleave(2, dim=-1)
if is_threed:
if is_3d:
x[..., ::2] = x[..., ::2] & 0xF
x[..., 1::2] = x[..., 1::2] >> 4
else: