Skip to content

vllm.model_executor.layers.rotary_embedding.bailing_mrope

Classes:

Functions:

BailingMRotaryEmbedding

Bases: MRotaryEmbedding

Bailing M-RoPE with alternating H/W frequencies and a temporal tail.

_triton_bailing_mrope_forward(q_ptr, k_ptr, positions_ptr, cos_sin_cache_ptr, q_stride_token, q_stride_head, q_stride_dim, k_stride_token, k_stride_head, k_stride_dim, positions_stride_axis, positions_stride_token, cache_stride_position, cache_stride_dim, n_qh, n_kh, rotary_dim, pad_n_qh, pad_n_kh, pad_half_rotary_dim, spatial_size)

Apply GPT-J-style H/W-interleaved, T-tail M-RoPE in place.

triton_bailing_mrope(query, key, positions, cos_sin_cache, spatial_size, head_size, rotary_dim)

Fused Bailing M-RoPE for packed or strided Q/K.