From 5d0523c1caff477db614a13e38e1bfdb08d98d1c Mon Sep 17 00:00:00 2001 From: VED <146507396+ved1beta@users.noreply.github.com> Date: Mon, 1 Dec 2025 06:30:31 +0530 Subject: [PATCH] set defualt [128, 128] insted of none (#3658) Co-authored-by: Ved --- unsloth/kernels/fp8.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsloth/kernels/fp8.py b/unsloth/kernels/fp8.py index 435a6e83d2..3093bf61b1 100644 --- a/unsloth/kernels/fp8.py +++ b/unsloth/kernels/fp8.py @@ -346,7 +346,7 @@ class FP8BlockQuantLinear(torch.autograd.Function): m, n = weight.shape p, q = weight_scale.shape block_size = getattr(weight, "block_size", None) or getattr( - weight_scale, "block_size", None + weight_scale, "block_size", [128, 128] ) assert block_size is not None, "block_size is not set" if triton.cdiv(m, block_size[0]) != p or triton.cdiv(n, block_size[1]) != q: