Spaces:
Sleeping

jefffffff9 Claude Sonnet 4.6 commited on
Commit
39604b3
·
1 Parent(s): 427d4a2

Fix Cell 6: replace get_last_checkpoint import with inline scanner

Browse files

transformers.trainer_utils.get_last_checkpoint triggers a deep import
chain (peft → generation → masking_utils → torch._dynamo) that breaks
on Kaggle Python 3.12 before packages are settled. The replacement
does the same thing (scan for checkpoint-N dirs, return the highest)
with zero extra imports.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

1 file changed +11 -31
notebooks/kaggle_master_trainer.ipynb+11-31