Skip to content

Commit 23d94f8

Browse files
yuanlehomeDrownFish19
authored andcommitted
[BugFix] fix pir dt2st (#9251)
1 parent 3492fc2 commit 23d94f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddlenlp/transformers/chatglm_v2/modeling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def apply_rotary_pos_emb(x: paddle.Tensor, rope_cache: paddle.Tensor) -> paddle.
147147
-1,
148148
)
149149
x_out2 = x_out2.flatten(3)
150-
return paddle.concat((x_out2, x_pass), axis=-1)
150+
return paddle.concat((x_out2, x_pass.cast(x_out2.dtype)), axis=-1)
151151

152152

153153
class RMSNorm(nn.Layer):

0 commit comments

Comments
 (0)