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

Model pruning #54

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

antmikinka
Copy link

Specifically the convert.py file

Made for Optimization: cache past key-values, [https://github.com/huggingface/swift-transformers/issues/9]
Prunes model utilizing this. believe it does work, but I haven't gotten a complete model yet because of memory error.
This is also where you may add in palletization. Also including this into the main.py file utilizing user customization for the sparsity and pruning.

need to re-edit this and check the latest notes
adds pruning from coremltools into exporter. needs to be implemented into main.py for adding it in parser args. also custom set target sparsity. I imagine would be able to also add palletization here as well.
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.

None yet

1 participant