Skip to content

Commit 105b34c

Browse files
committed
update
Signed-off-by: shen-shanshan <467638484@qq.com>
1 parent bb43a67 commit 105b34c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/singlecard/test_aclgraph.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
import os
2424

2525
import pytest
26+
import torch
2627
from vllm import LLM, SamplingParams
27-
from vllm_ascend.platform import NPUPlatform
2828

2929
from tests.conftest import VllmRunner
3030
from tests.model_utils import check_outputs_equal
@@ -57,12 +57,12 @@ def test_models(
5757
vllm_model = LLM(model)
5858
vllm_aclgraph_outputs = vllm_model.generate(prompts, sampling_params)
5959
del vllm_model
60-
NPUPlatform.clear_npu_memory()
60+
torch.npu.empty_cache()
6161

6262
vllm_model = LLM(model, enforce_eager=True)
6363
vllm_eager_outputs = vllm_model.generate(prompts, sampling_params)
6464
del vllm_model
65-
NPUPlatform.clear_npu_memory()
65+
torch.npu.empty_cache()
6666

6767
vllm_aclgraph_outputs_list = []
6868
for output in vllm_aclgraph_outputs:

0 commit comments

Comments
 (0)