@@ -363,36 +363,6 @@ def test_check_and_update_config_unsupported_cudagraph_mode(
363
363
CUDAGraphMode .NONE ,
364
364
)
365
365
366
- @patch ("vllm_ascend.utils.is_310p" , return_value = False )
367
- @patch ("vllm_ascend.ascend_config.check_ascend_config" )
368
- @patch ("vllm_ascend.ascend_config.init_ascend_config" )
369
- def test_check_and_update_config_disable_aclgraph_when_ray_enabled (
370
- self , mock_init_ascend , mock_check_ascend , mock_is_310p ):
371
- mock_init_ascend .return_value = TestNPUPlatform .mock_vllm_ascend_config (
372
- )
373
- vllm_config = TestNPUPlatform .mock_vllm_config ()
374
- vllm_config .model_config .enforce_eager = False
375
- vllm_config .compilation_config .level = CompilationLevel .PIECEWISE
376
- vllm_config .parallel_config .distributed_executor_backend = "ray"
377
-
378
- with self .assertLogs (logger = "vllm" , level = "WARNING" ) as cm :
379
- from vllm_ascend import platform
380
-
381
- importlib .reload (platform )
382
- self .platform .check_and_update_config (vllm_config )
383
- print (30 * "=" , f"cm.output: { cm .output } " )
384
- self .assertTrue (
385
- "Ray distributed executor backend is not compatible with ACL Graph mode"
386
- in cm .output [0 ])
387
- self .assertEqual (
388
- vllm_config .compilation_config .level ,
389
- CompilationLevel .NO_COMPILATION ,
390
- )
391
- self .assertEqual (
392
- vllm_config .compilation_config .cudagraph_mode ,
393
- CUDAGraphMode .NONE ,
394
- )
395
-
396
366
@patch ("vllm_ascend.utils.is_310p" , return_value = False )
397
367
@patch ("vllm_ascend.ascend_config.check_ascend_config" )
398
368
@patch ("vllm_ascend.ascend_config.init_ascend_config" )
0 commit comments