We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34264a1 commit b362c66Copy full SHA for b362c66
vllm_ascend/ops/rotary_embedding.py
@@ -23,6 +23,7 @@
23
DeepseekScalingRotaryEmbedding, RotaryEmbedding)
24
25
from vllm_ascend.platform import CUSTOM_OP_ENABLED
26
+import vllm_ascend.envs as envs
27
28
29
def custom_rotary_embedding_enabled(query, neox_style, head_size):
@@ -315,7 +316,7 @@ def deepseek_rope_init_func(
315
316
dtype=dtype,
317
device="npu")
318
-if vllm_ascend.envs.VLLM_ASCEND_ENABLE_NPU_MROPE:
319
+if envs.VLLM_ASCEND_ENABLE_NPU_MROPE:
320
RotaryEmbedding.forward_oot = rope_forward_oot_npu_mrope
321
else:
322
RotaryEmbedding.forward_oot = rope_forward_oot
0 commit comments