[Diffusion] Match rotary_embedding module name style (#19179)

This commit is contained in:
Xiaoyu Zhang
2026-02-23 21:02:34 +08:00
committed by GitHub
parent 2717393681
commit e0e0cad6bc
5 changed files with 7 additions and 7 deletions
@@ -26,10 +26,10 @@
# limitations under the License.
"""Rotary Positional Embeddings — unified public API (drop-in replacement)."""
from ._base import RotaryEmbedding
from ._factory import get_rope, get_rotary_pos_embed
from ._mrope import NDRotaryEmbedding
from ._utils import (
from .base import RotaryEmbedding
from .factory import get_rope, get_rotary_pos_embed
from .mrope import NDRotaryEmbedding
from .utils import (
_apply_rotary_emb,
apply_flashinfer_rope_qk_inplace,
)
@@ -4,7 +4,7 @@ import torch
from sglang.multimodal_gen.runtime.layers.custom_op import CustomOp
from ._utils import _apply_rotary_emb
from .utils import _apply_rotary_emb
@CustomOp.register("rotary_embedding")
@@ -5,8 +5,8 @@ from typing import Any
import torch
from ._base import LinearScalingRotaryEmbedding, RotaryEmbedding
from ._mrope import NDRotaryEmbedding, _to_tuple
from .base import LinearScalingRotaryEmbedding, RotaryEmbedding
from .mrope import NDRotaryEmbedding, _to_tuple
_ROPE_DICT: dict[tuple, RotaryEmbedding] = {}
_ND_ROPE_CACHE: "OrderedDict[tuple, NDRotaryEmbedding]" = OrderedDict()