mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-24 17:04:55 +00:00
checkpointing fixes
This commit is contained in:
parent
b9414e4076
commit
04652fd97c
1 changed files with 2 additions and 0 deletions
|
|
@ -48,6 +48,8 @@ def load_model_and_tokenizer(
|
|||
|
||||
if model is not None:
|
||||
print("[Setup] ✓ Single-copy mode active - using vLLM's tensors directly!")
|
||||
# Enable gradient checkpointing to save memory (was missing before!)
|
||||
_setup_gradient_checkpointing(model, config)
|
||||
model.train()
|
||||
return model, tokenizer
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue