Skip to content

[quant][autoround]Refactor INC quantization into package with INCScheme orchestrator - #40601

Merged
jikunshang merged 59 commits into
vllm-project:mainfrom
yiliu30:inc-refactor
Jun 17, 2026
Merged

jikunshang merged 59 commits into
vllm-project:mainfrom
yiliu30:inc-refactor

Conversation

@yiliu30

@yiliu30 yiliu30 commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

Follow the compressed-tensor style by replacing the monolithic inc.py with an inc/ package that uses scheme-based dispatch, paving the way for adding more schemes in the near future.

Part of #37979

Test Plan

pytest -svv ./test/quantization/test_auto_round.py

Local test models

  • Qwen3-30B-A3B-Instruct-2507-W4A16
  • Qwen3-32B-W4A16
  • Qwen3-Next-80B-A3B-Instruct-W4A16

cc @hshen14 @thuang6

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@mergify

mergify Bot commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Hi @yiliu30, the pre-commit checks have failed. Please run:

uv pip install pre-commit>=4.5.1
pre-commit install
pre-commit run --all-files

Then, commit the changes and push to your branch.

For future commits, pre-commit will run automatically on changed files before each commit.

Tip

Is mypy failing?
mypy is run differently in CI. If the failure is related to this check, please use the following command to run it locally:
# For mypy (substitute "3.10" with the failing version if needed)
pre-commit run --hook-stage manual mypy-3.10

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the Intel Neural Compressor (INC) quantization support into a modular, scheme-based architecture. It introduces a new directory structure, a configuration resolver, and a dispatch system for different quantization schemes like WNA16 across CPU and XPU platforms. Feedback focuses on correcting the handling of unquantized or unsupported FusedMoE layers, which currently return incompatible methods or None, potentially leading to runtime errors.

Comment thread vllm/model_executor/layers/quantization/inc/inc.py
Comment thread vllm/model_executor/layers/quantization/inc/inc.py
Comment thread vllm/model_executor/layers/quantization/inc/schemes/wna16.py Outdated
Comment thread tests/quantization/test_inc.py Outdated
@yiliu30

yiliu30 commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Hi @jikunshang @xinyu-intel @wenhuach21 @Zhenzhong1 please take a look when you have time, thanks!

@yiliu30

yiliu30 commented Apr 22, 2026

Copy link
Copy Markdown
Contributor Author

@claude review

@mergify

mergify Bot commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Hi @yiliu30, the pre-commit checks have failed. Please run:

uv pip install pre-commit>=4.5.1
pre-commit install
pre-commit run --all-files

Then, commit the changes and push to your branch.

For future commits, pre-commit will run automatically on changed files before each commit.

Tip

Is mypy failing?
mypy is run differently in CI. If the failure is related to this check, please use the following command to run it locally:
# For mypy (substitute "3.10" with the failing version if needed)
pre-commit run --hook-stage manual mypy-3.10

2 similar comments
@mergify

mergify Bot commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Hi @yiliu30, the pre-commit checks have failed. Please run:

uv pip install pre-commit>=4.5.1
pre-commit install
pre-commit run --all-files

Then, commit the changes and push to your branch.

For future commits, pre-commit will run automatically on changed files before each commit.

Tip

Is mypy failing?
mypy is run differently in CI. If the failure is related to this check, please use the following command to run it locally:
# For mypy (substitute "3.10" with the failing version if needed)
pre-commit run --hook-stage manual mypy-3.10

@mergify

mergify Bot commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Hi @yiliu30, the pre-commit checks have failed. Please run:

uv pip install pre-commit>=4.5.1
pre-commit install
pre-commit run --all-files

Then, commit the changes and push to your branch.

For future commits, pre-commit will run automatically on changed files before each commit.

Tip

Is mypy failing?
mypy is run differently in CI. If the failure is related to this check, please use the following command to run it locally:
# For mypy (substitute "3.10" with the failing version if needed)
pre-commit run --hook-stage manual mypy-3.10

@yiliu30 yiliu30 changed the title Refactor INC quantization into package with INCScheme orchestrator [quant][autoround]Refactor INC quantization into package with INCScheme orchestrator Apr 30, 2026
@jikunshang jikunshang added intel-gpu Related to Intel GPU ready ONLY add when PR is ready to merge/full CI is needed labels May 9, 2026
Zhenzhong1 and others added 11 commits June 10, 2026 10:44
Signed-off-by: Zhenzhong Xu <zhenzhong.xu@intel.com>
Signed-off-by: yiliu30 <yi4.liu@intel.com>
Signed-off-by: yiliu30 <yi4.liu@intel.com>
Signed-off-by: yiliu30 <yi4.liu@intel.com>
Signed-off-by: yiliu30 <yi4.liu@intel.com>
@yiliu30

yiliu30 commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

still fail. failed case maybe legacy issue. it's added by inc team. please fix on your side first. thanks.

