Skip to content

Conversation

CSWYF3634076
Copy link
Collaborator

@CSWYF3634076 CSWYF3634076 commented Sep 12, 2025

1.迁移image_maskvideo_mask等操作到非@support_graph_optimization装饰的Qwen2_5_VLForConditionalGeneration,以支持--use-cudagraph 参数

2.增加qwen25vl单元测试

3.docs:self.tokenizer.apply_chat_template need add_generation_prompt

Copy link

paddle-bot bot commented Sep 12, 2025

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Sep 12, 2025
@CSWYF3634076 CSWYF3634076 changed the title [Docs] offine infer add apply_chat_template add_generation_prompt parameter [Model] Qwen2.5VL support --use-cudagraph Sep 15, 2025
input_embeddings = self.model.get_input_embeddings(ids_remove_padding=ids_remove_padding)

if image_features is not None:
# 将 image_embeds 替换 input_embeds 里的 image video 占位符
Copy link
Collaborator

@gongshaotian gongshaotian Sep 15, 2025

Choose a reason for hiding this comment

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

非必要的注释删掉,并且统一使用英文注释

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@CSWYF3634076 CSWYF3634076 changed the title [Model] Qwen2.5VL support --use-cudagraph [Model] Qwen2.5VL support --use-cudagraph and unit testing Sep 19, 2025
video_mask = ids_remove_padding == self.model.video_token_id
video_token_num = video_mask.sum()

# 由于框架只有 image_features,所以目前不支持图片和视频混合
Copy link
Collaborator

Choose a reason for hiding this comment

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

后面提交PR时,注释都转成英文

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

get

@Jiang-Jia-Jun Jiang-Jia-Jun merged commit 5ff10c8 into PaddlePaddle:develop Sep 24, 2025
15 of 17 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