dotnet / dotnet/TorchSharp

`GradScaler` and mixed-precision training

Open
#899 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.9k
Forks
228
PR merge metrics
No merged PRs in 30d

Description

https://pytorch.org/docs/stable/notes/amp_examples.html

Currently, `bfloat16` works well without grad scaling. But to use `fp16` and `fp8` (`fp8` - in the future, when the support for Hopper/40XX GPUs lands) one needs to scale gradients.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.