Skip to content

Conversation

@Jiang-Jia-Jun
Copy link
Collaborator

@Jiang-Jia-Jun Jiang-Jia-Jun commented Nov 21, 2025

增加更多日志以便于debug权重更新接口

Motivation

当前多DP无法区分请求来源于哪个端口,增加日志区分

Modifications

Usage or Command

Accuracy Tests

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.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@paddle-bot
Copy link

paddle-bot bot commented Nov 21, 2025

Thanks for your contribution!

Copy link
Contributor

Copilot AI left a 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_weight and clear_load_weight functions
  • 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}")
Copy link

Copilot AI Nov 21, 2025

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".

Copilot uses AI. Check for mistakes.
"""
clear model weight
"""
api_server_logger.info(f"Recevice command: clear_load_weight in port: {args.port}")
Copy link

Copilot AI Nov 21, 2025

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".

Copilot uses AI. Check for mistakes.
Copy link
Contributor

Copilot AI left a 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.

@Jiang-Jia-Jun Jiang-Jia-Jun deleted the temp/0908-debug branch November 25, 2025 02:26
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