[Bug]: failed to run qwen2.5-vl-7b-fp8
System Info
cpu:x86 gpu:spark docker: tensorrt-llm:1.2.0rc2
logs as following: [11/17/2025-10:59:20] [TRT-LLM] [E] Failed to initialize executor on rank 0: 'Qwen2VLInputProcessorBase' object has no attribute 'image_max_dim' [11/17/2025-10:59:20] [TRT-LLM] [E] Traceback (most recent call last): File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/executor/worker.py", line 362, in worker_main worker: GenerationExecutorWorker = worker_cls( ^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/executor/worker.py", line 64, in init self.setup_engine() File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/executor/base_worker.py", line 177, in setup_engine self.engine = _create_py_executor( ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/executor/base_worker.py", line 148, in _create_py_executor _executor = create_executor(**args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/pyexecutor/py_executor_creator.py", line 600, in create_py_executor estimating_kv_cache = kv_cache_creator.try_prepare_estimation() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/pyexecutor/_util.py", line 283, in try_prepare_estimation self._kv_cache_config.max_tokens = self._get_token_num_for_estimation( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/pyexecutor/_util.py", line 263, in _get_token_num_for_estimation self._dummy_reqs = self._create_dummy_context_requests( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/pyexecutor/_util.py", line 204, in _create_dummy_context_requests requests = self._create_dummy_mm_context_request(input_seq_len) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/pyexecutor/_util.py", line 155, in _create_dummy_mm_context_request dummy_mm_prompt = input_processor.get_dummy_prompt(input_seq_len) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/inputs/registry.py", line 334, in get_dummy_prompt while self.image_max_dim >= self.img_min_dim: ^^^^^^^^^^^^^^^^^^ AttributeError: 'Qwen2VLInputProcessorBase' object has no attribute 'image_max_dim'
[11/17/2025-10:59:20] [TRT-LLM] [I] get signal from executor worker [11/17/2025-10:59:20] [TRT-LLM] [E] Executor worker initialization error: Traceback (most recent call last): File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/executor/worker.py", line 362, in worker_main worker: GenerationExecutorWorker = worker_cls( ^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/executor/worker.py", line 64, in init self.setup_engine() File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/executor/base_worker.py", line 177, in setup_engine self.engine = _create_py_executor( ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/executor/base_worker.py", line 148, in _create_py_executor _executor = create_executor(**args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/pyexecutor/py_executor_creator.py", line 600, in create_py_executor estimating_kv_cache = kv_cache_creator.try_prepare_estimation() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/pyexecutor/_util.py", line 283, in try_prepare_estimation self._kv_cache_config.max_tokens = self._get_token_num_for_estimation( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/pyexecutor/_util.py", line 263, in _get_token_num_for_estimation self._dummy_reqs = self._create_dummy_context_requests( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/pyexecutor/_util.py", line 204, in _create_dummy_context_requests requests = self._create_dummy_mm_context_request(input_seq_len) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/pyexecutor/_util.py", line 155, in _create_dummy_mm_context_request dummy_mm_prompt = input_processor.get_dummy_prompt(input_seq_len) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/inputs/registry.py", line 334, in get_dummy_prompt while self.image_max_dim >= self.img_min_dim: ^^^^^^^^^^^^^^^^^^ AttributeError: 'Qwen2VLInputProcessorBase' object has no attribute 'image_max_dim'
AttributeError: 'Qwen2VLInputProcessorBase' object has no attribute 'image_max_dim'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/trtllm-serve", line 7, in
Who can help?
No response
Information
- [ ] The official example scripts
- [ ] My own modified scripts
Tasks
- [ ] An officially supported task in the
examplesfolder (such as GLUE/SQuAD, ...) - [ ] My own task or dataset (give details below)
Reproduction
run docker and then trtllm-serve serve Qwen2.5-VL-7B-Instruct-FP8
Expected behavior
should be served.
actual behavior
error happened.
AttributeError: 'Qwen2VLInputProcessorBase' object has no attribute 'image_max_dim'
additional notes
AttributeError: 'Qwen2VLInputProcessorBase' object has no attribute 'image_max_dim'
Before submitting a new issue...
- [x] Make sure you already searched for relevant issues, and checked the documentation and examples for answers to frequently asked questions.
Seems to be introduced in https://github.com/NVIDIA/TensorRT-LLM/pull/8705
Fix is merged into the main now. Can you try on ToT?
Fix is merged. Closing this issue.