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

Do not split decoder checkpoint files #567

Merged
merged 5 commits into from
Apr 15, 2024
Merged

Do not split decoder checkpoint files #567

merged 5 commits into from
Apr 15, 2024

Conversation

dacorvo
Copy link
Collaborator

@dacorvo dacorvo commented Apr 15, 2024

What does this PR do?

Neuron 2.18 introduced support for loading weights in SafeTensors format. Due to the nature of SafeTensors, it is no longer essential to split model weights to conserve memory. Weights can be loaded directly from .safetensors checkpoints and then loaded to Neuron cores directly.

Implements #565

Edit:

  • I modified a bit one of the tests to use a cached model and save compilation time,
  • I had to fix the docker build broken by a recent release of setuptools

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@dacorvo dacorvo merged commit 4429bb6 into main Apr 15, 2024
10 of 11 checks passed
@dacorvo dacorvo deleted the simplify_checkpointing branch April 15, 2024 10: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.

3 participants