-
Notifications
You must be signed in to change notification settings - Fork 152
Update sparseml to support torch 2.0 #1618
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @dsikka - one last thing to look for is exporting quantized models with convert_qat=True
and verifying that the weights are properly compressed (ie load a quantized resnet pytorch model from the sparsezoo, export it to onnx and verify that the file size is the expected quantized one)
Oh, wow, this seems to be much less effort than expected no? |
Size of the exported model is 23 mb using torch 2.0, identical to an onnx exported
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after outdated comment removal!
torch
to be 2.0, updatedtorchvision
max to be0.15.1
torchaudio
to be2.0.1
pytorch
testssparseml.image_classification.train
. Used theImageNette
dataset andResNet-50
model from SparseZoosparseml.image_classification.export_onnx