Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Fix activation checkpointing of SwiGLU when AMP is enabled. (#1152
) Without this fix the number of tensors saved during recomputation is equal to 0. Moved at::AutoDispatchBelowADInplaceOrView guard after ctx->get_saved_variables(). ctx->get_saved_variables() is the call where the recomputation of the forward pass occurs.
- Loading branch information