Skip to content

Conversation

@crcrpar
Copy link
Collaborator

@crcrpar crcrpar commented Sep 8, 2022

  • Deify PyTorch autocast context and casts tensors
  • add test cases with and without autocast enabled (currently only fp16)

Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>
Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>
@crcrpar crcrpar requested a review from FDecaYed September 8, 2022 23:18
Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>
@crcrpar crcrpar removed the request for review from FDecaYed September 9, 2022 00:13
@crcrpar crcrpar changed the title Update apex.mlp to support PyTorch AMP Update apex.mlp to use fp16 in autocast Sep 9, 2022
@crcrpar crcrpar merged commit 81c9aca into NVIDIA:master Sep 9, 2022
@crcrpar crcrpar deleted the apexmlp-pytorch-amp branch September 9, 2022 00:37
@crcrpar crcrpar added this to the 22.11 milestone Oct 25, 2022
hubertlu-tw pushed a commit to ROCm/apex that referenced this pull request Dec 28, 2022
* apex.amp migration to torch.cuda.amp

Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>

* add autocast tests

Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>

* split with and without autocast

Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>

Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>
yuanzhedong pushed a commit to yuanzhedong/apex that referenced this pull request Jul 14, 2023
* apex.amp migration to torch.cuda.amp

Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>

* add autocast tests

Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>

* split with and without autocast

Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>

Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant