fix: align RotaryEmbedding with Qwen2Moe pattern for transformers compat
#4
by kashif HF Staff - opened
Replace custom rope_type handling with the standard Qwen2Moe pattern: use compute_default_rope_parameters for "default" type, only look up ROPE_INIT_FUNCTIONS for non-default types. Also adds partial_rotary_factor support.
LGTM. Standardizing the RoPE implementation and adding partial_rotary_factor support makes total sense. Approved for merge. Thanks for the work!
lccurious changed pull request status to merged