Skip to content

mxtensor: delete to_copy override#3072

Merged
vkuzo merged 15 commits into
mainfrom
gh/vkuzo/124/head
Sep 26, 2025
Merged

mxtensor: delete to_copy override#3072
vkuzo merged 15 commits into
mainfrom
gh/vkuzo/124/head

Conversation

@vkuzo

@vkuzo vkuzo commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

Summary:

We get this for free from TorchAOBaseTensor, and that implementation
handles more args, such as args we need for HF serialization to work.

Test Plan:

CI, and also unblocks saving an HF model with MXFP4 weights to disk.

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@vkuzo

vkuzo commented Sep 26, 2025

Copy link
Copy Markdown
Contributor Author

@pytorch-bot

pytorch-bot Bot commented Sep 26, 2025

Copy link
Copy Markdown

🔗 Helpful Links

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

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

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 26, 2025
This was referenced Sep 26, 2025
vkuzo added a commit that referenced this pull request Sep 26, 2025
Summary:

We get this for free from `TorchAOBaseTensor`, and that implementation
handles more args, such as args we need for HF serialization to work.

Test Plan:

CI, and also unblocks saving an HF model with MXFP4 weights to disk.

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 580c44d
ghstack-comment-id: 3336399088
Pull Request resolved: #3072
@vkuzo vkuzo added the topic: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories) label Sep 26, 2025
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@vkuzo vkuzo changed the base branch from gh/vkuzo/123/head to main September 26, 2025 19:35
@vkuzo vkuzo merged commit d009386 into main Sep 26, 2025
33 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: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants