Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

set defualt [128, 128] insted of none (#3658)

VEDf23f17e8ba22
diff --git a/unsloth/kernels/fp8.py b/unsloth/kernels/fp8.py
index 435a6e83d25..3093bf61b14 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: