-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix gptj HCCL issue occured in DDP (#318)
Signed-off-by: Wang, Yi A <[email protected]>
- Loading branch information
1 parent
613afe7
commit 5d4765e
Showing
4 changed files
with
192 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from .modeling_gptj import ( | ||
GaudiGPTJAttention, | ||
GaudiGPTJForCausalLM, | ||
gaudi_gptj_attention_forward, | ||
gaudi_gptj_block_forward, | ||
gaudi_gptj_model_forward, | ||
) |
255 changes: 186 additions & 69 deletions
255
optimum/habana/transformers/models/gptj/modeling_gptj.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters