[Misc] Use RoPE cache for MRoPE (#8396)

This commit is contained in:
Woosuk Kwon
2024-09-11 23:13:14 -07:00
committed by GitHub
parent 295c4730a8
commit 42ffba11ad

View File

@@ -990,7 +990,7 @@ def get_rope(
base, is_neox_style, dtype, short_factor, long_factor,
**extra_kwargs)
elif scaling_type == "mrope":
return MRotaryEmbedding(
rotary_emb = MRotaryEmbedding(
head_size,
rotary_dim,
max_position,