Skip to content

Commit

Permalink
fix try import (#8332)
Browse files Browse the repository at this point in the history
  • Loading branch information
w5688414 authored Apr 26, 2024
1 parent de14907 commit 6ed54d8
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions paddlenlp/transformers/gemma/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@
except ImportError:
fused_rotary_position_embedding = None


from paddle.distributed.fleet.utils.sequence_parallel_utils import (
ColumnSequenceParallelLinear,
GatherOp,
RowSequenceParallelLinear,
ScatterOp,
mark_as_sequence_parallel_parameter,
)
try:
from paddle.distributed.fleet.utils.sequence_parallel_utils import (
ColumnSequenceParallelLinear,
GatherOp,
RowSequenceParallelLinear,
ScatterOp,
mark_as_sequence_parallel_parameter,
)
except:
pass

from paddlenlp.transformers.conversion_utils import (
StateDictNameMapping,
Expand Down

0 comments on commit 6ed54d8

Please sign in to comment.