Skip to content

[Bug] ais-bench-prefix-cache meet an error, when mtp is enabled #710

Todo

Description

@NilouBao

操作系统及版本

6.6.0-159.4.3.154.oe2403sp4.aarch64

安装工具的python环境

docker容器中的python环境

python版本

3.10

AISBench工具版本

3.1.20261113

AISBench执行命令

ais-bench-prefix-cache inspect --scenario ./scenario.json ais-bench-prefix-cache prepare --mode text --scenario ./scenario.json ais-bench-prefix-cache run --scenario ./scenario.json

模型配置文件或自定义配置文件内容

scenario.json
{ "schema_version": "1.0", "run": { "run_id": "glm52-mtp-baseline", "random_seed": 42, "output_dir": "./outputs/glm52-mtp-baseline", "overwrite": false }, "tokenizer": { "path": "/workspace/models/GLM-5.2-W4A8C8-A3-0731", "block_size": 128, "revision": null, "trust_remote_code": false }, "corpus": { "path": "./GSM8K.jsonl", "field": "question", "selection": {"mode": "random"} }, "requests": { "count": 100, "input_length": { "mode": "truncated_normal", "min": 4096, "max": 262144, "mean": 32768 }, "output_length": { "mode": "fixed", "value": 128 } }, "prefix_cache": { "mode": "warmup", "target_hit_rate": 0.90, "seed_blocks": 1, "groups": {"count": 1, "assignment": {"mode": "uniform"}, "overrides": {}}, "order": {"strategy": "global_shuffle"} }, "service": { "inference_url": "http://127.0.0.1:8091/v1/completions", "metrics_url": "http://127.0.0.1:8091/metrics", "reset_url": "http://127.0.0.1:8091/reset_prefix_cache", "model": "glm-52", "dp_size": 1, "assume_empty_cache": true, "engine_label_map": {}, "timeout_seconds": 600, "api_key": "", "poll_interval_seconds": 5.0 }, "validation": {"target_warning_pp": 1.0, "actual_warning_pp": 5.0}, "aisbench": { "config": "./plugins/prefix_cache/config_examples/prefix_cache_perf.py", "work_dir": "./outputs/default", "extra_args": {"--num-warmups": 0}, "dataset": { "abbr": null, "input_columns": ["question", "max_out_len"], "output_column": "answer", "prompt_template": "{question}", "pred_role": "BOT" }, "model": { "abbr": "glm52-mtp-baseline", "attr": "service", "stream": true, "max_out_len": 1, "retry": 1, "batch_size": 64, "generation_kwargs": { "temperature": 0, "ignore_eos": true } } }, "multimodal": { "mmmu_parquet_dir": "../../../../MMMU", "scenarios": ["single_1080p"] } }

预期行为

在不开启mtp时能够正常运行并得到结果,但开启mtp后就会出现报错。但报错的内容根据ai分析是在moe部分出现了内存越界。

实际行为