Sorry for the delayed response. We're currently narrowing down the issue and will get back to you with an update later.

Hi @jikunshang, the issue has been resolved by upgrading the auto-round-lib — thanks for your patience! Please take a look again when you get a chance.

Comment thread tests/quantization/test_auto_round.py Outdated
@@ -25,8 +48,720 @@

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'd better change it here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, updated!

yiliu30 added 2 commits June 17, 2026 08:15
Signed-off-by: yiliu30 <yi4.liu@intel.com>
@urakozz

urakozz commented Jun 17, 2026

Copy link
Copy Markdown

I'm exterimenting with main branches (because i've got Intel Arc B70 and it's my only option to build everything from master) and after this PR vllm is failing here vllm/model_executor/layers/quantization/inc/schemes/inc_wna16_linear.py

command I use to run is following

docker run --rm -it      --device /dev/dri      --group-add "$(getent group render | cut -d: -f3)"      --ipc=host      --net=host      -e VLLM_XPU_ENABLE_docker run --rm -it      --device /dev/dri      --group-add "$(getent group render | cut -d: -f3)"      --ipc=host      --net=host      -e VLLM_XPU_ENABLE_XPU_GRAPH=1   -v ~/.cache/vllm:/root/.cache/vllm   -v ~/.cache/huggingface:/root/.cache/huggingface      vllm-xpu-env      Intel/Qwen3.6-27B-int4-AutoRound      --served-model-name qwen      --host 0.0.0.0 --port 8000      --tensor-parallel-size 1      --max-model-len 16000      --kv-cache-dtype turboquant_k8v4       --max-num-seqs 4      --reasoning-parser qwen3      --enable-auto-tool-choice --tool-call-parser qwen3_coder --language-model-only
=1   -v ~/.cache/vllm:/root/.cache/vllm   -v ~/.cache/huggingface:/root/.cache/huggingface      vllm-xpu-env      Intel/Qwen3.6-27B-int4-AutoRound      --served-model-name qwen      --host 0.0.0.0 --port 8000      --tensor-parallel-size 1      --max-model-len 16000      --kv-cache-dtype turboquant_k8v4       --max-num-seqs 1      --reasoning-parser qwen3      --enable-auto-tool-choice --tool-call-parser qwen3_coder --language-model-only

with and without XPU_GRAPH, with cache fp8 and turboquant_k8v4

I understand it's rc-dev so I have zero expectations, just wanted to share some data and experience

