[Bug] Add prefix parameter to parent class initialization (#1934)

Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com>

### What this PR does / why we need it?
Add prefix parameter to parent class initialization to avoid parameter
naming conflicts

### Does this PR introduce _any_ user-facing change?
No


- vLLM version: v0.9.2
- vLLM main:
32142b3c62
This commit is contained in:
JohnJan
2025-07-24 10:28:40 +08:00
committed by GitHub
parent 2ffe051859
commit fa76a9b7bb

View File

@@ -342,7 +342,7 @@ class AscendQwen2VisionTransformer(Qwen2VisionTransformer):
class AscendQwen2VLForConditionalGeneration(Qwen2VLForConditionalGeneration):
def __init__(self, *, vllm_config: VllmConfig, prefix: str = ""):
super().__init__(vllm_config=vllm_config)
super().__init__(vllm_config=vllm_config, prefix=prefix)
self.visual = AscendQwen2VisionTransformer(
self.config.vision_config,
norm_eps=getattr(self.config, "rms_norm_eps", 1e-6),