guan404ming opened a new pull request, #18520:
URL: https://github.com/apache/tvm/pull/18520
## Why
- Phi-4 uses: partial_rotary_factor = 0.75 (rotary_dim = 96) + longrope
scaling
- Longrope requires: Both long_factors + short_factors packed into one buffer
- Expected buffer size: (rotary_dim,) = (96,) total
- First half [0:48] = long_factors
- Second half [48:96] = short_factors
- llama4_rope_with_position_map still had old size (rotary_dim // 2,) = (48,)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]