(APIServer pid=39298) INFO: Started server process [39298]
(APIServer pid=39298) INFO: Waiting for application startup.
(APIServer pid=39298) INFO: Application startup complete.
(APIServer pid=39298) INFO: 127.0.0.1:41754 - "POST /v1/completions HTTP/1.1" 200 OK
(APIServer pid=39298) INFO: 127.0.0.1:41768 - "GET /metrics HTTP/1.1" 200 OK
(APIServer pid=39298) INFO: 127.0.0.1:41776 - "POST /reset_prefix_cache HTTP/1.1" 404 Not Found
(APIServer pid=39298) INFO 11-24 06:39:33 [loggers.py:315] Engine 000: Avg prompt throughput: 0.8 tokens/s, Avg generation throughput: 0.1 tokens/s, Running: 1 reqs, Waiting: 0 reqs, NPU KV cache usage: 3.2%, Prefix cache hit rate: 0.0%
(APIServer pid=39298) INFO 11-24 06:39:43 [loggers.py:315] Engine 000: Avg prompt throughput: 0.0 tokens/s, Avg generation throughput: 0.0 tokens/s, Running: 1 reqs, Waiting: 0 reqs, NPU KV cache usage: 22.5%, Prefix cache hit rate: 0.0%
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] Error getting async model runner output
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] Traceback (most recent call last):
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] File "/vllm-workspace/vllm/vllm/v1/executor/multiproc_executor.py", line 989, in enqueue_output
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] output = output.get_output()
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] ^^^^^^^^^^^^^^^^^^^
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] File "/vllm-workspace/vllm/vllm/v1/worker/gpu_model_runner.py", line 351, in get_output
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] self.async_copy_ready_event.synchronize()
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] File "/usr/local/python3.12.16/lib/python3.12/site-packages/torch_npu/npu/streams.py", line 258, in synchronize
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] super(Event, self).synchronize()
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] RuntimeError: synchronize:../torch_npu/csrc/core/npu/NPUEvent.cpp:215 NPU function error: aclrtSynchronizeEvent(event_), error code is 507015
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] [ERROR] 2026-11-24-06:39:52 (PID:39343, Device:0, RankID:-1) ERR00100 PTA call acl api failed
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] [Error]: The aicore execution is abnormal.
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] Rectify the fault based on the error information in the ascend log.
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] EZ9999: Internal error!
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] EZ9999[PID: 39343] 2026-11-24-06:39:51.017.598 (EZ9999): An error occurs on the device(chipId:0, dieId:0), the serial number is 3, the error is fftsplus aivector error, core id is 26, error code = 0x800000, dump info: pc start: 0x12c0c132e6c4, current: 0x12c0c1338580, vec error info: 0x290a54eea0, mte error info: 0xe20600007b, ifu error info: 0x212c160102000, ccu error info: 0xcc4721046800026, cube error info: 0, biu error info: 0, aic error mask: 0x6500020bd00028c, para base: 0x12c1402ca080, aic cond: 0.
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] The extend info: errcode:(0x800000, 0, 0) errorStr: MTE accesses an invalid GM address or the cross-device memory access times out. fixp_error0 info: 0x600007b, fixp_error1 info: 0xe2, fsmId:0, tslot:0, thread:0, ctxid:0, blk:0, sublk:1, subErrType:4.
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] For details, see the troubleshooting document on the Ascend official website. Search for the keyword "AI Core Error".[FUNC:PrintCoreInfo][FILE:device_error_core_proc.cc][LINE:1227]
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] TraceBack (most recent call last):
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] Page fault info: device_id=0, fault_va=0x12e5f248e000, valid_range_start=0x12e5d9200000, valid_range_size=421527552(bytes), valid_range_side=device, valid_range_devid=0, valid_range_is_shared=1.[FUNC:QueryAndReportPageFaultInfo][FILE:device_error_proc.cc][LINE:1729]
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] An error occurred in the kernel task, retCode=0x26, [aicore exception].[FUNC:PreCheckTaskErr][FILE:davinci_kernel_task.cc][LINE:1030]
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] Structured dump completed: totalSize=398144 dumpCount=5 winBufSize=398144[FUNC:ParseStructuredDump][FILE:mega_moe_tiling_arch22.cpp][LINE:558]
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] Start to dump file. The dump path is /vllm-workspace/vllm-ascend/extra-info/data-dump/0/mc2_exception_info_MegaMoe.45.124958.20261124063952418[FUNC:DumpToFile][FILE:mega_moe_tiling_arch22.cpp][LINE:179]
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] Dump to file /vllm-workspace/vllm-ascend/extra-info/data-dump/0/mc2_exception_info_MegaMoe.45.124958.20261124063952418 done.[FUNC:DumpToFile][FILE:mega_moe_tiling_arch22.cpp][LINE:200]
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991] rtEventSynchronize execution failed, reason=aicore exception[FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:76]
(Worker_TP0_EP0 pid=39343) ERROR 11-24 06:39:52 [multiproc_executor.py:991]
(EngineCore pid=39324) ERROR 11-24 06:39:52 [dump_input.py:72] Dumping input data for V1 LLM engine (v0.30.0) with config: model='/workspace/models/GLM-5.2-W4A8C8-A3-0731', speculative_config=SpeculativeConfig(method='mtp', model='/workspace/models/GLM-5.2-W4A8C8-A3-0731', num_spec_tokens=3), tokenizer='/workspace/models/GLM-5.2-W4A8C8-A3-0731', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.bfloat16, max_seq_len=400000, download_dir=None, load_format=auto, tensor_parallel_size=16, pipeline_parallel_size=1, data_parallel_size=1, decode_context_parallel_size=1, dcp_comm_backend=a2a, disable_custom_all_reduce=True, quantization=ascend, quantization_config=None, enforce_eager=True, enable_return_routed_experts=False, kv_cache_dtype=int8, device_config=npu, structured_outputs_config=StructuredOutputsConfig(backend='auto', disable_any_whitespace=False, disable_additional_properties=False, reasoning_parser='', reasoning_parser_plugin='', enable_in_reasoning=False), observability_config=ObservabilityConfig(show_hidden_metrics_for_version=None, otlp_traces_endpoint=None, collect_detailed_traces=None, per_request_spec_decode_metrics='none', kv_cache_metrics=False, kv_cache_metrics_sample=0.01, cudagraph_metrics=False, enable_layerwise_nvtx_tracing=False, enable_mfu_metrics=False, enable_mm_processor_stats=False, enable_logging_iteration_details=False, jit_monitor_mode='warn', jit_monitor_verbose=False), seed=1024, served_model_name=glm-52, enable_prefix_caching=True, enable_chunked_prefill=True, pooler_config=None, compilation_config={'mode': <CompilationMode.NONE: 0>, 'debug_dump_path': None, 'cache_dir': '', 'compile_cache_save_format': 'binary', 'backend': 'vllm_ascend.compilation.compiler_interface.AscendCompiler', 'custom_ops': ['all'], 'ir_enable_torch_wrap': False, 'splitting_ops': [], 'compile_mm_encoder': False, 'cudagraph_mm_encoder': False, 'encoder_cudagraph_token_budgets': [], 'encoder_cudagraph_max_vision_items_per_batch': 0, 'encoder_cudagraph_max_frames_per_batch': None, 'compile_sizes': [], 'compile_ranges_endpoints': [8000], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'size_asserts': False, 'alignment_asserts': False, 'scalar_asserts': False, 'combo_kernels': True, 'benchmark_combo_kernel': True}, 'inductor_passes': {}, 'cudagraph_mode': <CUDAGraphMode.NONE: 0>, 'cudagraph_num_of_warmups': 1, 'cudagraph_capture_sizes': [], 'cudagraph_copy_inputs': False, 'cudagraph_specialize_lora': True, 'use_inductor_graph_partition': False, 'pass_config': {'fuse_norm_quant': True, 'fuse_act_quant': True, 'fuse_attn_quant': False, 'enable_sp': False, 'fuse_gemm_comms': False, 'fuse_allreduce_rms': False, 'enable_qk_norm_rope_fusion': False, 'fuse_rope_kvcache_cat_mla': False, 'fuse_act_padding': False, 'fuse_qk_norm_rope_kvcache': False}, 'max_cudagraph_capture_size': 0, 'dynamic_shapes_config': {'type': <DynamicShapesType.BACKED: 'backed'>, 'evaluate_guards': False, 'assume_32_bit_indexing': False}, 'local_cache_dir': None, 'fast_moe_cold_start': False, 'static_all_moe_layers': []}, kernel_config=KernelConfig(ir_op_priority=IrOpPriorityConfig(rms_norm=['native'], fused_add_rms_norm=['native'], gelu_and_mul_sparse=['native']), enable_flashinfer_autotune=True, enable_cutedsl_warmup=True, enable_jit_warmup=True, moe_backend='auto', sparse_indexer_topk_backend='auto', linear_backend='auto', linear_backend_per_quant=None),
(EngineCore pid=39324) ERROR 11-24 06:39:52 [dump_input.py:79] Dumping scheduler output for model execution: SchedulerOutput(scheduled_new_reqs=[], scheduled_cached_reqs=CachedRequestData(req_ids=['cmpl-b2cf8ecd16995939-0-be2900dd'],resumed_req_ids=set(),new_token_ids_lens=[],all_token_ids_lens={},new_block_ids=[([1252, 1253, 1254, 1255, 1256, 1257, 1258, 1259, 1260, 1261, 1262, 1263, 1264, 1265, 1266, 1267, 1268, 1269, 1270, 1271, 1272, 1273, 1274, 1275, 1276, 1277, 1278, 1279, 1280, 1281, 1282, 1283, 1284, 1285, 1286, 1287, 1288, 1289, 1290, 1291, 1292],)],num_computed_tokens=[160000],num_output_tokens=[0]), num_scheduled_tokens={cmpl-b2cf8ecd16995939-0-be2900dd: 5248}, total_num_scheduled_tokens=5248, scheduled_spec_decode_tokens={}, scheduled_encoder_inputs={}, num_common_prefix_blocks=[1292], finished_req_ids=[], free_encoder_mm_hashes=[], scheduled_encoder_input_stats=null, preempted_req_ids=[], has_structured_output_requests=false, pending_structured_output_tokens=false, num_invalid_spec_tokens=null, kv_connector_metadata=null, has_sync_kv_loads=false, ec_connector_metadata=null, ec_manager_metadata=null, new_block_ids_to_zero=null, kv_cache_block_copies=null, block_table_updates=null, kv_connector_block_state=null, num_spec_tokens_to_schedule=3)
(EngineCore pid=39324) ERROR 11-24 06:39:52 [dump_input.py:81] Dumping scheduler stats: SchedulerStats(num_running_reqs=1, num_waiting_reqs=0, num_skipped_waiting_reqs=0, step_counter=0, current_wave=0, kv_cache_usage=0.3323900180087471, iteration_details=None, prefix_cache_stats=PrefixCacheStats(reset=False, requests=0, queries=0, hits=0, preempted_requests=0, preempted_queries=0, preempted_hits=0), connector_prefix_cache_stats=None, kv_cache_eviction_events=[], spec_decoding_stats=None, kv_connector_stats=None, waiting_lora_adapters={}, running_lora_adapters={}, cudagraph_stats=None, perf_stats=None)
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] EngineCore encountered a fatal error.
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] Traceback (most recent call last):
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] File "/vllm-workspace/vllm/vllm/v1/engine/core.py", line 1352, in run_engine_core
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] engine_core.run_busy_loop()
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] File "/vllm-workspace/vllm/vllm/v1/fault_tolerance/engine_core_sentinel.py", line 179, in run_with_fault_tolerance
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] busy_loop_func(self)
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] File "/vllm-workspace/vllm/vllm/v1/engine/core.py", line 1411, in run_busy_loop
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] self._process_engine_step()
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] File "/vllm-workspace/vllm/vllm/v1/engine/core.py", line 1464, in _process_engine_step
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] outputs, model_executed = self.step_fn()
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] ^^^^^^^^^^^^^^
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] File "/vllm-workspace/vllm/vllm/v1/engine/core.py", line 706, in step_with_batch_queue
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] model_output = future.result()
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] ^^^^^^^^^^^^^^^
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] File "/vllm-workspace/vllm/vllm/v1/executor/multiproc_executor.py", line 99, in result
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] return super().result()
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] ^^^^^^^^^^^^^^^^
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] File "/usr/local/python3.12.16/lib/python3.12/concurrent/futures/_base.py", line 449, in result
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] return self.__get_result()
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] ^^^^^^^^^^^^^^^^^^^
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] File "/usr/local/python3.12.16/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] raise self._exception
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] File "/vllm-workspace/vllm/vllm/v1/executor/multiproc_executor.py", line 103, in wait_for_response
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] response = self.aggregate(self.get_response())
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] ^^^^^^^^^^^^^^^^^^^
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] File "/vllm-workspace/vllm/vllm/v1/executor/multiproc_executor.py", line 437, in get_response
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] raise RuntimeError(
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] RuntimeError: Worker failed with error 'synchronize:../torch_npu/csrc/core/npu/NPUEvent.cpp:215 NPU function error: aclrtSynchronizeEvent(event
), error code is 507015
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] [ERROR] 2026-11-24-06:39:52 (PID:39343, Device:0, RankID:-1) ERR00100 PTA call acl api failed
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] [Error]: The aicore execution is abnormal.
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] Rectify the fault based on the error information in the ascend log.
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] EZ9999: Internal error!
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] EZ9999[PID: 39343] 2026-11-24-06:39:51.017.598 (EZ9999): An error occurs on the device(chipId:0, dieId:0), the serial number is 3, the error is fftsplus aivector error, core id is 26, error code = 0x800000, dump info: pc start: 0x12c0c132e6c4, current: 0x12c0c1338580, vec error info: 0x290a54eea0, mte error info: 0xe20600007b, ifu error info: 0x212c160102000, ccu error info: 0xcc4721046800026, cube error info: 0, biu error info: 0, aic error mask: 0x6500020bd00028c, para base: 0x12c1402ca080, aic cond: 0.
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] The extend info: errcode:(0x800000, 0, 0) errorStr: MTE accesses an invalid GM address or the cross-device memory access times out. fixp_error0 info: 0x600007b, fixp_error1 info: 0xe2, fsmId:0, tslot:0, thread:0, ctxid:0, blk:0, sublk:1, subErrType:4.
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] For details, see the troubleshooting document on the Ascend official website. Search for the keyword "AI Core Error".[FUNC:PrintCoreInfo][FILE:device_error_core_proc.cc][LINE:1227]
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] TraceBack (most recent call last):
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] Page fault info: device_id=0, fault_va=0x12e5f248e000, valid_range_start=0x12e5d9200000, valid_range_size=421527552(bytes), valid_range_side=device, valid_range_devid=0, valid_range_is_shared=1.[FUNC:QueryAndReportPageFaultInfo][FILE:device_error_proc.cc][LINE:1729]
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] An error occurred in the kernel task, retCode=0x26, [aicore exception].[FUNC:PreCheckTaskErr][FILE:davinci_kernel_task.cc][LINE:1030]
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] Structured dump completed: totalSize=398144 dumpCount=5 winBufSize=398144[FUNC:ParseStructuredDump][FILE:mega_moe_tiling_arch22.cpp][LINE:558]
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] Start to dump file. The dump path is /vllm-workspace/vllm-ascend/extra-info/data-dump/0/mc2_exception_info_MegaMoe.45.124958.20261124063952418[FUNC:DumpToFile][FILE:mega_moe_tiling_arch22.cpp][LINE:179]
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] Dump to file /vllm-workspace/vllm-ascend/extra-info/data-dump/0/mc2_exception_info_MegaMoe.45.124958.20261124063952418 done.[FUNC:DumpToFile][FILE:mega_moe_tiling_arch22.cpp][LINE:200]
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] rtEventSynchronize execution failed, reason=aicore exception[FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:76]
(EngineCore pid=39324) ERROR 11-24 06:39:52 [core.py:1368] ', please check the stack trace above for the root cause
(Worker_TP0_EP0 pid=39343) INFO 11-24 06:39:52 [multiproc_executor.py:836] Parent process exited, terminating worker queues
(EngineCore pid=39324) INFO 11-24 06:39:52 [multiproc_executor.py:472] [shutdown] Executor: waiting for worker exit count=16
(APIServer pid=39298) ERROR 11-24 06:39:52 [async_llm.py:843] AsyncLLM output_handler failed.
(APIServer pid=39298) ERROR 11-24 06:39:52 [async_llm.py:843] Traceback (most recent call last):
(APIServer pid=39298) ERROR 11-24 06:39:52 [async_llm.py:843] File "/vllm-workspace/vllm/vllm/v1/engine/async_llm.py", line 789, in output_handler
(APIServer pid=39298) ERROR 11-24 06:39:52 [async_llm.py:843] outputs = await engine_core.get_output_async()
(APIServer pid=39298) ERROR 11-24 06:39:52 [async_llm.py:843] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=39298) ERROR 11-24 06:39:52 [async_llm.py:843] File "/vllm-workspace/vllm/vllm/v1/engine/core_client.py", line 1175, in get_output_async
(APIServer pid=39298) ERROR 11-24 06:39:52 [async_llm.py:843] raise self._format_exception(outputs) from None
(APIServer pid=39298) ERROR 11-24 06:39:52 [async_llm.py:843] vllm.v1.engine.exceptions.EngineDeadError: EngineCore encountered an issue. See stack trace (above) for the root cause.
(Worker_TP0_EP0 pid=39343) Process VllmWorker-0:
(Worker_TP0_EP0 pid=39343) Traceback (most recent call last):
(Worker_TP0_EP0 pid=39343) File "/usr/local/python3.12.16/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
(Worker_TP0_EP0 pid=39343) self.run()
(Worker_TP0_EP0 pid=39343) File "/usr/local/python3.12.16/lib/python3.12/multiprocessing/process.py", line 108, in run
(Worker_TP0_EP0 pid=39343) self._target(*self._args, **self._kwargs)
(Worker_TP0_EP0 pid=39343) File "/vllm-workspace/vllm/vllm/v1/executor/multiproc_executor.py", line 976, in worker_main
(Worker_TP0_EP0 pid=39343) worker.shutdown()
(APIServer pid=39298) INFO: 127.0.0.1:41782 - "POST /v1/completions HTTP/1.1" 500 Internal Server Error
(Worker_TP0_EP0 pid=39343) File "/vllm-workspace/vllm/vllm/v1/executor/multiproc_executor.py", line 821, in shutdown
(Worker_TP0_EP0 pid=39343) self.worker.shutdown()
(Worker_TP0_EP0 pid=39343) File "/vllm-workspace/vllm/vllm/v1/worker/worker_base.py", line 244, in shutdown
(Worker_TP0_EP0 pid=39343) self.worker.shutdown()
(Worker_TP0_EP0 pid=39343) File "/vllm-workspace/vllm-ascend/vllm_ascend/worker/worker.py", line 378, in shutdown
(Worker_TP0_EP0 pid=39343) shutdown_fn()
(Worker_TP0_EP0 pid=39343) File "/vllm-workspace/vllm/vllm/v1/worker/gpu_model_runner.py", line 6576, in shutdown
(Worker_TP0_EP0 pid=39343) self._cleanup_profiling_kv_cache()
(Worker_TP0_EP0 pid=39343) File "/vllm-workspace/vllm/vllm/v1/worker/gpu_model_runner.py", line 6594, in _cleanup_profiling_kv_cache
(Worker_TP0_EP0 pid=39343) torch.accelerator.synchronize()
(Worker_TP0_EP0 pid=39343) File "/usr/local/python3.12.16/lib/python3.12/site-packages/torch/accelerator/init.py", line 262, in synchronize
(Worker_TP0_EP0 pid=39343) torch._C._accelerator_synchronizeDevice(device_index)
(Worker_TP0_EP0 pid=39343) RuntimeError: npuSynchronizeDevice:../torch_npu/csrc/core/npu/NPUStream.cpp:714 NPU function error: AclrtSynchronizeDeviceWithTimeout, error code is 507015
(Worker_TP0_EP0 pid=39343) [ERROR] 2026-11-24-06:39:52 (PID:39343, Device:0, RankID:-1) ERR00100 PTA call acl api failed
(Worker_TP0_EP0 pid=39343) [Error]: The aicore execution is abnormal.
(Worker_TP0_EP0 pid=39343) Rectify the fault based on the error information in the ascend log.
(Worker_TP0_EP0 pid=39343) EZ9999: Internal error!
(Worker_TP0_EP0 pid=39343) EZ9999[PID: 39343] 2026-11-24-06:39:31.610.682 (EZ9999): ============ tiling入口 ============[FUNC:GetAttrParaInfo][FILE:kv_quant_sparse_flash_attention_vllm_tiling.cpp][LINE:1704]
(Worker_TP0_EP0 pid=39343) TraceBack (most recent call last):
(Worker_TP0_EP0 pid=39343) rtDeviceSynchronizeWithTimeout execution failed, reason=aicore exception[FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:76]
(Worker_TP0_EP0 pid=39343)
(APIServer pid=39298) INFO: Shutting down
[rank0]:[W1124 06:39:52.314232190 NPUStream.cpp:734] Warning: NPU warning, error code is 507015[Error]:
[Error]: The aicore execution is abnormal.
Rectify the fault based on the error information in the ascend log.
EE9999: Internal error!
EE9999[PID: 39343] 2026-11-24-06:39:52.479.671 (EE9999): rtDeviceSynchronizeWithTimeout execution failed, reason=aicore exception[FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:76]
TraceBack (most recent call last):
(function npuSynchronizeUsedDevices)
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.480000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] Failed to shutdown process group during NPU exit.
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.480000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] Traceback (most recent call last):
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.480000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] File "/usr/local/python3.12.16/lib/python3.12/site-packages/torch_npu/distributed/distributed_c10d.py", line 580, in _destructor_process_group
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.480000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] pg_to_shutdown.shutdown()
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.480000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] RuntimeError: synchronize:../torch_npu/csrc/core/npu/NPUStream.cpp:414 NPU function error: c10_npu::acl::AclrtSynchronizeStreamWithTimeout(stream()), error code is 507015
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.480000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] [ERROR] 2026-11-24-06:39:52 (PID:39343, Device:0, RankID:-1) ERR00100 PTA call acl api failed
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.480000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] [Error]: The aicore execution is abnormal.
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.480000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] Rectify the fault based on the error information in the ascend log.
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.480000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] EE9999: Internal error!
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.480000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] EE9999[PID: 39343] 2026-11-24-06:39:52.480.359 (EE9999): rtStreamSynchronizeWithTimeout execution failed, reason=aicore exception[FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:76]
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.480000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] TraceBack (most recent call last):
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.480000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582]
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.482000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] Failed to shutdown process group during NPU exit.
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.482000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] Traceback (most recent call last):
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.482000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] File "/usr/local/python3.12.16/lib/python3.12/site-packages/torch_npu/distributed/distributed_c10d.py", line 580, in _destructor_process_group
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.482000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] pg_to_shutdown.shutdown()
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.482000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] RuntimeError: synchronize:../torch_npu/csrc/core/npu/NPUStream.cpp:414 NPU function error: c10_npu::acl::AclrtSynchronizeStreamWithTimeout(stream()), error code is 507015
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.482000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] [ERROR] 2026-11-24-06:39:52 (PID:39343, Device:0, RankID:-1) ERR00100 PTA call acl api failed
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.482000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] [Error]: The aicore execution is abnormal.
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.482000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] Rectify the fault based on the error information in the ascend log.
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.482000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] EE9999: Internal error!
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.482000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] EE9999[PID: 39343] 2026-11-24-06:39:52.482.606 (EE9999): rtStreamSynchronizeWithTimeout execution failed, reason=aicore exception[FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:76]
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.482000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] TraceBack (most recent call last):
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.482000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582]
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.484000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] Failed to shutdown process group during NPU exit.
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.484000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] Traceback (most recent call last):
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.484000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] File "/usr/local/python3.12.16/lib/python3.12/site-packages/torch_npu/distributed/distributed_c10d.py", line 580, in _destructor_process_group
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.484000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] pg_to_shutdown.shutdown()
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.484000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] RuntimeError: synchronize:../torch_npu/csrc/core/npu/NPUStream.cpp:414 NPU function error: c10_npu::acl::AclrtSynchronizeStreamWithTimeout(stream()), error code is 507015
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.484000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] [ERROR] 2026-11-24-06:39:52 (PID:39343, Device:0, RankID:-1) ERR00100 PTA call acl api failed
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.484000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] [Error]: The aicore execution is abnormal.
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.484000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] Rectify the fault based on the error information in the ascend log.
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.484000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] EE9999: Internal error!
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.484000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] EE9999[PID: 39343] 2026-11-24-06:39:52.484.305 (EE9999): rtStreamSynchronizeWithTimeout execution failed, reason=aicore exception[FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:76]
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.484000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582] TraceBack (most recent call last):
(Worker_TP0_EP0 pid=39343) [rank0]:W1124 06:39:52.484000 39343 site-packages/torch_npu/distributed/distributed_c10d.py:582]
[W1124 06:39:52.324928770 NPUStream.cpp:716] Warning: NPU warning, error code is 507015[Error]:
[Error]: The aicore execution is abnormal.
Rectify the fault based on the error information in the ascend log.
EE9999: Internal error!
EE9999[PID: 39343] 2026-11-24-06:39:52.490.404 (EE9999): rtDeviceSynchronizeWithTimeout execution failed, reason=aicore exception[FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:76]
TraceBack (most recent call last):
(function npuSynchronizeDevice)
[W1124 06:39:52.326351400 NPUStream.cpp:716] Warning: NPU warning, error code is 507015[Error]:
[Error]: The aicore execution is abnormal.
Rectify the fault based on the error information in the ascend log.
EE9999: Internal error!
EE9999[PID: 39343] 2026-11-24-06:39:52.491.940 (EE9999): rtDeviceSynchronizeWithTimeout execution failed, reason=aicore exception[FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:76]
TraceBack (most recent call last):
(function npuSynchronizeDevice)
[W1124 06:39:52.376830730 Logger.cpp:75] Warning: Failed to generate log message. (function operator())
[E1124 06:39:52.376895400 ProcessGroupHCCL.cpp:2104] [Rank 0] HCCL watchdog thread terminated with exception:
[ERROR] 2026-11-24-06:39:52 (PID:39343, Device:0, RankID:-1) ERR02005 DIST internal error
terminate called after throwing an instance of 'std::runtime_error'
what(): [Rank 0] HCCL watchdog thread terminated with exception:
[ERROR] 2026-11-24-06:39:52 (PID:39343, Device:0, RankID:-1) ERR02005 DIST internal error
(APIServer pid=39298) INFO: Waiting for application shutdown.
(APIServer pid=39298) INFO: Application shutdown complete.
(APIServer pid=39298) INFO: Finished server process [39298]
(APIServer pid=39298) INFO 11-24 06:39:52 [core_client.py:744] [shutdown] MPClient: start timeout=0s
(APIServer pid=39298) INFO 11-24 06:39:52 [core_client.py:746] [shutdown] MPClient: stopping engine manager
(APIServer pid=39298) INFO 11-24 06:39:52 [utils.py:632] [shutdown] Process manager: send sigterm to process EngineCore
(APIServer pid=39298) WARNING 11-24 06:39:52 [utils.py:652] [shutdown] Process manager: force killing remaining processes count=1
(APIServer pid=39298) WARNING 11-24 06:39:52 [utils.py:657] [shutdown] Process manager: force killing remaining process EngineCore pid 39324
(APIServer pid=39298) INFO 11-24 06:39:52 [core_client.py:748] [shutdown] MPClient: engine manager stopped
(APIServer pid=39298) INFO 11-24 06:39:52 [core_client.py:749] [shutdown] MPClient: cleaning up background resources
(APIServer pid=39298) INFO 11-24 06:39:52 [core_client.py:751] [shutdown] MPClient: complete
/usr/local/python3.12.16/lib/python3.12/multiprocessing/resource_tracker.py:279: UserWarning: resource_tracker: There appear to be 15 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
/usr/local/python3.12.16/lib/python3.12/multiprocessing/resource_tracker.py:279: UserWarning: resource_tracker: There appear to be 18 leaked shared_memory objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '

