-
Notifications
You must be signed in to change notification settings - Fork 17
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
Is SlimSAM compatible with SAM? #4
Comments
Hello @NielsRogge, |
Awesome, looking forward! |
Hello @NielsRogge,
Above models can be instantiated by running
|
Very cool, just converted and pushed the checkpoints: One can use them as explained in the Hugging Face docs. Would you be interested in transferring these checkpoints to your account/the University of Singapore organization on the Hugging Face hub? Cause currently they are part of my account (nielsr) Also we can add some nice model cards (READMEs) |
Sure, thanks for your help! |
Hi,
Can we plug in the SlimSAM weights into SAM (by recombining the q, k, v weights into a single matrix per layer)?
If yes, then SlimSAM could be ported easily to the 🤗 hub. Currently I'm getting errors like:
It seems that the dimensions are different per layer based on the pruning. Any way to load such a state dict in PyTorch?
The text was updated successfully, but these errors were encountered: