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.

Studio: honor the 'none' gradient checkpointing option in training (#7128)

oobabooga553134730705
diff --git a/studio/backend/core/training/trainer.py b/studio/backend/core/training/trainer.py
index 96d1b90b16e..932bcaf0d52 100644
--- a/studio/backend/core/training/trainer.py
+++ b/studio/backend/core/training/trainer.py
@@ -931,7 +931,7 @@ class UnslothTrainer:
use_gradient_checkpointing = "unsloth"
elif use_gradient_checkpointing in ("true", "1", "yes"):
use_gradient_checkpointing = True
- elif use_gradient_checkpointing in ("false", "0", "no"):
+ elif use_gradient_checkpointing in ("false", "0", "no", "none", "off"):
use_gradient_checkpointing = False
else:
# Invalid value -> "unsloth"