Studio: honor the 'none' gradient checkpointing option in training (#7128)
This commit is contained in:
parent
91a0df9514
commit
5531347307
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue