[Bugfix][Model] Fix Afmoe rope_parameters issue (#30505)

Signed-off-by: mgoin <mgoin64@gmail.com>
Signed-off-by: Michael Goin <mgoin64@gmail.com>
Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Michael Goin
2025-12-11 21:53:57 -05:00
committed by GitHub
parent 6a6fc41c79
commit 9f2fc16a69
2 changed files with 2 additions and 5 deletions

View File

@@ -242,7 +242,7 @@ class AfmoeAttention(nn.Module):
self.rotary_emb = get_rope(
self.head_dim,
max_position=max_position_embeddings,
rope_parameters=config["rope_parameters"],
rope_parameters=config.rope_parameters,
is_neox_style=True,
)
else: