Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add model merger to save checkpoints in the format of .safetensor and push them to the huggingface #262

Merged
merged 3 commits into from
Feb 15, 2025

Conversation

YSLIU627
Copy link
Contributor

This PR introduces a new script, scripts/model_merger.py, which enables the conversion of model checkpoints saved in .pt format to the .safetensors format. The script also includes functionality to optionally push the converted model to Hugging Face Hub.

Changes:

  1. Added scripts/model_merger.py to handle the conversion process.
  2. Implemented support for .pt to .safetensors transformation.
  3. Added an option to push the converted model to Hugging Face Hub if required.

@PeterSH6
Copy link
Collaborator

We may need to place this script in another directory.
I'll merge it first and rearrange it

@vermouth1992
Copy link
Collaborator

Could you add license head by copying from another file?

@YSLIU627
Copy link
Contributor Author

Have added the license

@vermouth1992 vermouth1992 merged commit 1703c34 into volcengine:main Feb 15, 2025
12 checks passed
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.

3 participants