Skip to content

Conversation

jon-tow
Copy link
Collaborator

@jon-tow jon-tow commented Jan 17, 2023

  • Makes the Trainer.save_pretrained /hf_model sub-directory optional. Previously, if a directory was supplied to save_pretrained the hf_model name path would be hard joined as {directory}/hf_model. Now users can directly write to the path defined by directory instead.
    • Maybe the HF checkpoint dir should be an extra config? (Not sure if it's worth it).
  • Corrects the repo README.md to properly document save_pretrained usage.

Copy link
Collaborator

@maxreciprocate maxreciprocate left a comment

Choose a reason for hiding this comment

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

LGTM!

@maxreciprocate maxreciprocate merged commit 7f4bafe into main Jan 17, 2023
@jon-tow jon-tow deleted the update-save-pretrained branch January 17, 2023 20:40
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