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.

Update trainer.py

Daniel Hanc010cc64219b
diff --git a/unsloth/trainer.py b/unsloth/trainer.py
index dc4e8145785..f3e09e990bd 100644
--- a/unsloth/trainer.py
+++ b/unsloth/trainer.py
@@ -60,7 +60,7 @@ _AUTO_PADDING_FREE_ENV_DISABLED = os.environ.get(
# [TODO]
# Below cannot work with padding-free
-_PADDING_FREE_BLOCK_LIST = {
+PADDING_FREE_BLOCKLIST = {
"gemma2", # - gemma2: Uses slow_attention_softcapping which has torch.compile issues
"gpt_oss", # - gpt_oss: Uses Flex Attention which doesn't handle padding_free correctly
"mistral", # - mistral: Unfortunately I think sliding window attention doesn't work correctly?