(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229] 
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229] from user code:
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]    File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_next.py", line 574, in forward
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]     hidden_states, residual = layer(
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_next.py", line 464, in forward
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]     self.linear_attn(
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/mamba/gdn/qwen_gdn_linear_attn.py", line 849, in forward
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]     self._forward_method(hidden_states, output)
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/mamba/gdn/qwen_gdn_linear_attn.py", line 985, in forward_xpu
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]     projected_states_qkvz, _ = self.in_proj_qkvz(hidden_states)
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/linear.py", line 555, in forward
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]     output_parallel = self.quant_method.apply(self, input_, bias)
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/quantization/inc/inc_linear.py", line 47, in apply
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]     return self.scheme.apply_weights(layer, x, bias)
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/quantization/inc/schemes/inc_wna16_linear.py", line 395, in apply_weights
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]     return layer.ark_linear.forward(x)
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/auto_round_kernel/qlinear.py", line 249, in forward
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]     outputs = ark.woqgemm(
(EngineCore pid=243) ERROR 06-17 17:02:44 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/auto_round_kernel/__init__.py", line 304, in woqgemm

@yiliu30

yiliu30 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Hi @urakozz, thanks for raising this issue. Could you please check the auto-round-lib version? This requires auto_round_lib >= 0.13.3.
If the issue still happens after upgrading, could you please attach the full log so we can take a closer look? Thanks!

@wenhuach21

Copy link
Copy Markdown
Contributor

Hi @urakozz, thanks for raising this issue. Could you please check the auto-round-lib version? This requires auto_round_lib >= 0.13.3. If the issue still happens after upgrading, could you please attach the full log so we can take a closer look? Thanks!

I don't see any version check in the code. If that's the case, we should add one.

@urakozz

urakozz commented Jun 18, 2026 •

Copy link
Copy Markdown

Hi @urakozz, thanks for raising this issue. Could you please check the auto-round-lib version? This requires auto_round_lib >= 0.13.3. If the issue still happens after upgrading, could you please attach the full log so we can take a closer look? Thanks!

in requirements/xpu.txt it's auto_round_lib>=0.13.0 - i didn't modifiy it. i was building main branch commit by commit and on this refactoring it decided to fail. Build command: docker build -f docker/Dockerfile.xpu -t vllm-xpu-env-kernels010-ze130 --shm-size=4g (docs are missing docker/ folder btw)

UPD: i just noticed that it's about patch version .3, will try with auto_round_lib>=0.13.3 now

full log:

sudo docker run --rm -it      --device /dev/dri      --group-add "$(getent group render | cut -d: -f3)"      --ipc=host      --net=host      -e VLLM_XPU_ENABLE_XPU_GRAPH=1   -v ~/.cache/vllm:/root/.cache/vllm   -v ~/.cache/huggingface:/root/.cache/huggingface      vllm-xpu-env      Intel/Qwen3.6-27B-int4-AutoRound      --served-model-name qwen      --host 0.0.0.0 --port 8000      --tensor-parallel-size 1      --max-model-len 10000      --kv-cache-dtype turboquant_k8v4       --max-num-seqs 4      --reasoning-parser qwen3      --enable-auto-tool-choice --tool-call-parser qwen3_coder --language-model-only
[sudo: authenticate] Password:    
(APIServer pid=1) INFO 06-17 16:57:05 [api_utils.py:339] 
(APIServer pid=1) INFO 06-17 16:57:05 [api_utils.py:339]        █     █     █▄   ▄█
(APIServer pid=1) INFO 06-17 16:57:05 [api_utils.py:339]  ▄▄ ▄█ █     █     █ ▀▄▀ █  version 0.23.1rc1.dev128+g9c7c74bf1.d20260617
(APIServer pid=1) INFO 06-17 16:57:05 [api_utils.py:339]   █▄█▀ █     █     █     █  model   Intel/Qwen3.6-27B-int4-AutoRound
(APIServer pid=1) INFO 06-17 16:57:05 [api_utils.py:339]    ▀▀  ▀▀▀▀▀ ▀▀▀▀▀ ▀     ▀
(APIServer pid=1) INFO 06-17 16:57:05 [api_utils.py:339] 
(APIServer pid=1) INFO 06-17 16:57:05 [api_utils.py:273] non-default args: {'model_tag': 'Intel/Qwen3.6-27B-int4-AutoRound', 'enable_auto_tool_choice': True, 'tool_call_parser': 'qwen3_coder', 'host': '0.0.0.0', 'model': 'Intel/Qwen3.6-27B-int4-AutoRound', 'max_model_len': 16000, 'served_model_name': ['qwen'], 'reasoning_parser': 'qwen3', 'kv_cache_dtype': 'turboquant_k8v4', 'language_model_only': True, 'max_num_seqs': 4}
(APIServer pid=1) Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.
(APIServer pid=1) INFO 06-17 16:57:06 [model.py:598] Resolved architecture: Qwen3_5ForConditionalGeneration
(APIServer pid=1) INFO 06-17 16:57:06 [model.py:1723] Using max model len 16000
(APIServer pid=1) INFO 06-17 16:57:08 [config.py:201] TQ hybrid: full-attention layers [3, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 63]
(APIServer pid=1) WARNING 06-17 16:57:08 [arg_utils.py:2140] TurboQuant is not yet compatible with FlashAttention >= 3. Overriding flash_attn_version to 2. To silence this warning, pass --attention-config.flash_attn_version=2
(APIServer pid=1) INFO 06-17 16:57:08 [vllm.py:1009] Asynchronous scheduling is enabled.
(APIServer pid=1) INFO 06-17 16:57:08 [kernel.py:274] Final IR op priority after setting platform defaults: IrOpPriorityConfig(rms_norm=['native'], fused_add_rms_norm=['native'])
(APIServer pid=1) INFO 06-17 16:57:30 [registry.py:134] All limits of multimodal modalities supported by the model are set to 0, running in text-only mode.
(EngineCore pid=242) INFO 06-17 16:57:42 [core.py:114] Initializing a V1 LLM engine (v0.23.1rc1.dev128+g9c7c74bf1.d20260617) with config: model='Intel/Qwen3.6-27B-int4-AutoRound', speculative_config=None, tokenizer='Intel/Qwen3.6-27B-int4-AutoRound', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.bfloat16, max_seq_len=16000, download_dir=None, load_format=auto, tensor_parallel_size=1, pipeline_parallel_size=1, data_parallel_size=1, decode_context_parallel_size=1, dcp_comm_backend=ag_rs, disable_custom_all_reduce=True, quantization=inc, quantization_config=None, enforce_eager=False, enable_return_routed_experts=False, kv_cache_dtype=turboquant_k8v4, device_config=xpu, structured_outputs_config=StructuredOutputsConfig(backend='auto', disable_any_whitespace=False, disable_additional_properties=False, reasoning_parser='qwen3', reasoning_parser_plugin='', enable_in_reasoning=False), observability_config=ObservabilityConfig(show_hidden_metrics_for_version=None, otlp_traces_endpoint=None, collect_detailed_traces=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_verbose=False), seed=0, served_model_name=qwen, enable_prefix_caching=False, enable_chunked_prefill=True, pooler_config=None, compilation_config={'mode': <CompilationMode.VLLM_COMPILE: 3>, 'debug_dump_path': None, 'cache_dir': '', 'compile_cache_save_format': 'binary', 'backend': 'inductor', 'custom_ops': ['none'], 'ir_enable_torch_wrap': True, 'splitting_ops': ['vllm::unified_attention_with_output', 'vllm::unified_mla_attention_with_output', 'vllm::mamba_mixer2', 'vllm::mamba_mixer', 'vllm::short_conv', 'vllm::linear_attention', 'vllm::plamo2_mamba_mixer', 'vllm::qwen_gdn_attention_core', 'vllm::gdn_attention_core_xpu', 'vllm::olmo_hybrid_gdn_full_forward', 'vllm::kda_attention', 'vllm::sparse_attn_indexer', 'vllm::rocm_aiter_sparse_attn_indexer', 'vllm::deepseek_v4_attention', 'vllm::unified_kv_cache_update', 'vllm::unified_mla_kv_cache_update'], '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': [2048], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'combo_kernels': True, 'benchmark_combo_kernel': True}, 'inductor_passes': {}, 'cudagraph_mode': <CUDAGraphMode.FULL_AND_PIECEWISE: (2, 1)>, 'cudagraph_num_of_warmups': 1, 'cudagraph_capture_sizes': [1, 2, 4, 8], 'cudagraph_copy_inputs': False, 'cudagraph_specialize_lora': True, 'use_inductor_graph_partition': False, 'pass_config': {'fuse_norm_quant': False, 'fuse_act_quant': False, 'fuse_attn_quant': False, 'enable_sp': False, 'fuse_gemm_comms': False, 'fuse_allreduce_rms': False, 'fuse_rope_kvcache_cat_mla': False, 'fuse_act_padding': False}, 'max_cudagraph_capture_size': 8, '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']), enable_flashinfer_autotune=True, moe_backend='auto', linear_backend='auto')
(EngineCore pid=242) Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.
(EngineCore pid=242) INFO 06-17 16:57:47 [registry.py:134] All limits of multimodal modalities supported by the model are set to 0, running in text-only mode.
(EngineCore pid=242) INFO 06-17 16:57:47 [parallel_state.py:1568] world_size=1 rank=0 local_rank=0 distributed_init_method=tcp://192.168.86.36:60771 backend=xccl
(EngineCore pid=242) INFO 06-17 16:57:47 [parallel_state.py:1903] rank 0 in world size 1 is assigned as DP rank 0, PP rank 0, PCP rank 0, TP rank 0, EP rank N/A, EPLB rank N/A
2026:06:17-16:57:47:  242 |CCL_WARN| value of CCL_ATL_TRANSPORT changed to be ofi (default:mpi)
2026:06:17-16:57:47:  242 |CCL_WARN| could not get local_idx/count from environment variables, trying to get them from ATL
2026:06:17-16:57:48:  412:[0] |CCL_WARN| no membind support for NUMA node 0, skip thread membind
(EngineCore pid=242) INFO 06-17 16:57:49 [gpu_model_runner.py:5148] Starting to load model Intel/Qwen3.6-27B-int4-AutoRound...
(EngineCore pid=242) INFO 06-17 16:57:49 [xpu.py:129] Using backend AttentionBackendEnum.FLASH_ATTN for vit attention
(EngineCore pid=242) INFO 06-17 16:57:49 [mm_encoder_attention.py:372] Using AttentionBackendEnum.FLASH_ATTN for MMEncoderAttention.
(EngineCore pid=242) INFO 06-17 16:57:49 [inc_wna16_linear.py:39] Successfully imported auto_round_kernel.
(EngineCore pid=242) INFO 06-17 16:57:49 [inc_wna16_linear.py:50] Successfully loaded auto_round_kernel backend library.
(EngineCore pid=242) INFO 06-17 16:57:49 [qwen_gdn_linear_attn.py:228] Using Triton/FLA GDN prefill kernel (requested=auto, head_k_dim=128).
(EngineCore pid=242) INFO 06-17 16:57:50 [xpu.py:59] Setting VLLM_KV_CACHE_LAYOUT to 'NHD' for XPU; only NHD layout is supported by XPU attention kernels.
(EngineCore pid=242) INFO 06-17 16:57:50 [xpu.py:67] Using TurboQuant attention backend.
(EngineCore pid=242) INFO 06-17 16:57:52 [weight_utils.py:849] Filesystem type for checkpoints: EXT4. Checkpoint size: 17.69 GiB. Available RAM: 107.61 GiB.
(EngineCore pid=242) INFO 06-17 16:57:52 [weight_utils.py:872] Auto-prefetch is disabled because the filesystem (EXT4) is not a recognized network FS (NFS/Lustre). If you want to force prefetching, start vLLM with --safetensors-load-strategy=prefetch.
Loading safetensors checkpoint shards:   0% Completed | 0/11 [00:00<?, ?it/s]
Loading safetensors checkpoint shards:   9% Completed | 1/11 [00:00<00:05,  1.87it/s]
Loading safetensors checkpoint shards:  18% Completed | 2/11 [00:00<00:04,  2.24it/s]
Loading safetensors checkpoint shards:  27% Completed | 3/11 [00:01<00:03,  2.39it/s]
Loading safetensors checkpoint shards:  36% Completed | 4/11 [00:01<00:02,  2.47it/s]
Loading safetensors checkpoint shards:  45% Completed | 5/11 [00:02<00:02,  2.51it/s]
Loading safetensors checkpoint shards:  55% Completed | 6/11 [00:02<00:01,  2.59it/s]
Loading safetensors checkpoint shards:  73% Completed | 8/11 [00:05<00:02,  1.08it/s]
Loading safetensors checkpoint shards:  82% Completed | 9/11 [00:05<00:01,  1.39it/s]
Loading safetensors checkpoint shards:  91% Completed | 10/11 [00:09<00:01,  1.61s/it]
Loading safetensors checkpoint shards: 100% Completed | 11/11 [00:09<00:00,  1.16it/s]
(EngineCore pid=242) 
(EngineCore pid=242) INFO 06-17 16:58:02 [default_loader.py:397] Loading weights took 9.70 seconds
(EngineCore pid=242) INFO 06-17 16:58:07 [gpu_model_runner.py:5243] Model loading took 16.63 GiB memory and 17.277314 seconds
(EngineCore pid=242) INFO 06-17 16:58:07 [interface.py:672] Setting attention block size to 2080 tokens to ensure that attention page size is >= mamba page size.
(EngineCore pid=242) INFO 06-17 16:58:07 [interface.py:696] Padding mamba page size by 0.65% to ensure that mamba page size and attention page size are exactly equal.
(EngineCore pid=242) INFO 06-17 16:58:07 [xpu.py:287] [XPU]Setting attention block size to 2112 tokens to ensure multiple of 64, set mamba_page_size_padded to 3277824 bytes accordingly, before was 3228160 bytes.
(EngineCore pid=242) /opt/venv/lib/python3.12/site-packages/torch/_dynamo/variables/functions.py:2311: UserWarning: Dynamo does not know how to trace the builtin `auto_round_kernel.auto_round_kernel_xpu.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1.woqgemm.` This function is either a Python builtin (e.g. _warnings.warn) or a third-party C/C++ Python extension (perhaps created with pybind).
(EngineCore pid=242) If it is a Python builtin, please file an issue on GitHub so the PyTorch team can add support for it and see the next case for a workaround.
(EngineCore pid=242) If it is a third-party C/C++ Python extension, please either wrap it into a PyTorch-understood custom operator (see https://pytorch.org/tutorials/advanced/custom_ops_landing_page.html for more details) or, if it is traceable, use `torch.compiler.allow_in_graph`.
(EngineCore pid=242)   torch._dynamo.utils.warn_once(explanation + "\n" + "\n".join(hints))
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229] EngineCore failed to start.
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229] Traceback (most recent call last):
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1198, in run_engine_core
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     engine_core = EngineCoreProc(*args, engine_index=dp_rank, **kwargs)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     return func(*args, **kwargs)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 964, in __init__
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     super().__init__(
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 133, in __init__
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     kv_cache_config = self._initialize_kv_caches(vllm_config)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     return func(*args, **kwargs)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 283, in _initialize_kv_caches
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     available_gpu_memory = self.model_executor.determine_available_memory()
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/executor/abstract.py", line 147, in determine_available_memory
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     return self.collective_rpc("determine_available_memory")
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 92, in collective_rpc
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     return func(*args, **kwargs)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     return func(*args, **kwargs)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 410, in determine_available_memory
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     self.model_runner.profile_run()
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 6287, in profile_run
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     hidden_states, last_hidden_states = self._dummy_run(
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]                                         ^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     return func(*args, **kwargs)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5947, in _dummy_run
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     outputs = self.model(
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]               ^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/compilation/cuda_graph.py", line 254, in __call__
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     return self.runnable(*args, **kwargs)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1778, in _wrapped_call_impl
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     return self._call_impl(*args, **kwargs)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1789, in _call_impl
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     return forward_call(*args, **kwargs)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_5.py", line 671, in forward
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     hidden_states = self.language_model.model(
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]                     ^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/compilation/decorators.py", line 663, in __call__
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     self.aot_compiled_fn = self.aot_compile(*args, **kwargs)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/compilation/wrapper.py", line 169, in aot_compile
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     return self._compiled_callable.aot_compile((args, kwargs))
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/torch/_dynamo/eval_frame.py", line 868, in aot_compile
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     return aot_compile_fullgraph(
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]            ^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/torch/_dynamo/aot_compile.py", line 340, in aot_compile_fullgraph
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     capture_output = convert_frame.fullgraph_capture(model, args, kwargs)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/torch/_dynamo/convert_frame.py", line 1322, in fullgraph_capture
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     return _fullgraph_capture_frame(
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]            ^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/torch/_dynamo/convert_frame.py", line 1388, in _fullgraph_capture_frame
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     raise e.with_traceback(None) from e.__cause__  # User compiler error
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229] torch._dynamo.exc.Unsupported: Attempted to call function marked as skipped
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   Explanation: Dynamo does not know how to trace the builtin `auto_round_kernel.auto_round_kernel_xpu.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1.woqgemm.` This function is either a Python builtin (e.g. _warnings.warn) or a third-party C/C++ Python extension (perhaps created with pybind).
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   Hint: If it is a Python builtin, please file an issue on GitHub so the PyTorch team can add support for it and see the next case for a workaround.
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   Hint: If it is a third-party C/C++ Python extension, please either wrap it into a PyTorch-understood custom operator (see https://pytorch.org/tutorials/advanced/custom_ops_landing_page.html for more details) or, if it is traceable, use `torch.compiler.allow_in_graph`.
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229] 
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   Developer debug context: module: auto_round_kernel.auto_round_kernel_xpu, qualname: pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1.woqgemm, skip reason: cannot determine source file for auto_round_kernel.auto_round_kernel_xpu (likely a C extension or builtin)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229] 
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]  For more details about this graph break, please visit: https://meta-pytorch.github.io/compile-graph-break-site/gb/gb0007.html
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229] 
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229] from user code:
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]    File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_next.py", line 574, in forward
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     hidden_states, residual = layer(
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_next.py", line 464, in forward
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     self.linear_attn(
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/mamba/gdn/qwen_gdn_linear_attn.py", line 849, in forward
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     self._forward_method(hidden_states, output)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/mamba/gdn/qwen_gdn_linear_attn.py", line 985, in forward_xpu
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     projected_states_qkvz, _ = self.in_proj_qkvz(hidden_states)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/linear.py", line 555, in forward
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     output_parallel = self.quant_method.apply(self, input_, bias)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/quantization/inc/inc_linear.py", line 47, in apply
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     return self.scheme.apply_weights(layer, x, bias)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/quantization/inc/schemes/inc_wna16_linear.py", line 395, in apply_weights
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     return layer.ark_linear.forward(x)
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/auto_round_kernel/qlinear.py", line 249, in forward
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     outputs = ark.woqgemm(
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]   File "/opt/venv/lib/python3.12/site-packages/auto_round_kernel/__init__.py", line 304, in woqgemm
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229]     lib.woqgemm(
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229] 
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229] Set TORCHDYNAMO_VERBOSE=1 for the internal stack trace (please do this especially if you're reporting a bug to PyTorch). For even more developer context, set TORCH_LOGS="+dynamo"
(EngineCore pid=242) ERROR 06-17 16:58:11 [core.py:1229] 
(EngineCore pid=242) Process EngineCore:
(EngineCore pid=242) Traceback (most recent call last):
(EngineCore pid=242)   File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
(EngineCore pid=242)     self.run()
(EngineCore pid=242)   File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
(EngineCore pid=242)     self._target(*self._args, **self._kwargs)
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1233, in run_engine_core
(EngineCore pid=242)     raise e
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1198, in run_engine_core
(EngineCore pid=242)     engine_core = EngineCoreProc(*args, engine_index=dp_rank, **kwargs)
(EngineCore pid=242)                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=242)     return func(*args, **kwargs)
(EngineCore pid=242)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 964, in __init__
(EngineCore pid=242)     super().__init__(
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 133, in __init__
(EngineCore pid=242)     kv_cache_config = self._initialize_kv_caches(vllm_config)
(EngineCore pid=242)                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(EngineCore pid=242)     return func(*args, **kwargs)
(EngineCore pid=242)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 283, in _initialize_kv_caches
(EngineCore pid=242)     available_gpu_memory = self.model_executor.determine_available_memory()
(EngineCore pid=242)                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/executor/abstract.py", line 147, in determine_available_memory
(EngineCore pid=242)     return self.collective_rpc("determine_available_memory")
(EngineCore pid=242)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 92, in collective_rpc
(EngineCore pid=242)     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=242)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=242)     return func(*args, **kwargs)
(EngineCore pid=242)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=242)     return func(*args, **kwargs)
(EngineCore pid=242)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 410, in determine_available_memory
(EngineCore pid=242)     self.model_runner.profile_run()
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 6287, in profile_run
(EngineCore pid=242)     hidden_states, last_hidden_states = self._dummy_run(
(EngineCore pid=242)                                         ^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=242)     return func(*args, **kwargs)
(EngineCore pid=242)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5947, in _dummy_run
(EngineCore pid=242)     outputs = self.model(
(EngineCore pid=242)               ^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/compilation/cuda_graph.py", line 254, in __call__
(EngineCore pid=242)     return self.runnable(*args, **kwargs)
(EngineCore pid=242)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1778, in _wrapped_call_impl
(EngineCore pid=242)     return self._call_impl(*args, **kwargs)
(EngineCore pid=242)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1789, in _call_impl
(EngineCore pid=242)     return forward_call(*args, **kwargs)
(EngineCore pid=242)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_5.py", line 671, in forward
(EngineCore pid=242)     hidden_states = self.language_model.model(
(EngineCore pid=242)                     ^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/compilation/decorators.py", line 663, in __call__
(EngineCore pid=242)     self.aot_compiled_fn = self.aot_compile(*args, **kwargs)
(EngineCore pid=242)                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/compilation/wrapper.py", line 169, in aot_compile
(EngineCore pid=242)     return self._compiled_callable.aot_compile((args, kwargs))
(EngineCore pid=242)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/torch/_dynamo/eval_frame.py", line 868, in aot_compile
(EngineCore pid=242)     return aot_compile_fullgraph(
(EngineCore pid=242)            ^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/torch/_dynamo/aot_compile.py", line 340, in aot_compile_fullgraph
(EngineCore pid=242)     capture_output = convert_frame.fullgraph_capture(model, args, kwargs)
(EngineCore pid=242)                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/torch/_dynamo/convert_frame.py", line 1322, in fullgraph_capture
(EngineCore pid=242)     return _fullgraph_capture_frame(
(EngineCore pid=242)            ^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/torch/_dynamo/convert_frame.py", line 1388, in _fullgraph_capture_frame
(EngineCore pid=242)     raise e.with_traceback(None) from e.__cause__  # User compiler error
(EngineCore pid=242)     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=242) torch._dynamo.exc.Unsupported: Attempted to call function marked as skipped
(EngineCore pid=242)   Explanation: Dynamo does not know how to trace the builtin `auto_round_kernel.auto_round_kernel_xpu.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1.woqgemm.` This function is either a Python builtin (e.g. _warnings.warn) or a third-party C/C++ Python extension (perhaps created with pybind).
(EngineCore pid=242)   Hint: If it is a Python builtin, please file an issue on GitHub so the PyTorch team can add support for it and see the next case for a workaround.
(EngineCore pid=242)   Hint: If it is a third-party C/C++ Python extension, please either wrap it into a PyTorch-understood custom operator (see https://pytorch.org/tutorials/advanced/custom_ops_landing_page.html for more details) or, if it is traceable, use `torch.compiler.allow_in_graph`.
(EngineCore pid=242) 
(EngineCore pid=242)   Developer debug context: module: auto_round_kernel.auto_round_kernel_xpu, qualname: pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1.woqgemm, skip reason: cannot determine source file for auto_round_kernel.auto_round_kernel_xpu (likely a C extension or builtin)
(EngineCore pid=242) 
(EngineCore pid=242)  For more details about this graph break, please visit: https://meta-pytorch.github.io/compile-graph-break-site/gb/gb0007.html
(EngineCore pid=242) 
(EngineCore pid=242) from user code:
(EngineCore pid=242)    File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_next.py", line 574, in forward
(EngineCore pid=242)     hidden_states, residual = layer(
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/models/qwen3_next.py", line 464, in forward
(EngineCore pid=242)     self.linear_attn(
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/mamba/gdn/qwen_gdn_linear_attn.py", line 849, in forward
(EngineCore pid=242)     self._forward_method(hidden_states, output)
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/mamba/gdn/qwen_gdn_linear_attn.py", line 985, in forward_xpu
(EngineCore pid=242)     projected_states_qkvz, _ = self.in_proj_qkvz(hidden_states)
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/linear.py", line 555, in forward
(EngineCore pid=242)     output_parallel = self.quant_method.apply(self, input_, bias)
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/quantization/inc/inc_linear.py", line 47, in apply
(EngineCore pid=242)     return self.scheme.apply_weights(layer, x, bias)
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/vllm/model_executor/layers/quantization/inc/schemes/inc_wna16_linear.py", line 395, in apply_weights
(EngineCore pid=242)     return layer.ark_linear.forward(x)
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/auto_round_kernel/qlinear.py", line 249, in forward
(EngineCore pid=242)     outputs = ark.woqgemm(
(EngineCore pid=242)   File "/opt/venv/lib/python3.12/site-packages/auto_round_kernel/__init__.py", line 304, in woqgemm
(EngineCore pid=242)     lib.woqgemm(
(EngineCore pid=242) 
(EngineCore pid=242) Set TORCHDYNAMO_VERBOSE=1 for the internal stack trace (please do this especially if you're reporting a bug to PyTorch). For even more developer context, set TORCH_LOGS="+dynamo"
(EngineCore pid=242) 
(APIServer pid=1) Traceback (most recent call last):
(APIServer pid=1)   File "/opt/venv/bin/vllm", line 10, in <module>
(APIServer pid=1)     sys.exit(main())
(APIServer pid=1)              ^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/entrypoints/cli/main.py", line 95, in main
(APIServer pid=1)     args.dispatch_function(args)
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/entrypoints/cli/serve.py", line 148, in cmd
(APIServer pid=1)     uvloop.run(run_server(args))
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/uvloop/__init__.py", line 96, in run
(APIServer pid=1)     return __asyncio.run(
(APIServer pid=1)            ^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
(APIServer pid=1)     return runner.run(main)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
(APIServer pid=1)     return self._loop.run_until_complete(task)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/uvloop/__init__.py", line 48, in wrapper
(APIServer pid=1)     return await main
(APIServer pid=1)            ^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 658, in run_server
(APIServer pid=1)     await run_server_worker(listen_address, sock, args, **uvicorn_kwargs)
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 672, in run_server_worker
(APIServer pid=1)     async with build_async_engine_client(
(APIServer pid=1)   File "/usr/lib/python3.12/contextlib.py", line 210, in __aenter__
(APIServer pid=1)     return await anext(self.gen)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 99, in build_async_engine_client
(APIServer pid=1)     async with build_async_engine_client_from_engine_args(
(APIServer pid=1)   File "/usr/lib/python3.12/contextlib.py", line 210, in __aenter__
(APIServer pid=1)     return await anext(self.gen)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 135, in build_async_engine_client_from_engine_args
(APIServer pid=1)     async_llm = AsyncLLM.from_vllm_config(
(APIServer pid=1)                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/async_llm.py", line 217, in from_vllm_config
(APIServer pid=1)     return cls(
(APIServer pid=1)            ^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/async_llm.py", line 146, in __init__
(APIServer pid=1)     self.engine_core = EngineCoreClient.make_async_mp_client(
(APIServer pid=1)                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(APIServer pid=1)     return func(*args, **kwargs)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core_client.py", line 132, in make_async_mp_client
(APIServer pid=1)     return AsyncMPClient(*client_args)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/tracing/otel.py", line 178, in sync_wrapper
(APIServer pid=1)     return func(*args, **kwargs)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core_client.py", line 963, in __init__
(APIServer pid=1)     super().__init__(
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/core_client.py", line 573, in __init__
(APIServer pid=1)     with launch_core_engines(
(APIServer pid=1)   File "/usr/lib/python3.12/contextlib.py", line 144, in __exit__
(APIServer pid=1)     next(self.gen)
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/utils.py", line 1190, in launch_core_engines
(APIServer pid=1)     wait_for_engine_startup(
(APIServer pid=1)   File "/opt/venv/lib/python3.12/site-packages/vllm/v1/engine/utils.py", line 1249, in wait_for_engine_startup
(APIServer pid=1)     raise RuntimeError(
(APIServer pid=1) RuntimeError: Engine core initialization failed. See root cause above. Failed core proc(s): {}

@yiliu30

yiliu30 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Hi @urakozz, thanks for providing the detailed log.

We recently added the new auto-round-lib WOQ kernel while keeping the previous vllm-xpu-kernels path. When auto-round-lib is installed, vLLM currently selects the auto-round-lib WOQ kernel by default.

From the log, it looks like the model is dispatched to the auto-round-lib kernel. This WOQ kernel + compile path is not fully supported yet, but we plan to make it compatible in the near future.

For now, you could try running with --enforce-eager as a workaround.

BTW, the latest auto-round-lib version is 0.13.4. Please use this version when working on B70.

@urakozz

urakozz commented Jun 18, 2026

Copy link
Copy Markdown

So, i have an update. I rebased onto the laterst master, updated auto-round-lib to 0.13.4 and it was still crashing. so what i did currently and it helps in my case:

vllm/model_executor/layers/quantization/inc/schemes/inc_wna16_scheme.py:46

I added flag to force use INCXPULinearMethod and it works perfectly in my experiments so far. I'm not sure if it's helpful though. Just mentioning that before refactoring it was working okay without me digging into the code 😆

if envs.VLLM_XPU_FORCE_NATIVE_INC:
    logger.info_once(
        "VLLM_XPU_FORCE_NATIVE_INC=1: using native XPU INC "
        "path instead of ARK for INC W4A16 layers."
    )
    return INCLinearMethod(INCXPULinearMethod(layer_config))

@yiliu30

yiliu30 commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Hi @urakozz we're working on enabling compile mode for ARK ops here: #46361

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/build cpu Related to CPU backends deepseek Related to DeepSeek models documentation Improvements or additions to documentation frontend intel-gpu Related to Intel GPU kv-connector llama Related to Llama models multi-modality Related to multi-modality (#4194) nvidia qwen Related to Qwen models ready ONLY add when PR is ready to merge/full CI is needed rocm Related to AMD ROCm v1

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants