Skip to content

fix: replace deprecated torch.cuda.amp with torch.amp - #1089

Open
ktz03 wants to merge 5 commits into
meituan:mainfrom
ktz03:fix/pytorch-amp-api
Open

fix: replace deprecated torch.cuda.amp with torch.amp#1089
ktz03 wants to merge 5 commits into
meituan:mainfrom
ktz03:fix/pytorch-amp-api

Conversation

@ktz03

@ktz03 ktz03 commented Aug 16, 2026

Copy link
Copy Markdown

Replaces deprecated torch.cuda.amp APIs with torch.amp (GradScaler/autocast) for PyTorch 2.0+ compatibility.

Also updates loss modules that still used torch.cuda.amp.autocast.

Fixes #1077

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.

Update deprecated torch.cuda.amp API calls for PyTorch 2.0+ compatibility

1 participant