+
Skip to content

Conversation

liangel-02
Copy link
Contributor

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

Summary
adding Int4Tensor support for safetensors (Int4WeightOnlyConfig)

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

Stack from ghstack (oldest at bottom):

Copy link

pytorch-bot bot commented Sep 24, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit f7b8068 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.

liangel-02 added a commit that referenced this pull request Sep 24, 2025
ghstack-source-id: cec24fc
Pull Request resolved: #3056
@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 24, 2025
liangel-02 added a commit that referenced this pull request Sep 24, 2025
ghstack-source-id: 3796104
Pull Request resolved: #3056
liangel-02 added a commit that referenced this pull request Sep 24, 2025
ghstack-source-id: d6c7d49
Pull Request resolved: #3056
liangel-02 added a commit that referenced this pull request Sep 24, 2025
ghstack-source-id: 3133953
Pull Request resolved: #3056
Copy link
Contributor

@jerryzh168 jerryzh168 left a comment

Choose a reason for hiding this comment

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

looks good, we can add all the configs we want to first, and then can follow up with a PR trying to enable for all TorchAOBaseTensor I think

@jerryzh168
Copy link
Contributor

please include at least a Summary and Test Plan section in the PR summary

Copy link
Contributor

@jerryzh168 jerryzh168 left a comment

Choose a reason for hiding this comment

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

need to extend the code to work with optional tensor attributes

liangel-02 added a commit that referenced this pull request Sep 24, 2025
ghstack-source-id: e86f4fb
Pull Request resolved: #3056
**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]
liangel-02 added a commit that referenced this pull request Sep 24, 2025
ghstack-source-id: 96e3e23
Pull Request resolved: #3056
@liangel-02 liangel-02 added the topic: new feature Use this tag if this PR adds a new feature label Sep 24, 2025
**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]
liangel-02 added a commit that referenced this pull request Sep 24, 2025
ghstack-source-id: 1544de1
Pull Request resolved: #3056
**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]
@liangel-02 liangel-02 changed the base branch from gh/liangel/1/base to main September 25, 2025 14:19
@liangel-02 liangel-02 merged commit 6c1f503 into main Sep 25, 2025
50 checks passed
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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载