前置检查

  • 我已读懂主页文档的快速入门,无法解决问题
  • 我已检索过FAQ,无重复问题
  • 我已搜索过现有Issue,无重复问题
  • 我已更新到最新版本,问题仍存在

Activity

  1. added
    bug
    on Nov 24, 2026
  2. github-actions commented on Nov 24, 2026

    @github-actions

    🌟 Welcome to file an issue for the AISBench benchmark tool. You can try the following ways to find solutions to your issue:

    1. [Strongly recommended❤️‍🔥]Ensure your issue description is complete, then try to ask Ask DeepWiki for help, as deepwiki contains all the knowledge related to the tool
    2. Search for similar issues in the tool's historical issues using key log fragments or keywords
    3. Search in the official documentation search bar using key log fragments or keywords
    4. Seek help from repository maintainers (mention @SJTUyh in the issue comment)
  3. github-actions commented on Nov 24, 2026

    @github-actions

    🤖 基于AI机器人的issue内容完整性检查结果:

    问题内容检查结果

    检查状态

    PASS

    详细检查

    • 操作系统及版本: COMPLETE
    • 安装工具的python环境: COMPLETE
    • python版本: COMPLETE
    • AISBench工具版本: COMPLETE
    • AISBench执行命令: COMPLETE
    • 模型配置文件或自定义配置文件内容: COMPLETE
    • 实际行为: COMPLETE

    改进建议

    所有内容已完备!

    补充说明

    Issue 中包含了一个名为“预期行为”的章节,但其内容为 _No response_。虽然此章节不在您提供的“Required Sections (zh)”列表中,但在提交 Bug 类问题时,清晰地描述预期行为通常有助于问题的诊断和解决。建议未来在提交问题时,即使该章节不是强制要求,也尽量填写具体内容。

    👉 如果想重新检查,在评论区@issue_checker即可。

    【强烈推荐❤️‍🔥】确保issue描述完整后,可以试着将issue交给Ask DeepWiki回答,deepwiki包含了和工具相关的所有知识库

  4. added
    content_check_passed
    on Nov 24, 2026
  5. github-actions commented on Nov 24, 2026

    @github-actions

    🤖 基于AI机器人的issue内容完整性检查结果:

    问题内容检查结果

    检查状态

    PASS

    详细检查

    • 操作系统及版本: COMPLETE
    • 安装工具的python环境: COMPLETE
    • python版本: COMPLETE
    • AISBench工具版本: COMPLETE
    • AISBench执行命令: COMPLETE
    • 模型配置文件或自定义配置文件内容: COMPLETE
    • 实际行为: COMPLETE

    改进建议

    所有内容已完备!

    补充说明

    该Issue内容完整,提供了所有必需的信息,包括详细的系统环境、工具版本、执行命令、配置文件以及完整的错误日志,有助于问题的诊断。

    👉 如果想重新检查,在评论区@issue_checker即可。

    【强烈推荐❤️‍🔥】确保issue描述完整后,可以试着将issue交给Ask DeepWiki回答,deepwiki包含了和工具相关的所有知识库

  6. jschen069 commented on Nov 25, 2026

    @jschen069
    Collaborator

    从日志中看,这次崩溃发生在 warmup 阶段,还没有进入 AISBench 正式性能压测。

    日志中的第一条 /v1/completions 200 是 precheck 探针;reset 返回 404 后,由于配置了 assume_empty_cache=true,流程会继续进入 warmup。随后只有一条 Running: 1 的请求,该请求最终返回 500,因此不是正式压测的并发请求导致。

    这条 warmup 请求比较长。warmup 模式会为每个 Group、每个 DP rank 构造一条“组内最大共享前缀 + 唯一 seed”的请求,用于预先建立后续请求可复用的 Prefix Cache。当前配置了:

    • input_length.max=262144
    • target_hit_rate=0.90
    • seed_blocks=1
    • block_size=128

    崩溃时的 SchedulerOutput 也证明请求仍在超长 prompt 的 chunked prefill 阶段:

    • num_computed_tokens=160000
    • 当前调度 5248 tokens
    • num_output_tokens=0

    也就是说,尚未进入正常 decode,更不是 MTP 草稿 token 验收错误。

    真正的致命错误是设备侧异常:

    • MTE accesses an invalid GM address or the cross-device memory access times out
    • Page fault info
    • aicore exception
    • mc2_exception_info_MegaMoe...

    随后 aclrtSynchronizeEvent 检测到算子失败,Worker 和 EngineCore 退出,API Server 才向当前请求返回 HTTP 500。后面的 HCCL、stream synchronize 和进程清理错误主要是连锁反应,不是最上游根因。

    结合“相同场景关闭 MTP 可以运行、开启 MTP 后崩溃”的对照结果,目前分析判断是:

    MTP 开启后的引擎执行路径,在超长 chunked prefill 和当前 GLM MoE/MegaMoe 环境下触发了设备侧算子异常。

    prefix_cache 插件本身不设置或控制 MTP,因此这不像是 AISBench 请求构造或正式压测并发导致的问题。不过,仅根据当前日志还不能进一步确定具体是哪一段 MTP 或 MegaMoe 代码存在缺陷,需要引擎侧结合 dump 继续定位。

    建议先采用以下规避方式:

    1. 如果目标是测试 Prefix Cache 基准命中率,先关闭 MTP,避免把投机解码路径引入该基准。
    2. 如果必须开启 MTP,可以先降低 requests.input_length.max,例如从 131072 开始验证,再通过二分方式寻找当前环境的稳定长度。131072 只是规避起点,不是已确认的稳定边界。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcontent_check_passedwait for reply

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions