Skip to content

Conversation

@willmj
Copy link
Collaborator

@willmj willmj commented Mar 18, 2025

Description of the change

Building on PR #486, saving hf_converted_checkpoint to save_model_dir if it exists.

Was the PR tested

  • I have added >=1 unit test(s) for every new method I have added.
  • I have ensured all unit tests pass

willmj added 7 commits March 17, 2025 10:54
Signed-off-by: Will Johnson <[email protected]>
Signed-off-by: Will Johnson <[email protected]>
Signed-off-by: Will Johnson <[email protected]>
Signed-off-by: Will Johnson <[email protected]>
@github-actions
Copy link

Thanks for making a pull request! 😃
One of the maintainers will review and advise on the next steps.

@github-actions github-actions bot added the fix label Mar 18, 2025
checkpoint(checkpoint_dir, self.save_model_dir)

callbacks.append(
ConvertAndSaveHFCheckpointAtEverySave(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we pass save_model_dir here and pick it up in __init__ ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed, good catch!

Copy link
Collaborator

@kmehant kmehant left a comment

Choose a reason for hiding this comment

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

@willmj apart from one comment I have, rest all looks good to me. Can you also confirm if you are able to pass both the unit tests for this feature on your end? Since I dont think these would run in our GitHub Action runners.

@willmj willmj merged commit a2e1b92 into foundation-model-stack:main Mar 20, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants