-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Support safetensors export #6579
Conversation
I think DeepSpeed is designed to work in the environment where HF is not installed.
|
@tohtana Following your suggestions, I made some optimization for |
Thank you @xu-song! The formatting test fails, can you check it? |
formatting has been fixed |
Feature
This commit implements the following features:
Most of the codes are borrowed from https://github.com/huggingface/transformers/blob/v4.45.1/src/transformers/modeling_utils.py#L2490
Usage
For
pytorch_model.bin
exportFor
model.safetensors
export