Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[FSDP2][1/n] construct NF4Tensor from bf16/fp16/fp32 #118
[FSDP2][1/n] construct NF4Tensor from bf16/fp16/fp32 #118
Changes from all commits
0a13e6a
9a56eaa
8180540
95b03e1
3ac9d81
38461b3
bc7a764
8b1d037
7ff6855
d9bcf71
923bef2
e15d244
d4beb8f
f41cb3d
952fbdd
950d9fd
d4eae0b
9444f2c
b2c3c02
9be2de3
2981393
3ced998
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
test_smoketest_linear_compile
is always skipped before because we exit withself.skipTest
withtorch.bfloat16
and did not have a chance to testtorch.float16
. It is fixed in this version by using@parameterize
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.
starting from 2.3.0 we can trace subclass when inner tensors have different shapes than outer wrapper class. Specifically, we use
symbolic_context.inner_contexts
instead ofsymbolic_context
from outer wrapper class: https:/pytorch/pytorch/blob/main/torch/_subclasses/meta_utils.py#L649