Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#202 from fedebotu/main
Browse files Browse the repository at this point in the history
[BugFix] avoid bug on ImportError
  • Loading branch information
tridao authored May 6, 2023
2 parents a9a4b4e + 69f5f7d commit 5bf7f57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flash_attn/models/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
try:
from flash_attn.ops.rms_norm import RMSNorm, dropout_add_rms_norm
except ImportError:
RMSNorm, dropout_add_rms_norm = None
RMSNorm, dropout_add_rms_norm = None, None

try:
from flash_attn.ops.rms_norm import dropout_add_rms_norm_parallel_residual
Expand Down
2 changes: 1 addition & 1 deletion flash_attn/modules/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
try:
from flash_attn.ops.rms_norm import RMSNorm, dropout_add_rms_norm
except ImportError:
RMSNorm, dropout_add_rms_norm = None
RMSNorm, dropout_add_rms_norm = None, None

try:
from flash_attn.ops.rms_norm import dropout_add_rms_norm_parallel_residual
Expand Down

0 comments on commit 5bf7f57

Please sign in to comment.