Skip to content

[FEATURE] Implement save/load model after recovering #603

@sdiazlor

Description

@sdiazlor

‼️ If you want to work on this issue: please comment below and wait until a maintainer assigns this issue to you before opening a PR to avoid several contributions on the same issue. Thanks! 😊


What You’ll Do

During our latest release, we have included the recovery algorithms as a new algorithm family. Extend save and load to also allow saving and loading after recovery without additional steps.

# Save the model
smashed_model.save_pretrained("saved_recovered_model")

#Load the model
loaded_model = PrunaModel.from_pretrained("saved_recovered_model/")

🤖 Useful Resources


Acceptance Criteria

  • It follows the style guidelines.
  • Tests demonstrate that the recovered model is correctly saved and updated.
  • The metric integrates properly into Pruna’s evaluation framework.

And don’t forget to give us a ⭐️!


❓ Questions?

Feel free to jump into the #contributing Discord channel if you hit any roadblocks. Can’t wait to see your contribution! 🚀


Share on Socials

Share on X

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfirst-pruneCelebrate the 1st pruna OSS anniversarygood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions