vllm - 💡(How to fix) Fix [Bug]: vLLM + FlexAttention crashes with torch._dynamo.exc.InternalTorchDynamoError: AcceleratorError: CUDA error: misaligned address [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vllm-project/vllm#41257Fetched 2026-04-30 06:19:20
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
subscribed ×3mentioned ×2commented ×1labeled ×1

Error Message

(EngineCore pid=22349) ERROR 04-29 16:04:08 [logging_utils/dump_input.py:72] Dumping input data for V1 LLM engine (v0.20.0) with config: model='inferno-project/vllm-mixtral-2', speculative_config=None, tokenizer='inferno-project/vllm-mixtral-2', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.bfloat16, max_seq_len=131072, 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=False, quantization=None, quantization_config=None, enforce_eager=False, enable_return_routed_experts=False, kv_cache_dtype=auto, device_config=cuda, 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, 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), seed=0, served_model_name=inferno-project/vllm-mixtral-2, enable_prefix_caching=True, enable_chunked_prefill=True, pooler_config=None, compilation_config={'mode': <CompilationMode.VLLM_COMPILE: 3>, 'debug_dump_path': None, 'cache_dir': '/home/jlj/.cache/vllm/torch_compile_cache/61fde41332', '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::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': [8192], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'size_asserts': True, 'alignment_asserts': True, 'scalar_asserts': True, '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], '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}, 'max_cudagraph_capture_size': 4, 'dynamic_shapes_config': {'type': <DynamicShapesType.BACKED: 'backed'>, 'evaluate_guards': False, 'assume_32_bit_indexing': False}, 'local_cache_dir': '/home/jlj/.cache/vllm/torch_compile_cache/61fde41332/rank_0_0/backbone', 'fast_moe_cold_start': False, 'static_all_moe_layers': ['model.layers.0.block_sparse_moe.experts']}, kernel_config=KernelConfig(ir_op_priority=IrOpPriorityConfig(rms_norm=['native']), enable_flashinfer_autotune=True, moe_backend='auto'), (EngineCore pid=22349) ERROR 04-29 16:04:08 [logging_utils/dump_input.py:79] Dumping scheduler output for model execution: SchedulerOutput(scheduled_new_reqs=[NewRequestData(req_id=0-a52acd6c,prompt_token_ids_len=1,prefill_token_ids_len=None,mm_features=[],sampling_params=SamplingParams(n=1, presence_penalty=0.0, frequency_penalty=0.0, repetition_penalty=1.0, temperature=1.0, top_p=1.0, top_k=0, min_p=0.0, seed=None, stop=[], stop_token_ids=[], bad_words=[], thinking_token_budget=None, include_stop_str_in_output=False, ignore_eos=False, max_tokens=16, min_tokens=0, logprobs=None, prompt_logprobs=None, skip_special_tokens=True, spaces_between_special_tokens=True, structured_outputs=None, extra_args=None),block_ids=([1],),num_computed_tokens=0,lora_request=None,prompt_embeds_shape=None)], scheduled_cached_reqs=CachedRequestData(req_ids=[],resumed_req_ids=set(),new_token_ids_lens=[],all_token_ids_lens={},new_block_ids=[],num_computed_tokens=[],num_output_tokens=[]), num_scheduled_tokens={0-a52acd6c: 1}, total_num_scheduled_tokens=1, scheduled_spec_decode_tokens={}, scheduled_encoder_inputs={}, num_common_prefix_blocks=[1], finished_req_ids=[], free_encoder_mm_hashes=[], preempted_req_ids=[], has_structured_output_requests=false, pending_structured_output_tokens=false, num_invalid_spec_tokens=null, kv_connector_metadata=null, ec_connector_metadata=null, new_block_ids_to_zero=null) (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] EngineCore encountered a fatal error. (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] Traceback (most recent call last): (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1129, in run_engine_core (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] engine_core.run_busy_loop() (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1170, in run_busy_loop (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] self._process_engine_step() (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1209, in _process_engine_step (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] outputs, model_executed = self.step_fn() (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] ^^^^^^^^^^^^^^ (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 473, in step_with_batch_queue (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] exec_future = self.model_executor.execute_model( (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] output.result() (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 449, in result (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] return self.__get_result() (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] ^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] raise self._exception (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] result = run_method(self.driver_worker, method, args, kwargs) (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] return func(*args, **kwargs) (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 337, in execute_model (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] return self.worker.execute_model(scheduler_output) (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] return func(*args, **kwargs) (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 813, in execute_model (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] output = self.model_runner.execute_model( (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] return func(*args, **kwargs) (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 4051, in execute_model (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] model_output = self._model_forward( (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] ^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 3524, in _model_forward (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] return self.model( (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] ^^^^^^^^^^^ (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/compilation/cuda_graph.py", line 355, in call (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] entry.cudagraph.replay() (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/cuda/graphs.py", line 139, in replay (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] super().replay() (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] torch.AcceleratorError: CUDA error: misaligned address (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] Search for cudaErrorMisalignedAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information. (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] Compile with TORCH_USE_CUDA_DSAto enable device-side assertions. (EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] Traceback (most recent call last): File "/home/jlj/dev/inferno/test.py", line 12, in <module> llm.generate("token_175") File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/entrypoints/llm.py", line 500, in generate return self._run_completion( ^^^^^^^^^^^^^^^^^^^^^ File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/entrypoints/llm.py", line 1651, in _run_completion return self._run_engine(use_tqdm=use_tqdm, output_type=output_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/entrypoints/llm.py", line 1861, in _run_engine step_outputs = self.llm_engine.step() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/llm_engine.py", line 295, in step outputs = self.engine_core.get_output() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core_client.py", line 793, in get_output raise self._format_exception(outputs) from None vllm.v1.engine.exceptions.EngineDeadError: EngineCore encountered an issue. See stack trace (above) for the root cause. (EngineCore pid=22349) Process EngineCore: (EngineCore pid=22349) Traceback (most recent call last): (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1140, in run_engine_core (EngineCore pid=22349) raise e (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1129, in run_engine_core (EngineCore pid=22349) engine_core.run_busy_loop() (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1170, in run_busy_loop (EngineCore pid=22349) self._process_engine_step() (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1209, in _process_engine_step (EngineCore pid=22349) outputs, model_executed = self.step_fn() (EngineCore pid=22349) ^^^^^^^^^^^^^^ (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 473, in step_with_batch_queue (EngineCore pid=22349) exec_future = self.model_executor.execute_model( (EngineCore pid=22349) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model (EngineCore pid=22349) output.result() (EngineCore pid=22349) File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 449, in result (EngineCore pid=22349) return self.__get_result() (EngineCore pid=22349) ^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result (EngineCore pid=22349) raise self._exception (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc (EngineCore pid=22349) result = run_method(self.driver_worker, method, args, kwargs) (EngineCore pid=22349) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method (EngineCore pid=22349) return func(*args, **kwargs) (EngineCore pid=22349) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 337, in execute_model (EngineCore pid=22349) return self.worker.execute_model(scheduler_output) (EngineCore pid=22349) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=22349) return func(*args, **kwargs) (EngineCore pid=22349) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 813, in execute_model (EngineCore pid=22349) output = self.model_runner.execute_model( (EngineCore pid=22349) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context (EngineCore pid=22349) return func(*args, **kwargs) (EngineCore pid=22349) ^^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 4051, in execute_model (EngineCore pid=22349) model_output = self._model_forward( (EngineCore pid=22349) ^^^^^^^^^^^^^^^^^^^^ (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 3524, in _model_forward (EngineCore pid=22349) return self.model( (EngineCore pid=22349) ^^^^^^^^^^^ (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/compilation/cuda_graph.py", line 355, in __call__ (EngineCore pid=22349) entry.cudagraph.replay() (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/cuda/graphs.py", line 139, in replay (EngineCore pid=22349) super().replay() (EngineCore pid=22349) torch.AcceleratorError: CUDA error: misaligned address (EngineCore pid=22349) Search forcudaErrorMisalignedAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information. (EngineCore pid=22349) Compile with TORCH_USE_CUDA_DSA to enable device-side assertions. (EngineCore pid=22349) (EngineCore pid=22349) (EngineCore pid=22349) During handling of the above exception, another exception occurred: (EngineCore pid=22349) (EngineCore pid=22349) Traceback (most recent call last): (EngineCore pid=22349) File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap (EngineCore pid=22349) self.run() (EngineCore pid=22349) File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/multiprocessing/process.py", line 108, in run (EngineCore pid=22349) self._target(*self._args, **self._kwargs) (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1147, in run_engine_core (EngineCore pid=22349) engine_core.shutdown() (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 574, in shutdown (EngineCore pid=22349) self.model_executor.shutdown() (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 137, in shutdown (EngineCore pid=22349) worker.shutdown() (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 212, in shutdown (EngineCore pid=22349) self.worker.shutdown() (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 1021, in shutdown (EngineCore pid=22349) model_runner.shutdown() (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5907, in shutdown (EngineCore pid=22349) self._cleanup_profiling_kv_cache() (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5915, in _cleanup_profiling_kv_cache (EngineCore pid=22349) torch.accelerator.synchronize() (EngineCore pid=22349) File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/accelerator/init.py", line 263, in synchronize (EngineCore pid=22349) torch._C._accelerator_synchronizeDevice(device_index) (EngineCore pid=22349) torch.AcceleratorError: CUDA error: misaligned address (EngineCore pid=22349) Search for cudaErrorMisalignedAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information. (EngineCore pid=22349) Compile with TORCH_USE_CUDA_DSA` to enable device-side assertions. (EngineCore pid=22349) Processed prompts: 0%| | 0/1 [00:00<?, ?it/s, est. speed input: 0.00 toks/s, output: 0.00 toks/s]

Root Cause

(EngineCore pid=22349) ERROR 04-29 16:04:08 [logging_utils/dump_input.py:72] Dumping input data for V1 LLM engine (v0.20.0) with config: model='inferno-project/vllm-mixtral-2', speculative_config=None, tokenizer='inferno-project/vllm-mixtral-2', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.bfloat16, max_seq_len=131072, 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=False, quantization=None, quantization_config=None, enforce_eager=False, enable_return_routed_experts=False, kv_cache_dtype=auto, device_config=cuda, 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, 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), seed=0, served_model_name=inferno-project/vllm-mixtral-2, enable_prefix_caching=True, enable_chunked_prefill=True, pooler_config=None, compilation_config={'mode': <CompilationMode.VLLM_COMPILE: 3>, 'debug_dump_path': None, 'cache_dir': '/home/jlj/.cache/vllm/torch_compile_cache/61fde41332', '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::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': [8192], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'size_asserts': True, 'alignment_asserts': True, 'scalar_asserts': True, '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], '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}, 'max_cudagraph_capture_size': 4, 'dynamic_shapes_config': {'type': <DynamicShapesType.BACKED: 'backed'>, 'evaluate_guards': False, 'assume_32_bit_indexing': False}, 'local_cache_dir': '/home/jlj/.cache/vllm/torch_compile_cache/61fde41332/rank_0_0/backbone', 'fast_moe_cold_start': False, 'static_all_moe_layers': ['model.layers.0.block_sparse_moe.experts']}, kernel_config=KernelConfig(ir_op_priority=IrOpPriorityConfig(rms_norm=['native']), enable_flashinfer_autotune=True, moe_backend='auto'), 
(EngineCore pid=22349) ERROR 04-29 16:04:08 [logging_utils/dump_input.py:79] Dumping scheduler output for model execution: SchedulerOutput(scheduled_new_reqs=[NewRequestData(req_id=0-a52acd6c,prompt_token_ids_len=1,prefill_token_ids_len=None,mm_features=[],sampling_params=SamplingParams(n=1, presence_penalty=0.0, frequency_penalty=0.0, repetition_penalty=1.0, temperature=1.0, top_p=1.0, top_k=0, min_p=0.0, seed=None, stop=[], stop_token_ids=[], bad_words=[], thinking_token_budget=None, include_stop_str_in_output=False, ignore_eos=False, max_tokens=16, min_tokens=0, logprobs=None, prompt_logprobs=None, skip_special_tokens=True, spaces_between_special_tokens=True, structured_outputs=None, extra_args=None),block_ids=([1],),num_computed_tokens=0,lora_request=None,prompt_embeds_shape=None)], scheduled_cached_reqs=CachedRequestData(req_ids=[],resumed_req_ids=set(),new_token_ids_lens=[],all_token_ids_lens={},new_block_ids=[],num_computed_tokens=[],num_output_tokens=[]), num_scheduled_tokens={0-a52acd6c: 1}, total_num_scheduled_tokens=1, scheduled_spec_decode_tokens={}, scheduled_encoder_inputs={}, num_common_prefix_blocks=[1], finished_req_ids=[], free_encoder_mm_hashes=[], preempted_req_ids=[], has_structured_output_requests=false, pending_structured_output_tokens=false, num_invalid_spec_tokens=null, kv_connector_metadata=null, ec_connector_metadata=null, new_block_ids_to_zero=null)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] EngineCore encountered a fatal error.
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] Traceback (most recent call last):
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1129, in run_engine_core
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     engine_core.run_busy_loop()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1170, in run_busy_loop
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     self._process_engine_step()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1209, in _process_engine_step
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     outputs, model_executed = self.step_fn()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]                               ^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 473, in step_with_batch_queue
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     exec_future = self.model_executor.execute_model(
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     output.result()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 449, in result
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return self.__get_result()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     raise self._exception
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return func(*args, **kwargs)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 337, in execute_model
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return self.worker.execute_model(scheduler_output)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return func(*args, **kwargs)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 813, in execute_model
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     output = self.model_runner.execute_model(
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return func(*args, **kwargs)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 4051, in execute_model
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     model_output = self._model_forward(
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]                    ^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 3524, in _model_forward
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return self.model(
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/compilation/cuda_graph.py", line 355, in __call__
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     entry.cudagraph.replay()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/cuda/graphs.py", line 139, in replay
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     super().replay()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] torch.AcceleratorError: CUDA error: misaligned address
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] Search for `cudaErrorMisalignedAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] 
Traceback (most recent call last):
  File "/home/jlj/dev/inferno/test.py", line 12, in <module>
    llm.generate("token_175")
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/entrypoints/llm.py", line 500, in generate
    return self._run_completion(
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/entrypoints/llm.py", line 1651, in _run_completion
    return self._run_engine(use_tqdm=use_tqdm, output_type=output_type)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/entrypoints/llm.py", line 1861, in _run_engine
    step_outputs = self.llm_engine.step()
                   ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/llm_engine.py", line 295, in step
    outputs = self.engine_core.get_output()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core_client.py", line 793, in get_output
    raise self._format_exception(outputs) from None
vllm.v1.engine.exceptions.EngineDeadError: EngineCore encountered an issue. See stack trace (above) for the root cause.
(EngineCore pid=22349) Process EngineCore:
(EngineCore pid=22349) Traceback (most recent call last):
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1140, in run_engine_core
(EngineCore pid=22349)     raise e
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1129, in run_engine_core
(EngineCore pid=22349)     engine_core.run_busy_loop()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1170, in run_busy_loop
(EngineCore pid=22349)     self._process_engine_step()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1209, in _process_engine_step
(EngineCore pid=22349)     outputs, model_executed = self.step_fn()
(EngineCore pid=22349)                               ^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 473, in step_with_batch_queue
(EngineCore pid=22349)     exec_future = self.model_executor.execute_model(
(EngineCore pid=22349)                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model
(EngineCore pid=22349)     output.result()
(EngineCore pid=22349)   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 449, in result
(EngineCore pid=22349)     return self.__get_result()
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
(EngineCore pid=22349)     raise self._exception
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc
(EngineCore pid=22349)     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=22349)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=22349)     return func(*args, **kwargs)
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 337, in execute_model
(EngineCore pid=22349)     return self.worker.execute_model(scheduler_output)
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=22349)     return func(*args, **kwargs)
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 813, in execute_model
(EngineCore pid=22349)     output = self.model_runner.execute_model(
(EngineCore pid=22349)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=22349)     return func(*args, **kwargs)
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 4051, in execute_model
(EngineCore pid=22349)     model_output = self._model_forward(
(EngineCore pid=22349)                    ^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 3524, in _model_forward
(EngineCore pid=22349)     return self.model(
(EngineCore pid=22349)            ^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/compilation/cuda_graph.py", line 355, in __call__
(EngineCore pid=22349)     entry.cudagraph.replay()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/cuda/graphs.py", line 139, in replay
(EngineCore pid=22349)     super().replay()
(EngineCore pid=22349) torch.AcceleratorError: CUDA error: misaligned address
(EngineCore pid=22349) Search for `cudaErrorMisalignedAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.
(EngineCore pid=22349) Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
(EngineCore pid=22349) 
(EngineCore pid=22349) 
(EngineCore pid=22349) During handling of the above exception, another exception occurred:
(EngineCore pid=22349) 
(EngineCore pid=22349) Traceback (most recent call last):
(EngineCore pid=22349)   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
(EngineCore pid=22349)     self.run()
(EngineCore pid=22349)   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/multiprocessing/process.py", line 108, in run
(EngineCore pid=22349)     self._target(*self._args, **self._kwargs)
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1147, in run_engine_core
(EngineCore pid=22349)     engine_core.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 574, in shutdown
(EngineCore pid=22349)     self.model_executor.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 137, in shutdown
(EngineCore pid=22349)     worker.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 212, in shutdown
(EngineCore pid=22349)     self.worker.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 1021, in shutdown
(EngineCore pid=22349)     model_runner.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5907, in shutdown
(EngineCore pid=22349)     self._cleanup_profiling_kv_cache()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5915, in _cleanup_profiling_kv_cache
(EngineCore pid=22349)     torch.accelerator.synchronize()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/accelerator/__init__.py", line 263, in synchronize
(EngineCore pid=22349)     torch._C._accelerator_synchronizeDevice(device_index)
(EngineCore pid=22349) torch.AcceleratorError: CUDA error: misaligned address
(EngineCore pid=22349) Search for `cudaErrorMisalignedAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.
(EngineCore pid=22349) Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
(EngineCore pid=22349) 
Processed prompts:   0%|                                                                                                                         | 0/1 [00:00<?, ?it/s, est. speed input: 0.00 toks/s, output: 0.00 toks/s]

Fix Action

Fix / Workaround

============================== CPU Info

Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 46 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 22 On-line CPU(s) list: 0-21 Vendor ID: GenuineIntel Model name: Intel(R) Core(TM) Ultra 9 185H CPU family: 6 Model: 170 Thread(s) per core: 2 Core(s) per socket: 16 Socket(s): 1 Stepping: 4 CPU(s) scaling MHz: 29% CPU max MHz: 5100.0000 CPU min MHz: 400.0000 BogoMIPS: 6144.00 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect user_shstk avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi vnmi umip pku ospke waitpkg gfni vaes vpclmulqdq rdpid bus_lock_detect movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr ibt flush_l1d arch_capabilities Virtualization: VT-x L1d cache: 544 KiB (14 instances) L1i cache: 896 KiB (14 instances) L2 cache: 18 MiB (9 instances) L3 cache: 24 MiB (1 instance) NUMA node(s): 1 NUMA node0 CPU(s): 0-21 Vulnerability Gather data sampling: Not affected Vulnerability Ghostwrite: Not affected Vulnerability Indirect target selection: Not affected Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Not affected Vulnerability Old microcode: Not affected Vulnerability Reg file data sampling: Not affected Vulnerability Retbleed: Not affected Vulnerability Spec rstack overflow: Not affected Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS Not affected; BHI BHI_DIS_S Vulnerability Srbds: Not affected Vulnerability Tsa: Not affected Vulnerability Tsx async abort: Not affected Vulnerability Vmscape: Mitigation; IBPB before exit to userspace

Code Example

Collecting environment information...
uv is set
==============================
        System Info
==============================
OS                           : Ubuntu 25.10 (x86_64)
GCC version                  : (Ubuntu 15.2.0-4ubuntu4) 15.2.0
Clang version                : 20.1.8 (0ubuntu4)
CMake version                : version 3.31.6
Libc version                 : glibc-2.42

==============================
       PyTorch Info
==============================
PyTorch version              : 2.11.0+cu130
Is debug build               : False
CUDA used to build PyTorch   : 13.0
ROCM used to build PyTorch   : N/A
XPU used to build PyTorch    : N/A

==============================
      Python Environment
==============================
Python version               : 3.12.11 (main, Sep  2 2025, 14:20:58) [Clang 20.1.4 ] (64-bit runtime)
Python platform              : Linux-6.17.0-22-generic-x86_64-with-glibc2.42
    
==============================
       CUDA / GPU Info
==============================
Is CUDA available            : True
CUDA runtime version         : 12.9.86
CUDA_MODULE_LOADING set to   : 
GPU models and configuration : GPU 0: NVIDIA GeForce RTX 4060 Laptop GPU
Nvidia driver version        : 590.48.01
cuDNN version                : Could not collect
HIP runtime version          : N/A
MIOpen runtime version       : N/A
Is XNNPACK available         : True

==============================
          CPU Info
==============================
Architecture:                            x86_64
CPU op-mode(s):                          32-bit, 64-bit
Address sizes:                           46 bits physical, 48 bits virtual
Byte Order:                              Little Endian
CPU(s):                                  22
On-line CPU(s) list:                     0-21
Vendor ID:                               GenuineIntel
Model name:                              Intel(R) Core(TM) Ultra 9 185H
CPU family:                              6
Model:                                   170
Thread(s) per core:                      2
Core(s) per socket:                      16
Socket(s):                               1
Stepping:                                4
CPU(s) scaling MHz:                      29%
CPU max MHz:                             5100.0000
CPU min MHz:                             400.0000
BogoMIPS:                                6144.00
Flags:                                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect user_shstk avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi vnmi umip pku ospke waitpkg gfni vaes vpclmulqdq rdpid bus_lock_detect movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr ibt flush_l1d arch_capabilities
Virtualization:                          VT-x
L1d cache:                               544 KiB (14 instances)
L1i cache:                               896 KiB (14 instances)
L2 cache:                                18 MiB (9 instances)
L3 cache:                                24 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-21
Vulnerability Gather data sampling:      Not affected
Vulnerability Ghostwrite:                Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Old microcode:             Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS Not affected; BHI BHI_DIS_S
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Mitigation; IBPB before exit to userspace

==============================
Versions of relevant libraries
==============================
[pip3] flashinfer-python==0.6.8.post1
[pip3] mypy-extensions==1.1.0
[pip3] numpy==2.2.6
[pip3] nvidia-cublas==13.1.0.3
[pip3] nvidia-cuda-cupti==13.0.85
[pip3] nvidia-cuda-nvrtc==13.0.88
[pip3] nvidia-cuda-runtime==13.0.96
[pip3] nvidia-cudnn-cu13==9.19.0.56
[pip3] nvidia-cudnn-frontend==1.18.0
[pip3] nvidia-cufft==12.0.0.61
[pip3] nvidia-cufile==1.15.1.6
[pip3] nvidia-curand==10.4.0.35
[pip3] nvidia-cusolver==12.0.4.66
[pip3] nvidia-cusparse==12.6.3.3
[pip3] nvidia-cusparselt-cu13==0.8.0
[pip3] nvidia-cutlass-dsl==4.4.2
[pip3] nvidia-cutlass-dsl-libs-base==4.4.2
[pip3] nvidia-ml-py==13.590.48
[pip3] nvidia-nccl-cu13==2.28.9
[pip3] nvidia-nvjitlink==13.0.88
[pip3] nvidia-nvshmem-cu13==3.4.5
[pip3] nvidia-nvtx==13.0.85
[pip3] pyzmq==27.1.0
[pip3] torch==2.11.0
[pip3] torch-c-dlpack-ext==0.1.5
[pip3] torchaudio==2.11.0
[pip3] torchvision==0.26.0
[pip3] transformers==4.57.5
[pip3] triton==3.6.0
[conda] Could not collect

==============================
         vLLM Info
==============================
ROCM Version                 : Could not collect
vLLM Version                 : 0.20.0
vLLM Build Flags:
  CUDA Archs: Not Set; ROCm: Disabled; XPU: Disabled
GPU Topology:
        GPU0    CPU Affinity    NUMA Affinity   GPU NUMA ID
GPU0     X      0-21    0               N/A

Legend:

  X    = Self
  SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
  NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
  PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
  PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
  PIX  = Connection traversing at most a single PCIe bridge
  NV#  = Connection traversing a bonded set of # NVLinks

==============================
     Environment Variables
==============================
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_jlj

---

import vllm
from vllm.config import AttentionConfig
from vllm.v1.attention.backends.registry import AttentionBackendEnum

llm = vllm.LLM(
    "inferno-project/vllm-mixtral-2",
    max_num_seqs=2,
    attention_config=AttentionConfig(
        backend=AttentionBackendEnum.FLEX_ATTENTION
    )
)
llm.generate("token_175")

---

(EngineCore pid=22349) ERROR 04-29 16:04:08 [logging_utils/dump_input.py:72] Dumping input data for V1 LLM engine (v0.20.0) with config: model='inferno-project/vllm-mixtral-2', speculative_config=None, tokenizer='inferno-project/vllm-mixtral-2', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.bfloat16, max_seq_len=131072, 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=False, quantization=None, quantization_config=None, enforce_eager=False, enable_return_routed_experts=False, kv_cache_dtype=auto, device_config=cuda, 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, 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), seed=0, served_model_name=inferno-project/vllm-mixtral-2, enable_prefix_caching=True, enable_chunked_prefill=True, pooler_config=None, compilation_config={'mode': <CompilationMode.VLLM_COMPILE: 3>, 'debug_dump_path': None, 'cache_dir': '/home/jlj/.cache/vllm/torch_compile_cache/61fde41332', '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::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': [8192], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'size_asserts': True, 'alignment_asserts': True, 'scalar_asserts': True, '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], '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}, 'max_cudagraph_capture_size': 4, 'dynamic_shapes_config': {'type': <DynamicShapesType.BACKED: 'backed'>, 'evaluate_guards': False, 'assume_32_bit_indexing': False}, 'local_cache_dir': '/home/jlj/.cache/vllm/torch_compile_cache/61fde41332/rank_0_0/backbone', 'fast_moe_cold_start': False, 'static_all_moe_layers': ['model.layers.0.block_sparse_moe.experts']}, kernel_config=KernelConfig(ir_op_priority=IrOpPriorityConfig(rms_norm=['native']), enable_flashinfer_autotune=True, moe_backend='auto'), 
(EngineCore pid=22349) ERROR 04-29 16:04:08 [logging_utils/dump_input.py:79] Dumping scheduler output for model execution: SchedulerOutput(scheduled_new_reqs=[NewRequestData(req_id=0-a52acd6c,prompt_token_ids_len=1,prefill_token_ids_len=None,mm_features=[],sampling_params=SamplingParams(n=1, presence_penalty=0.0, frequency_penalty=0.0, repetition_penalty=1.0, temperature=1.0, top_p=1.0, top_k=0, min_p=0.0, seed=None, stop=[], stop_token_ids=[], bad_words=[], thinking_token_budget=None, include_stop_str_in_output=False, ignore_eos=False, max_tokens=16, min_tokens=0, logprobs=None, prompt_logprobs=None, skip_special_tokens=True, spaces_between_special_tokens=True, structured_outputs=None, extra_args=None),block_ids=([1],),num_computed_tokens=0,lora_request=None,prompt_embeds_shape=None)], scheduled_cached_reqs=CachedRequestData(req_ids=[],resumed_req_ids=set(),new_token_ids_lens=[],all_token_ids_lens={},new_block_ids=[],num_computed_tokens=[],num_output_tokens=[]), num_scheduled_tokens={0-a52acd6c: 1}, total_num_scheduled_tokens=1, scheduled_spec_decode_tokens={}, scheduled_encoder_inputs={}, num_common_prefix_blocks=[1], finished_req_ids=[], free_encoder_mm_hashes=[], preempted_req_ids=[], has_structured_output_requests=false, pending_structured_output_tokens=false, num_invalid_spec_tokens=null, kv_connector_metadata=null, ec_connector_metadata=null, new_block_ids_to_zero=null)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] EngineCore encountered a fatal error.
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] Traceback (most recent call last):
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1129, in run_engine_core
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     engine_core.run_busy_loop()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1170, in run_busy_loop
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     self._process_engine_step()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1209, in _process_engine_step
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     outputs, model_executed = self.step_fn()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]                               ^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 473, in step_with_batch_queue
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     exec_future = self.model_executor.execute_model(
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     output.result()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 449, in result
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return self.__get_result()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     raise self._exception
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return func(*args, **kwargs)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 337, in execute_model
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return self.worker.execute_model(scheduler_output)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return func(*args, **kwargs)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 813, in execute_model
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     output = self.model_runner.execute_model(
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return func(*args, **kwargs)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 4051, in execute_model
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     model_output = self._model_forward(
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]                    ^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 3524, in _model_forward
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return self.model(
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/compilation/cuda_graph.py", line 355, in __call__
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     entry.cudagraph.replay()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/cuda/graphs.py", line 139, in replay
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     super().replay()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] torch.AcceleratorError: CUDA error: misaligned address
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] Search for `cudaErrorMisalignedAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] 
Traceback (most recent call last):
  File "/home/jlj/dev/inferno/test.py", line 12, in <module>
    llm.generate("token_175")
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/entrypoints/llm.py", line 500, in generate
    return self._run_completion(
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/entrypoints/llm.py", line 1651, in _run_completion
    return self._run_engine(use_tqdm=use_tqdm, output_type=output_type)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/entrypoints/llm.py", line 1861, in _run_engine
    step_outputs = self.llm_engine.step()
                   ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/llm_engine.py", line 295, in step
    outputs = self.engine_core.get_output()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core_client.py", line 793, in get_output
    raise self._format_exception(outputs) from None
vllm.v1.engine.exceptions.EngineDeadError: EngineCore encountered an issue. See stack trace (above) for the root cause.
(EngineCore pid=22349) Process EngineCore:
(EngineCore pid=22349) Traceback (most recent call last):
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1140, in run_engine_core
(EngineCore pid=22349)     raise e
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1129, in run_engine_core
(EngineCore pid=22349)     engine_core.run_busy_loop()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1170, in run_busy_loop
(EngineCore pid=22349)     self._process_engine_step()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1209, in _process_engine_step
(EngineCore pid=22349)     outputs, model_executed = self.step_fn()
(EngineCore pid=22349)                               ^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 473, in step_with_batch_queue
(EngineCore pid=22349)     exec_future = self.model_executor.execute_model(
(EngineCore pid=22349)                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model
(EngineCore pid=22349)     output.result()
(EngineCore pid=22349)   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 449, in result
(EngineCore pid=22349)     return self.__get_result()
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
(EngineCore pid=22349)     raise self._exception
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc
(EngineCore pid=22349)     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=22349)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=22349)     return func(*args, **kwargs)
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 337, in execute_model
(EngineCore pid=22349)     return self.worker.execute_model(scheduler_output)
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=22349)     return func(*args, **kwargs)
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 813, in execute_model
(EngineCore pid=22349)     output = self.model_runner.execute_model(
(EngineCore pid=22349)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=22349)     return func(*args, **kwargs)
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 4051, in execute_model
(EngineCore pid=22349)     model_output = self._model_forward(
(EngineCore pid=22349)                    ^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 3524, in _model_forward
(EngineCore pid=22349)     return self.model(
(EngineCore pid=22349)            ^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/compilation/cuda_graph.py", line 355, in __call__
(EngineCore pid=22349)     entry.cudagraph.replay()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/cuda/graphs.py", line 139, in replay
(EngineCore pid=22349)     super().replay()
(EngineCore pid=22349) torch.AcceleratorError: CUDA error: misaligned address
(EngineCore pid=22349) Search for `cudaErrorMisalignedAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.
(EngineCore pid=22349) Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
(EngineCore pid=22349) 
(EngineCore pid=22349) 
(EngineCore pid=22349) During handling of the above exception, another exception occurred:
(EngineCore pid=22349) 
(EngineCore pid=22349) Traceback (most recent call last):
(EngineCore pid=22349)   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
(EngineCore pid=22349)     self.run()
(EngineCore pid=22349)   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/multiprocessing/process.py", line 108, in run
(EngineCore pid=22349)     self._target(*self._args, **self._kwargs)
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1147, in run_engine_core
(EngineCore pid=22349)     engine_core.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 574, in shutdown
(EngineCore pid=22349)     self.model_executor.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 137, in shutdown
(EngineCore pid=22349)     worker.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 212, in shutdown
(EngineCore pid=22349)     self.worker.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 1021, in shutdown
(EngineCore pid=22349)     model_runner.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5907, in shutdown
(EngineCore pid=22349)     self._cleanup_profiling_kv_cache()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5915, in _cleanup_profiling_kv_cache
(EngineCore pid=22349)     torch.accelerator.synchronize()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/accelerator/__init__.py", line 263, in synchronize
(EngineCore pid=22349)     torch._C._accelerator_synchronizeDevice(device_index)
(EngineCore pid=22349) torch.AcceleratorError: CUDA error: misaligned address
(EngineCore pid=22349) Search for `cudaErrorMisalignedAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.
(EngineCore pid=22349) Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
(EngineCore pid=22349) 
Processed prompts:   0%|                                                                                                                         | 0/1 [00:00<?, ?it/s, est. speed input: 0.00 toks/s, output: 0.00 toks/s]
RAW_BUFFERClick to expand / collapse

Your current environment

<details> <summary>The output of <code>python collect_env.py</code></summary>
Collecting environment information...
uv is set
==============================
        System Info
==============================
OS                           : Ubuntu 25.10 (x86_64)
GCC version                  : (Ubuntu 15.2.0-4ubuntu4) 15.2.0
Clang version                : 20.1.8 (0ubuntu4)
CMake version                : version 3.31.6
Libc version                 : glibc-2.42

==============================
       PyTorch Info
==============================
PyTorch version              : 2.11.0+cu130
Is debug build               : False
CUDA used to build PyTorch   : 13.0
ROCM used to build PyTorch   : N/A
XPU used to build PyTorch    : N/A

==============================
      Python Environment
==============================
Python version               : 3.12.11 (main, Sep  2 2025, 14:20:58) [Clang 20.1.4 ] (64-bit runtime)
Python platform              : Linux-6.17.0-22-generic-x86_64-with-glibc2.42
    
==============================
       CUDA / GPU Info
==============================
Is CUDA available            : True
CUDA runtime version         : 12.9.86
CUDA_MODULE_LOADING set to   : 
GPU models and configuration : GPU 0: NVIDIA GeForce RTX 4060 Laptop GPU
Nvidia driver version        : 590.48.01
cuDNN version                : Could not collect
HIP runtime version          : N/A
MIOpen runtime version       : N/A
Is XNNPACK available         : True

==============================
          CPU Info
==============================
Architecture:                            x86_64
CPU op-mode(s):                          32-bit, 64-bit
Address sizes:                           46 bits physical, 48 bits virtual
Byte Order:                              Little Endian
CPU(s):                                  22
On-line CPU(s) list:                     0-21
Vendor ID:                               GenuineIntel
Model name:                              Intel(R) Core(TM) Ultra 9 185H
CPU family:                              6
Model:                                   170
Thread(s) per core:                      2
Core(s) per socket:                      16
Socket(s):                               1
Stepping:                                4
CPU(s) scaling MHz:                      29%
CPU max MHz:                             5100.0000
CPU min MHz:                             400.0000
BogoMIPS:                                6144.00
Flags:                                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect user_shstk avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi vnmi umip pku ospke waitpkg gfni vaes vpclmulqdq rdpid bus_lock_detect movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr ibt flush_l1d arch_capabilities
Virtualization:                          VT-x
L1d cache:                               544 KiB (14 instances)
L1i cache:                               896 KiB (14 instances)
L2 cache:                                18 MiB (9 instances)
L3 cache:                                24 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-21
Vulnerability Gather data sampling:      Not affected
Vulnerability Ghostwrite:                Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Old microcode:             Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS Not affected; BHI BHI_DIS_S
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Mitigation; IBPB before exit to userspace

==============================
Versions of relevant libraries
==============================
[pip3] flashinfer-python==0.6.8.post1
[pip3] mypy-extensions==1.1.0
[pip3] numpy==2.2.6
[pip3] nvidia-cublas==13.1.0.3
[pip3] nvidia-cuda-cupti==13.0.85
[pip3] nvidia-cuda-nvrtc==13.0.88
[pip3] nvidia-cuda-runtime==13.0.96
[pip3] nvidia-cudnn-cu13==9.19.0.56
[pip3] nvidia-cudnn-frontend==1.18.0
[pip3] nvidia-cufft==12.0.0.61
[pip3] nvidia-cufile==1.15.1.6
[pip3] nvidia-curand==10.4.0.35
[pip3] nvidia-cusolver==12.0.4.66
[pip3] nvidia-cusparse==12.6.3.3
[pip3] nvidia-cusparselt-cu13==0.8.0
[pip3] nvidia-cutlass-dsl==4.4.2
[pip3] nvidia-cutlass-dsl-libs-base==4.4.2
[pip3] nvidia-ml-py==13.590.48
[pip3] nvidia-nccl-cu13==2.28.9
[pip3] nvidia-nvjitlink==13.0.88
[pip3] nvidia-nvshmem-cu13==3.4.5
[pip3] nvidia-nvtx==13.0.85
[pip3] pyzmq==27.1.0
[pip3] torch==2.11.0
[pip3] torch-c-dlpack-ext==0.1.5
[pip3] torchaudio==2.11.0
[pip3] torchvision==0.26.0
[pip3] transformers==4.57.5
[pip3] triton==3.6.0
[conda] Could not collect

==============================
         vLLM Info
==============================
ROCM Version                 : Could not collect
vLLM Version                 : 0.20.0
vLLM Build Flags:
  CUDA Archs: Not Set; ROCm: Disabled; XPU: Disabled
GPU Topology:
        GPU0    CPU Affinity    NUMA Affinity   GPU NUMA ID
GPU0     X      0-21    0               N/A

Legend:

  X    = Self
  SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
  NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
  PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
  PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
  PIX  = Connection traversing at most a single PCIe bridge
  NV#  = Connection traversing a bonded set of # NVLinks

==============================
     Environment Variables
==============================
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_jlj
</details>

🐛 Describe the bug

Reproducer

Using vllm v0.20.0, the following python code results in a torch._dynamo.exc.InternalTorchDynamoError: AcceleratorError: CUDA error: misaligned address error.

import vllm
from vllm.config import AttentionConfig
from vllm.v1.attention.backends.registry import AttentionBackendEnum

llm = vllm.LLM(
    "inferno-project/vllm-mixtral-2",
    max_num_seqs=2,
    attention_config=AttentionConfig(
        backend=AttentionBackendEnum.FLEX_ATTENTION
    )
)
llm.generate("token_175")

Full traceback

traceback.txt

Here are all the logged errors:

(EngineCore pid=22349) ERROR 04-29 16:04:08 [logging_utils/dump_input.py:72] Dumping input data for V1 LLM engine (v0.20.0) with config: model='inferno-project/vllm-mixtral-2', speculative_config=None, tokenizer='inferno-project/vllm-mixtral-2', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.bfloat16, max_seq_len=131072, 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=False, quantization=None, quantization_config=None, enforce_eager=False, enable_return_routed_experts=False, kv_cache_dtype=auto, device_config=cuda, 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, 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), seed=0, served_model_name=inferno-project/vllm-mixtral-2, enable_prefix_caching=True, enable_chunked_prefill=True, pooler_config=None, compilation_config={'mode': <CompilationMode.VLLM_COMPILE: 3>, 'debug_dump_path': None, 'cache_dir': '/home/jlj/.cache/vllm/torch_compile_cache/61fde41332', '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::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': [8192], 'inductor_compile_config': {'enable_auto_functionalized_v2': False, 'size_asserts': True, 'alignment_asserts': True, 'scalar_asserts': True, '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], '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}, 'max_cudagraph_capture_size': 4, 'dynamic_shapes_config': {'type': <DynamicShapesType.BACKED: 'backed'>, 'evaluate_guards': False, 'assume_32_bit_indexing': False}, 'local_cache_dir': '/home/jlj/.cache/vllm/torch_compile_cache/61fde41332/rank_0_0/backbone', 'fast_moe_cold_start': False, 'static_all_moe_layers': ['model.layers.0.block_sparse_moe.experts']}, kernel_config=KernelConfig(ir_op_priority=IrOpPriorityConfig(rms_norm=['native']), enable_flashinfer_autotune=True, moe_backend='auto'), 
(EngineCore pid=22349) ERROR 04-29 16:04:08 [logging_utils/dump_input.py:79] Dumping scheduler output for model execution: SchedulerOutput(scheduled_new_reqs=[NewRequestData(req_id=0-a52acd6c,prompt_token_ids_len=1,prefill_token_ids_len=None,mm_features=[],sampling_params=SamplingParams(n=1, presence_penalty=0.0, frequency_penalty=0.0, repetition_penalty=1.0, temperature=1.0, top_p=1.0, top_k=0, min_p=0.0, seed=None, stop=[], stop_token_ids=[], bad_words=[], thinking_token_budget=None, include_stop_str_in_output=False, ignore_eos=False, max_tokens=16, min_tokens=0, logprobs=None, prompt_logprobs=None, skip_special_tokens=True, spaces_between_special_tokens=True, structured_outputs=None, extra_args=None),block_ids=([1],),num_computed_tokens=0,lora_request=None,prompt_embeds_shape=None)], scheduled_cached_reqs=CachedRequestData(req_ids=[],resumed_req_ids=set(),new_token_ids_lens=[],all_token_ids_lens={},new_block_ids=[],num_computed_tokens=[],num_output_tokens=[]), num_scheduled_tokens={0-a52acd6c: 1}, total_num_scheduled_tokens=1, scheduled_spec_decode_tokens={}, scheduled_encoder_inputs={}, num_common_prefix_blocks=[1], finished_req_ids=[], free_encoder_mm_hashes=[], preempted_req_ids=[], has_structured_output_requests=false, pending_structured_output_tokens=false, num_invalid_spec_tokens=null, kv_connector_metadata=null, ec_connector_metadata=null, new_block_ids_to_zero=null)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] EngineCore encountered a fatal error.
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] Traceback (most recent call last):
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1129, in run_engine_core
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     engine_core.run_busy_loop()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1170, in run_busy_loop
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     self._process_engine_step()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1209, in _process_engine_step
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     outputs, model_executed = self.step_fn()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]                               ^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 473, in step_with_batch_queue
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     exec_future = self.model_executor.execute_model(
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     output.result()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 449, in result
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return self.__get_result()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     raise self._exception
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return func(*args, **kwargs)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 337, in execute_model
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return self.worker.execute_model(scheduler_output)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return func(*args, **kwargs)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 813, in execute_model
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     output = self.model_runner.execute_model(
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return func(*args, **kwargs)
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 4051, in execute_model
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     model_output = self._model_forward(
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]                    ^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 3524, in _model_forward
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     return self.model(
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]            ^^^^^^^^^^^
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/compilation/cuda_graph.py", line 355, in __call__
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     entry.cudagraph.replay()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/cuda/graphs.py", line 139, in replay
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138]     super().replay()
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] torch.AcceleratorError: CUDA error: misaligned address
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] Search for `cudaErrorMisalignedAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
(EngineCore pid=22349) ERROR 04-29 16:04:08 [v1/engine/core.py:1138] 
Traceback (most recent call last):
  File "/home/jlj/dev/inferno/test.py", line 12, in <module>
    llm.generate("token_175")
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/entrypoints/llm.py", line 500, in generate
    return self._run_completion(
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/entrypoints/llm.py", line 1651, in _run_completion
    return self._run_engine(use_tqdm=use_tqdm, output_type=output_type)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/entrypoints/llm.py", line 1861, in _run_engine
    step_outputs = self.llm_engine.step()
                   ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/llm_engine.py", line 295, in step
    outputs = self.engine_core.get_output()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core_client.py", line 793, in get_output
    raise self._format_exception(outputs) from None
vllm.v1.engine.exceptions.EngineDeadError: EngineCore encountered an issue. See stack trace (above) for the root cause.
(EngineCore pid=22349) Process EngineCore:
(EngineCore pid=22349) Traceback (most recent call last):
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1140, in run_engine_core
(EngineCore pid=22349)     raise e
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1129, in run_engine_core
(EngineCore pid=22349)     engine_core.run_busy_loop()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1170, in run_busy_loop
(EngineCore pid=22349)     self._process_engine_step()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1209, in _process_engine_step
(EngineCore pid=22349)     outputs, model_executed = self.step_fn()
(EngineCore pid=22349)                               ^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 473, in step_with_batch_queue
(EngineCore pid=22349)     exec_future = self.model_executor.execute_model(
(EngineCore pid=22349)                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 114, in execute_model
(EngineCore pid=22349)     output.result()
(EngineCore pid=22349)   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 449, in result
(EngineCore pid=22349)     return self.__get_result()
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
(EngineCore pid=22349)     raise self._exception
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 84, in collective_rpc
(EngineCore pid=22349)     result = run_method(self.driver_worker, method, args, kwargs)
(EngineCore pid=22349)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/serial_utils.py", line 510, in run_method
(EngineCore pid=22349)     return func(*args, **kwargs)
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 337, in execute_model
(EngineCore pid=22349)     return self.worker.execute_model(scheduler_output)
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=22349)     return func(*args, **kwargs)
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 813, in execute_model
(EngineCore pid=22349)     output = self.model_runner.execute_model(
(EngineCore pid=22349)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
(EngineCore pid=22349)     return func(*args, **kwargs)
(EngineCore pid=22349)            ^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 4051, in execute_model
(EngineCore pid=22349)     model_output = self._model_forward(
(EngineCore pid=22349)                    ^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 3524, in _model_forward
(EngineCore pid=22349)     return self.model(
(EngineCore pid=22349)            ^^^^^^^^^^^
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/compilation/cuda_graph.py", line 355, in __call__
(EngineCore pid=22349)     entry.cudagraph.replay()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/cuda/graphs.py", line 139, in replay
(EngineCore pid=22349)     super().replay()
(EngineCore pid=22349) torch.AcceleratorError: CUDA error: misaligned address
(EngineCore pid=22349) Search for `cudaErrorMisalignedAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.
(EngineCore pid=22349) Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
(EngineCore pid=22349) 
(EngineCore pid=22349) 
(EngineCore pid=22349) During handling of the above exception, another exception occurred:
(EngineCore pid=22349) 
(EngineCore pid=22349) Traceback (most recent call last):
(EngineCore pid=22349)   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
(EngineCore pid=22349)     self.run()
(EngineCore pid=22349)   File "/home/jlj/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/multiprocessing/process.py", line 108, in run
(EngineCore pid=22349)     self._target(*self._args, **self._kwargs)
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 1147, in run_engine_core
(EngineCore pid=22349)     engine_core.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/engine/core.py", line 574, in shutdown
(EngineCore pid=22349)     self.model_executor.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/executor/uniproc_executor.py", line 137, in shutdown
(EngineCore pid=22349)     worker.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/worker_base.py", line 212, in shutdown
(EngineCore pid=22349)     self.worker.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_worker.py", line 1021, in shutdown
(EngineCore pid=22349)     model_runner.shutdown()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5907, in shutdown
(EngineCore pid=22349)     self._cleanup_profiling_kv_cache()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/vllm/v1/worker/gpu_model_runner.py", line 5915, in _cleanup_profiling_kv_cache
(EngineCore pid=22349)     torch.accelerator.synchronize()
(EngineCore pid=22349)   File "/home/jlj/dev/inferno/.venv/lib/python3.12/site-packages/torch/accelerator/__init__.py", line 263, in synchronize
(EngineCore pid=22349)     torch._C._accelerator_synchronizeDevice(device_index)
(EngineCore pid=22349) torch.AcceleratorError: CUDA error: misaligned address
(EngineCore pid=22349) Search for `cudaErrorMisalignedAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.
(EngineCore pid=22349) Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
(EngineCore pid=22349) 
Processed prompts:   0%|                                                                                                                         | 0/1 [00:00<?, ?it/s, est. speed input: 0.00 toks/s, output: 0.00 toks/s]

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

extent analysis

TL;DR

The issue is likely due to a CUDA misaligned address error, which may be caused by incompatible CUDA versions or incorrect memory allocation.

Guidance

  1. Check CUDA versions: Ensure that the CUDA version used to build PyTorch (13.0) matches the CUDA runtime version (12.9.86) and the NVIDIA driver version (590.48.01).
  2. Verify memory allocation: Review the code to ensure that memory allocation is correct and aligned with CUDA requirements.
  3. Compile with TORCH_USE_CUDA_DSA: Compile PyTorch with TORCH_USE_CUDA_DSA to enable device-side assertions, which may provide more detailed error information.
  4. Update CUDA drivers and runtime: Consider updating the CUDA drivers and runtime to the latest versions to ensure compatibility with PyTorch.

Example

No specific code example is provided, as the issue is related to CUDA and memory allocation, which requires a more detailed analysis of the code and environment.

Notes

The error message suggests a CUDA misaligned address error, which can be caused by various factors, including incompatible CUDA versions, incorrect memory allocation, or hardware issues. Further investigation is required to determine the root cause of the issue.

Recommendation

Apply a workaround by compiling PyTorch with TORCH_USE_CUDA_DSA to enable device-side assertions, which may provide more detailed error information and help identify the root cause of the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING