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

Make Nf4 a NF4 Tensor subclass #18

Merged
merged 4 commits into from
Feb 14, 2024
Merged

Make Nf4 a NF4 Tensor subclass #18

merged 4 commits into from
Feb 14, 2024

Conversation

drisspg
Copy link
Owner

@drisspg drisspg commented Feb 11, 2024

Summary

See title, fixes some failing torch compile tests with autograd

being cheeky though still:

https://github.com/drisspg/transformer_nuggets/pull/18/files#diff-6954806b06a395823616c5a0fefc77b5cf274b3f88a5381c38856cbf74d6f2bfR391-R392

Autograd function provides explicit control over whats happening and I do find that we need to create these "one op" subclasses for alot of quantization techniques to get PT2 to comply

@drisspg drisspg merged commit 7fae31b into main Feb 14, 2024
2 checks passed
@drisspg drisspg deleted the make_nf4tensor_subclass branch February 14, 2024 00:50
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.

1 participant