Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[seq2seq] document the caveat of leaky native amp #8930

Merged
merged 2 commits into from
Dec 4, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/seq2seq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ test.target
```
The `.source` files are the input, the `.target` files are the desired output.

### Potential issues

- native AMP (`--fp16` and no apex) may lead to a huge memory leak and require 10x gpu memory. This has been fixed in pytorch-nightly and the minimal official version to have this fix will be pytorch-1.8. Until then if you have to use amp please use NVIDIA's apex. Reference: https://github.com/huggingface/transformers/issues/8403
stas00 marked this conversation as resolved.
Show resolved Hide resolved


### Tips and Tricks

General Tips:
Expand Down