Skip to content

Conversation

@liyonghua0910
Copy link
Collaborator

@liyonghua0910 liyonghua0910 commented Nov 25, 2025

Motivation

由于 FDConfig.postprocess 会对用户传参进行额外的后处理,当前 EngineClient 接收到的参数与 Engine/Worker 实际应用的配置没有完全对齐,存在使用隐患。

Modifications

删除了 EngineClient 的大部分部署参数,仅保留自身请求连接管理的相关参数。在 APIServer 中提前实例化 FDConfig,EngineClient 从 FDConfig 读取所需字段。

Usage or Command

None

Accuracy Tests

None

Checklist

  • Add at least a tag in the PR title.
    • Tag list: [[FDConfig],[APIServer],[Engine], [Scheduler], [PD Disaggregation], [Executor], [Graph Optimization], [Speculative Decoding], [RL], [Models], [Quantization], [Loader], [OP], [KVCache], [DataProcessor], [BugFix], [Docs], [CI], [Optimization], [Feature], [Benchmark], [Others], [XPU], [HPU], [GCU], [DCU], [Iluvatar], [Metax]]
    • You can add new tags based on the PR content, but the semantics must be clear.
  • Format your code, run pre-commit before commit.
  • Add unit tests. Please write the reason in this PR if no unit tests.
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@paddle-bot
Copy link

paddle-bot bot commented Nov 25, 2025

Thanks for your contribution!

enable_prefix_caching=args.enable_prefix_caching,
splitwise_role=args.splitwise_role,
max_processor_cache=args.max_processor_cache,
config=config,
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个config命名为fd_config吧?并且函数参数添加FDConfig注解

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

好的

yuanlehome
yuanlehome previously approved these changes Nov 25, 2025
@codecov-commenter
Copy link

codecov-commenter commented Nov 25, 2025

Codecov Report

❌ Patch coverage is 46.15385% with 14 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@35f85ba). Learn more about missing BASE report.

Files with missing lines Patch % Lines
fastdeploy/entrypoints/engine_client.py 45.83% 11 Missing and 2 partials ⚠️
fastdeploy/entrypoints/openai/api_server.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #5217   +/-   ##
==========================================
  Coverage           ?   60.44%           
==========================================
  Files              ?      320           
  Lines              ?    39053           
  Branches           ?     5871           
==========================================
  Hits               ?    23604           
  Misses             ?    13582           
  Partials           ?     1867           
Flag Coverage Δ
GPU 60.44% <46.15%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

4 participants