Skip to content

Unify server-side and model-side Config(Part-5) #3081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

YuanRisheng
Copy link
Collaborator

@YuanRisheng YuanRisheng commented Jul 30, 2025

本PR删除了engine目录下的config.py,将总的Config迁移至fastdeploy/config.py中,后续会对FDConfig中的字段进行进一步整理

Copy link

paddle-bot bot commented Jul 30, 2025

Thanks for your contribution!

Comment on lines +94 to +95
graph_opt_config._set_cudagraph_sizes(max_num_seqs=parallel_config.max_num_seqs)
graph_opt_config.init_with_cudagrpah_size(max_num_seqs=parallel_config.max_num_seqs)
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里为啥还需要手动调用一次,我看 FDConfig 已经吧 post_init 合并到 init 里了

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

FDConfig的初始化里我加了一个test_mode模式,专门用来方便写单测设置的,test_mode下只会做简单的config初始化,其他的初始化内容会直接跳过

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants