Skip to content

Conversation

jerryzh168
Copy link
Contributor

@jerryzh168 jerryzh168 commented Sep 3, 2025

Summary:
hp_value_lb and hp_value_ub for Float8 weight tensor are only used when calculating scale for the float8 tensor, doesn't have to be stored in the tensor itself. This PR removes it.

We also have BC testing to make sure the change does not break BC.

Test Plan:
Regression tests:
python test/integration/test_load_and_run_checkpoint.py

Reviewers:

Subscribers:

Tasks:

Tags:

Summary:
att, hp_value_lb and hp_value_ub for weight are only used when calculating scale for the float8 tensor, doesn't have to be stored
in the tensor itself. This PR removes it.

We also have BC testing to make sure the change does not break BC.

Test Plan:
Regression tests:
python test/integration/test_load_and_run_checkpoint.py

Reviewers:

Subscribers:

Tasks:

Tags:
Copy link

pytorch-bot bot commented Sep 3, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 3e153b0 with merge base f35ae41 (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 3, 2025
@jerryzh168 jerryzh168 added topic: not user facing Use this tag if you don't want this PR to show up in release notes topic: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories) and removed topic: not user facing Use this tag if you don't want this PR to show up in release notes labels Sep 4, 2025
@jerryzh168 jerryzh168 changed the title Removing unused attributes in Float8Tensor Remove unused attributes in Float8Tensor Sep 4, 2025
@jerryzh168 jerryzh168 merged commit b34c103 into pytorch:main Sep 4, 2025
20 of 22 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