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

fix(decoder): remove call to beta serialization api #393

Merged
merged 2 commits into from
Dec 22, 2023
Merged

Conversation

dacorvo
Copy link
Collaborator

@dacorvo dacorvo commented Dec 22, 2023

This is the continuation of pull-request #387, also removing the call to the experimental serialization API when saving the model.

@dacorvo dacorvo marked this pull request as ready for review December 22, 2023 08:25
@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.

Copy link
Collaborator

@JingyaHuang JingyaHuang left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @dacorvo, just left a small nit.

@@ -246,7 +246,7 @@ def _save_pretrained(self, save_directory: Union[str, Path]):

if src_compiled_path is None:
# The compiled model has never been serialized: do it now
self.model._save_compiled_artifacts(dst_compiled_path)
self.model.save(dst_compiled_path)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do all these stable APIs also exist in 2.15.2? Otherwise do we need to bump the transformers-neuronx's version in the setup?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No they are already there (introduced in 2.15.0). I had not seen them, but the doc had indeed been updated.

@dacorvo dacorvo merged commit 63aa3b7 into main Dec 22, 2023
7 checks passed
@dacorvo dacorvo deleted the avoid_beta_api branch December 22, 2023 12:02
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