Skip to content

Conversation

shanjiaz
Copy link
Contributor

@shanjiaz shanjiaz commented Sep 3, 2025

We can't call torch.any on meta tensors, added check for that. This should resolve 1948

Signed-off-by: shanjiaz <zsjwpianpian@gmail.com>
kylesayrs
kylesayrs previously approved these changes Sep 3, 2025
Copy link
Contributor

@kylesayrs kylesayrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch

Signed-off-by: shanjiaz <zsjwpianpian@gmail.com>
Signed-off-by: shanjiaz <zsjwpianpian@gmail.com>
@kylesayrs kylesayrs merged commit 1403bc4 into main Sep 4, 2025
2 checks passed
@kylesayrs kylesayrs deleted the hz-fix-compress branch September 4, 2025 05:34
Etelis added a commit to Etelis/compressed-tensors that referenced this pull request Sep 11, 2025
* fix compress on meta device issue

Signed-off-by: shanjiaz <zsjwpianpian@gmail.com>

* fix style

Signed-off-by: shanjiaz <zsjwpianpian@gmail.com>

* fix style

Signed-off-by: shanjiaz <zsjwpianpian@gmail.com>

---------

Signed-off-by: shanjiaz <zsjwpianpian@gmail.com>
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.

3 participants