Skip to content

[V1 loader] Qwen25 VL support v1 loader and torch style safetensors load#4388

Merged
gongshaotian merged 39 commits intoPaddlePaddle:developfrom
CSWYF3634076:qwen-v1-loader
Oct 27, 2025
Merged

[V1 loader] Qwen25 VL support v1 loader and torch style safetensors load#4388
gongshaotian merged 39 commits intoPaddlePaddle:developfrom
CSWYF3634076:qwen-v1-loader

Conversation

@CSWYF3634076
Copy link
Copy Markdown
Collaborator

@CSWYF3634076 CSWYF3634076 commented Oct 14, 2025

  1. v1 loader for qwen25 vl
  2. torch style weight load for qwen25 vl
  3. fix Ernie-28B-VL-PT tp2 load weight failed

fix issue #4342

@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Oct 14, 2025

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Oct 14, 2025
@CSWYF3634076 CSWYF3634076 changed the title [V1 loader] Qwen support v1 loader and torch style safetensors load [V1 loader] Qwen25 VL support v1 loader and torch style safetensors load Oct 14, 2025
# model_format = self.fd_config.model_config.model_format
# Because the prefix for Paddle is qwen2, and for Hugging Face it is model.
# if model_format == "torch":
# loaded_weight_name = loaded_weight_name.replace("model", "qwen2")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

这块是不是可以删掉

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done

Copy link
Copy Markdown
Collaborator

@bukejiyu bukejiyu left a comment

Choose a reason for hiding this comment

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

加个test_common_model.py的单测

Copy link
Copy Markdown
Collaborator

@gongshaotian gongshaotian left a comment

Choose a reason for hiding this comment

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

LGTM

@gongshaotian gongshaotian merged commit acd3317 into PaddlePaddle:develop Oct 27, 2025
16 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants