[2/n jit_kernel restruct] unify rotary embedding entrypoints under rope.py (#20247)
This commit is contained in:
@@ -71,10 +71,10 @@ class RotaryEmbedding(MultiPlatformOp):
|
||||
and not (_is_npu)
|
||||
and not (_is_musa)
|
||||
):
|
||||
# rotary_embedding from sglang.jit_kernel.pos_enc and vllm._custom_ops has the same implementation.
|
||||
# rotary_embedding from sglang.jit_kernel.rope and vllm._custom_ops has the same implementation.
|
||||
# TODO: Test on different devices and remove this conditional.
|
||||
if _is_cuda:
|
||||
from sglang.jit_kernel.pos_enc import rotary_embedding
|
||||
from sglang.jit_kernel.rope import rotary_embedding
|
||||
elif _is_hip:
|
||||
from sgl_kernel import rotary_embedding
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user