-
Notifications
You must be signed in to change notification settings - Fork 659
[DEBUG] Add more log to debug interface #5172
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
[DEBUG] Add more log to debug interface #5172
Conversation
|
|
|
Thanks for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds debug logging to the weight update interface to help distinguish which port requests are coming from in multi-DP (Data Parallel) scenarios.
- Adds logging at the entry point of
update_model_weightandclear_load_weightfunctions - Logs the return status codes (200, 404) for each execution path
- Includes contextual information (port number and error messages) in all log entries
| update model weight | ||
| """ | ||
| if app.state.dynamic_load_weight: | ||
| api_server_logger.info(f"Recevice command: update_model_weight in port: {args.port}") |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling error: "Recevice" should be "Receive".
| """ | ||
| clear model weight | ||
| """ | ||
| api_server_logger.info(f"Recevice command: clear_load_weight in port: {args.port}") |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling error: "Recevice" should be "Receive".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
增加更多日志以便于debug权重更新接口
Motivation
当前多DP无法区分请求来源于哪个端口,增加日志区分
Modifications
Usage or Command
Accuracy Tests
Checklist
[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]]pre-commitbefore commit.releasebranch, make sure the PR has been submitted to thedevelopbranch, then cherry-pick it to thereleasebranch with the[Cherry-Pick]PR tag.