File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 23
23
import os
24
24
25
25
import pytest
26
+ import torch
26
27
from vllm import LLM , SamplingParams
27
- from vllm_ascend .platform import NPUPlatform
28
28
29
29
from tests .conftest import VllmRunner
30
30
from tests .model_utils import check_outputs_equal
@@ -57,12 +57,12 @@ def test_models(
57
57
vllm_model = LLM (model )
58
58
vllm_aclgraph_outputs = vllm_model .generate (prompts , sampling_params )
59
59
del vllm_model
60
- NPUPlatform . clear_npu_memory ()
60
+ torch . npu . empty_cache ()
61
61
62
62
vllm_model = LLM (model , enforce_eager = True )
63
63
vllm_eager_outputs = vllm_model .generate (prompts , sampling_params )
64
64
del vllm_model
65
- NPUPlatform . clear_npu_memory ()
65
+ torch . npu . empty_cache ()
66
66
67
67
vllm_aclgraph_outputs_list = []
68
68
for output in vllm_aclgraph_outputs :
You can’t perform that action at this time.
0 commit comments