[BUG FIX] minicpm (#18739)

Signed-off-by: huangyuxiang03 <huangyx0321@gmail.com>
Co-authored-by: huangyuxiang03 <huangyx0321@gmail.com>
This commit is contained in:
Shawn Huang 2025-05-27 16:04:49 +08:00 committed by GitHub
parent e0f0ff87b8
commit 6881107948
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -242,9 +242,6 @@ class MiniCPMAttention(nn.Module):
base=rope_theta,
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.head_dim,
self.scaling,