Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
del logits=(bs, seq_len, vocab_size) to save 3.9G memory (#391)
logits=(bs, seq_len, vocab_size). call `del logits` to free it before backward <img width="1607" alt="Screenshot 2024-06-12 at 11 10 36 AM" src="https://github.com/pytorch/torchtitan/assets/134637289/82db2792-59a3-40c4-9591-842be3dd9284">
- Loading branch information