Unverified Commit 68811079 authored by Shawn Huang's avatar Shawn Huang Committed by GitHub
Browse files

[BUG FIX] minicpm (#18739)


Signed-off-by: default avatarhuangyuxiang03 <huangyx0321@gmail.com>
Co-authored-by: default avatarhuangyuxiang03 <huangyx0321@gmail.com>
parent e0f0ff87
...@@ -242,9 +242,6 @@ class MiniCPMAttention(nn.Module): ...@@ -242,9 +242,6 @@ class MiniCPMAttention(nn.Module):
base=rope_theta, base=rope_theta,
rope_scaling=rope_scaling, rope_scaling=rope_scaling,
) )
# set rope as fp32 instead of bf16
self.rotary_emb.cos_sin_cache = self.rotary_emb._compute_cos_sin_cache(
)
self.attn = Attention(self.num_heads, self.attn = Attention(self.num_heads,
self.head_dim, self.head_dim,
self.scaling, self.scaling,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment