Skip to content

Conversation

@liangel-02
Copy link
Contributor

@liangel-02 liangel-02 commented Sep 25, 2025

adding Int4PreshuffledTensor to safetensors (Float8DynamicActivationInt4WeightConfig)

modified unit test, python test/prototype/safetensors/test_safetensors_support.py

Stack from ghstack (oldest at bottom):

**Summary**
adding `Int4Tensor` support for safetensors (`Int4WeightOnlyConfig`)

**Test plan**
modified unit test to include `Int4WeightOnlyConfig`
`python test/prototype/safetensors/test_safetensors_support.py`




[ghstack-poisoned]
**Summary**
adding `Int4Tensor` support for safetensors (`Int4WeightOnlyConfig`)

**Test plan**
modified unit test to include `Int4WeightOnlyConfig`
`python test/prototype/safetensors/test_safetensors_support.py`




[ghstack-poisoned]
**Summary**
adding `Int4Tensor` support for safetensors (`Int4WeightOnlyConfig`)

**Test plan**
modified unit test to include `Int4WeightOnlyConfig`
`python test/prototype/safetensors/test_safetensors_support.py`




[ghstack-poisoned]
**Summary**
adding `Int4Tensor` support for safetensors (`Int4WeightOnlyConfig`)

**Test plan**
modified unit test to include `Int4WeightOnlyConfig`
`python test/prototype/safetensors/test_safetensors_support.py`




[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 25, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3063

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 585afe2 with merge base 0064084 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 25, 2025
liangel-02 added a commit that referenced this pull request Sep 25, 2025
ghstack-source-id: 0a4d486
Pull Request resolved: #3063
adding `Int4PreshuffledTensor` to safetensors 

modified unit test, `python test/prototype/safetensors/test_safetensors_support.py`




[ghstack-poisoned]
liangel-02 added a commit that referenced this pull request Sep 25, 2025
ghstack-source-id: c7f9d15
Pull Request resolved: #3063
@liangel-02 liangel-02 added topic: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories) topic: new feature Use this tag if this PR adds a new feature and removed topic: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories) labels Sep 25, 2025
@liangel-02 liangel-02 changed the base branch from gh/liangel/2/base to main September 25, 2025 17:05
ALLOWED_CLASSES = {
"Float8Tensor": Float8Tensor,
"Int4Tensor": Int4Tensor,
"Int4PreshuffledTensor": Int4PreshuffledTensor,
Copy link
Contributor

Choose a reason for hiding this comment

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

it's fine to not support this one actually, since we don't need to distribute this

Copy link
Contributor

Choose a reason for hiding this comment

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

but I think the test should probably still be added later when the full export path is ready

@liangel-02 liangel-02 closed this Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: new feature Use this tag if this PR adds a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants