Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vkuzo
Copy link
Contributor

@vkuzo vkuzo commented Jun 11, 2025

Summary:

This PR makes the Float8LinearConfig.force_recompute_fp8_weight_in_bwd flag do nothing and marks it for a future deprecation.

Now that PyTorch Core can handle this logic automatically, we no longer need the workaround. Please
see #2251 for more context.

Test Plan:

./test/float8/test_everything.sh

Reviewers:

Subscribers:

Tasks:

Tags:

Summary:

This PR makes the `Float8LinearConfig.force_recompute_fp8_weight_in_bwd`
flag do nothing and marks it for a future deprecation.

Now that PyTorch Core can handle this logic automatically, we
no longer need the workaround. Please
see #2251 for more context.

Test Plan:

```
./test/float8/test_everything.sh
```

Reviewers:

Subscribers:

Tasks:

Tags:
@pytorch-bot
Copy link

pytorch-bot bot commented Jun 11, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

As of commit b87b329 with merge base 60c583e (image):

NEW FAILURE - The following job has failed:

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

@facebook-github-bot facebook-github-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 Jun 11, 2025
@vkuzo vkuzo added the topic: deprecation Use this tag if this PR deprecates a feature label Jun 11, 2025
@vkuzo vkuzo merged commit 03c850a into main Jun 13, 2025
17 of 21 checks passed
vkuzo added a commit to pytorch/torchtitan that referenced this pull request Jul 24, 2025
Summary:

This flag has been deprecated in
pytorch/ao#2356,
deleting it from torchtitan to prepare for future deletion from torchao.

Test Plan: CI

Reviewers:

Subscribers:

Tasks:

Tags:
vkuzo added a commit that referenced this pull request Jul 24, 2025
Summary:

Removing code which we no longer need after
#2356 . `torch.compile` now does the
right thing automatically, and the relevant config has been deprecated.

Also fix links in float8 training benchmark README.md to point to
updated locations.

Test Plan:

```
./test/float8/test_everything.sh
```

```
// before
with-proxy TORCHTITAN_ROOT=~/local/torchtitan/ FLOAT8_RECIPE_WITH_BEST_SETTINGS="tensorwise" ./torchtitan_benchmark.sh
...
Median Tokens/Second (excluding step 1): 7999.0
Max Memory Usage: 36.68 GiB

// after
with-proxy TORCHTITAN_ROOT=~/local/torchtitan/ FLOAT8_RECIPE_WITH_BEST_SETTINGS="tensorwise" ./torchtitan_benchmark.sh
...
Median Tokens/Second (excluding step 1): 8038.5
Max Memory Usage: 36.68 GiB
```

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 1211464
ghstack-comment-id: 3113439246
Pull Request resolved: #2594
vkuzo added a commit that referenced this pull request Jul 24, 2025
Summary:

These workarounds are no longer needed after
#2356 and the corresponding
improvements in PyTorch core.

Test Plan:

torchtitan bench on llama 3 8b on 8 H100s:

before

rowwise
Median Tokens/Second (excluding step 1): 7013.0
Max Memory Usage: 37.19 GiB

gw_hp
Median Tokens/Second (excluding step 1): 7232.0
Max Memory Usage: 37.13 GiB

after

rowwise
Median Tokens/Second (excluding step 1): 6984.5
Max Memory Usage: 37.19 GiB

gw_hp
Median Tokens/Second (excluding step 1): 7319.5
Max Memory Usage: 37.13 GiB

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: ae11ea7
ghstack-comment-id: 3113561383
Pull Request resolved: #2595
vkuzo added a commit that referenced this pull request Jul 24, 2025
Summary:

These workarounds are no longer needed after
#2356 and the corresponding
improvements in PyTorch core.

Test Plan:

torchtitan bench on llama 3 8b on 8 H100s:

before

rowwise
Median Tokens/Second (excluding step 1): 7013.0
Max Memory Usage: 37.19 GiB

gw_hp
Median Tokens/Second (excluding step 1): 7232.0
Max Memory Usage: 37.13 GiB

after

rowwise
Median Tokens/Second (excluding step 1): 6984.5
Max Memory Usage: 37.19 GiB

gw_hp
Median Tokens/Second (excluding step 1): 7319.5
Max Memory Usage: 37.13 GiB

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: ae11ea7
ghstack-comment-id: 3113561383
Pull Request resolved: #2595
vkuzo added a commit to pytorch/torchtitan that referenced this pull request Jul 28, 2025
Summary:

This flag has been deprecated in
pytorch/ao#2356,
deleting it from torchtitan to prepare for future deletion from torchao.

Test Plan: CI

Reviewers:

Subscribers:

Tasks:

Tags:
vkuzo added a commit to pytorch/torchtitan that referenced this pull request Jul 28, 2025
Summary:

This flag has been deprecated in
pytorch/ao#2356,
deleting it from torchtitan to prepare for future deletion from torchao.

Test Plan: CI

Reviewers:

Subscribers:

Tasks:

Tags:
Luosuu pushed a commit to Luosuu/torchtitan that referenced this pull request Jul 28, 2025
Summary:

This flag has been deprecated in
pytorch/ao#2356,
deleting it from torchtitan to prepare for future deletion from torchao.

Test Plan: CI

Reviewers:

Subscribers:

Tasks:

Tags:
bentherien pushed a commit to bentherien/torchtitan_ that referenced this pull request Aug 5, 2025
Summary:

This flag has been deprecated in
pytorch/ao#2356,
deleting it from torchtitan to prepare for future deletion from torchao.

Test Plan: CI

Reviewers:

Subscribers:

Tasks:

Tags:
joellidin pushed a commit to one-covenant/torchtitan that referenced this pull request Aug 8, 2025
Summary:

This flag has been deprecated in
pytorch/ao#2356,
deleting it from torchtitan to prepare for future deletion from torchao.

Test Plan: CI

Reviewers:

Subscribers:

Tasks:

Tags:
joellidin pushed a commit to one-covenant/torchtitan that referenced this pull request Aug 8, 2025
Summary:

This flag has been deprecated in
pytorch/ao#2356,
deleting it from torchtitan to prepare for future deletion from torchao.

Test Plan: CI

Reviewers:

Subscribers:

Tasks:

Tags:
liangel-02 pushed a commit that referenced this pull request Aug 25, 2025
…ing (#2356)

Summary:

This PR makes the `Float8LinearConfig.force_recompute_fp8_weight_in_bwd`
flag do nothing and marks it for a future deprecation.

Now that PyTorch Core can handle this logic automatically, we
no longer need the workaround. Please
see #2251 for more context.

Test Plan:

```
./test/float8/test_everything.sh
```

Reviewers:

Subscribers:

Tasks:

Tags:
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: deprecation Use this tag if this PR deprecates a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants