Skip to content

[RL] Adapt async rollout checkpoint update flow#7042

Merged
Jiang-Jia-Jun merged 5 commits intoPaddlePaddle:developfrom
jackyYang6:rlhf-async
Mar 30, 2026
Merged

[RL] Adapt async rollout checkpoint update flow#7042
Jiang-Jia-Jun merged 5 commits intoPaddlePaddle:developfrom
jackyYang6:rlhf-async

Conversation

@jackyYang6
Copy link
Copy Markdown
Contributor

@jackyYang6 jackyYang6 commented Mar 27, 2026

Motivation

This PR aligns the related interfaces and fixes integration issues in the async checkpoint update path.

Modifications

  • Align update_weights parameter passing in the RL async update flow
  • Adapt checkpoint verification parameter propagation across:
    • api_server
    • gpu_worker
    • gpu_model_runner
    • dynamic_weight_manager
  • Sync the same control-path adaptation for Metax worker/model runner
  • Fix cross-layer interface mismatch in async rollout checkpoint updates

Usage or Command

Example control request used in RL async integration:

curl http://<host>:<port>/v1/update_weights \
  -H "Content-Type: application/json" \
  -d '{
    "version": "0",
    "verify_checksum": false
  }'

Typical control flow during async rollout:

pause -> update_weights -> resume

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.

@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Mar 27, 2026

Thanks for your contribution!

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 27, 2026

Codecov Report

❌ Patch coverage is 28.00000% with 18 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@a7cbe3f). Learn more about missing BASE report.

Files with missing lines Patch % Lines
fastdeploy/rl/dynamic_weight_manager.py 6.25% 15 Missing ⚠️
fastdeploy/entrypoints/openai/api_server.py 66.66% 0 Missing and 1 partial ⚠️
fastdeploy/worker/gpu_model_runner.py 66.66% 1 Missing ⚠️
fastdeploy/worker/gpu_worker.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #7042   +/-   ##
==========================================
  Coverage           ?   73.63%           
==========================================
  Files              ?      402           
  Lines              ?    56434           
  Branches           ?     8904           
==========================================
  Hits               ?    41555           
  Misses             ?    11947           
  Partials           ?     2932           
Flag Coverage Δ
GPU 73.63% <28.00%> (?)

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.

liyonghua0910
liyonghua0910 previously approved these changes Mar 27, 2026
Jiang-Jia-Jun
Jiang-Jia-Jun previously approved these changes Mar 30, 2026
@Jiang-Jia-Jun Jiang-Jia-Jun merged commit 05f2d95 into PaddlePaddle:develop Mar 30, 2026
48 of 63 checks passed
jackyYang6 added a commit to jackyYang6/FastDeploy that referenced this pull request Mar 30, 2026
* update checkpoint-transfer flow and control update_weights params

* test: add update_weights route validation

(cherry picked from commit 05f2d95)
jackyYang6 added a commit to jackyYang6/FastDeploy that referenced this pull request Mar 30, 2026
* update checkpoint-transfer flow and control update_weights params

* test: add update_weights route validation

(cherry picked from commit 05f2d95)
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