Skip to content

Comments

Make olmo-core checkpointer more robust on weka#624

Merged
epwalsh merged 4 commits intomainfrom
epwalsh/checkpoint-fix
Jun 17, 2024
Merged

Make olmo-core checkpointer more robust on weka#624
epwalsh merged 4 commits intomainfrom
epwalsh/checkpoint-fix

Conversation

@epwalsh
Copy link
Member

@epwalsh epwalsh commented Jun 14, 2024

No description provided.

@epwalsh epwalsh requested a review from 2015aroras June 14, 2024 21:03
local_files_created = save_model_and_optim_state(
checkpoint_dir, fsdp_model, optim, save_overwrite=self.cfg.save_overwrite
)
local_files_created = save_model_and_optim_state(checkpoint_dir, fsdp_model, optim)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove save_overwrite?

Copy link
Member Author

@epwalsh epwalsh Jun 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We handle save_overwrite in this checkpointer class already. At this point in the code we're passing a temporary directory that we've guaranteed exists and is empty, so if we pass save_overwrite=True, then olmo-core will delete and recreate that directory, which can cause issues on weka/nfs.

@epwalsh epwalsh merged commit 2417b11 into main Jun 17, 2024
@epwalsh epwalsh deleted the epwalsh/checkpoint-fix branch June 17, 2024 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants