fix qwen3_vl visual module loading (#19333)

This commit is contained in:
wingedge777
2026-02-27 11:44:05 +08:00
committed by GitHub
parent fe971b620a
commit d566816d83

View File

@@ -1357,6 +1357,7 @@ class Qwen3VLForConditionalGeneration(nn.Module):
if "visual" in name:
# adapt to VisionAttention
name = name.replace(r"attn.qkv.", r"attn.qkv_proj.")
name = name.replace(r"model.visual.", r"visual.")
try:
# Skip loading extra bias for GPTQ models.