unsloth/studio/backend/core
Daniel Han 3b16e317b8 studio: fix 'Standard' gradient checkpointing leaving the smart offloader active
The training UI's 'Standard' option sends the string "true". The worker
converted "false"/"none"/"" to False but passed "true" through as a string.
unsloth's _configure_gradient_checkpointing only unpatches the smart
offloader on the (True, False) boolean branch; the string "true" matches
neither that nor "unsloth", so it returns without unpatching and the
offloader stays active. On memory-constrained / unified-memory GPUs that
offload then OOM-crashes even though the user asked for standard
checkpointing (reported on gfx1201 R9700, applies to Strix Halo too).

Normalize "true"/"1"/"yes" -> True so unsloth gets a real bool and
unpatches, matching the existing normalization in trainer.py. "unsloth"
and "mlx" stay strings; booleans pass through unchanged.
2026-07-21 03:52:21 -07:00
..
data_recipe Replace standalone Studio wording with Unsloth (#7221) 2026-07-19 00:47:04 -07:00
export Studio: quiet noisy logs, log real progress, and speed up Windows/macOS dataset prep (#7087) 2026-07-15 06:49:52 -07:00
inference Fix local CLI streamed generation error handling (#7135) 2026-07-20 23:14:58 -03:00
rag Studio: Data settings tab, uploaded files manager, quant pinning, and chat image preview fix (#7029) 2026-07-20 04:57:44 -07:00
training studio: fix 'Standard' gradient checkpointing leaving the smart offloader active 2026-07-21 03:52:21 -07:00
__init__.py Reduce and tighten code comments and docstrings repo-wide (#6095) 2026-06-08 23:09:51 -07:00
_torchao_stub.py Reduce and tighten code comments and docstrings repo-wide (#6095) 2026-06-08 23:09:51 -07:00
import_guards.py Studio: self-heal unsloth namespace shadows; clearer failed-load messages (#6532) 2026-06-21 22:43:31 -07:00
tool_healing.py Studio: Inkling support fixes (#7153) 2026-07-15 11:22:38 -07:00