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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Fix typos in comment (#3557)
mk0walskd8ae1e266e50
diff --git a/unsloth/kernels/fp8.py b/unsloth/kernels/fp8.pyindex 0e893a360f6..23a4506691c 100644--- a/unsloth/kernels/fp8.py+++ b/unsloth/kernels/fp8.py@@ -323,8 +323,8 @@ class FP8BlockQuantLinear(torch.autograd.Function):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:if triton.cdiv(m, block_size[0]) == q and triton.cdiv(n, block_size[1]) == p:- # weights are tranposed during backward pass for training :)- # We tranpose weight scale to counter that. Note that transposing weight would cause issues with matmul with input X+ # weights are transposed during backward pass for training :)+ # We transpose weight scale to counter that. Note that transposing weight would cause issues with matmul with input Xweight_scale = weight_scale.Telse:raise ValueError(f"Weight shape {weight.shape} and scales shape {weight_scale.shape} is not compatible with block size {block_size}")@@ -437,8 +437,8 @@ class FP8_torch_linear(torch.autograd.Function):if triton.cdiv(m, bs_n) != p or triton.cdiv(n, bs_k) != q:if triton.cdiv(m, bs_n) == q and triton.cdiv(n, bs_k) == p:- # weights are tranposed during backward pass for training :)- # We tranpose weight scale to counter that. Note that transposing weight would cause issues with matmul with input X+ # weights are transposed during backward pass for training :)+ # We transpose weight scale to counter that. Note that transposing weight would cause issues with matmul with input Xweight_scale = weight_scale.Telse:raise ValueError(f"Weight shape {weight.shape} and scales shape {weight_scale.shape} is not compatible with block size {block_size}")diff --git a/unsloth/models/__init__.py b/unsloth/models/__init__.pyindex 89d3fd76309..25e898a1a3c 100644--- a/unsloth/models/__init__.py+++ b/unsloth/models/__init__.py@@ -22,7 +22,7 @@ from .granite import FastGraniteModeltry:from .falcon_h1 import FastFalconH1Modelexcept:- # transformers_version < 4.53.0 does not have falcon_h1 so silenty skip it for now+ # transformers_version < 4.53.0 does not have falcon_h1 so silently skip it for nowpassfrom .dpo import PatchDPOTrainer, PatchKTOTrainerfrom ._utils import is_bfloat16_supported, is_vLLM_available, __version__