Skip to content

[RL] Adapt async rollout checkpoint update flow#7042

Open
jackyYang6 wants to merge 2 commits intoPaddlePaddle:developfrom
jackyYang6:rlhf-async
Open

[RL] Adapt async rollout checkpoint update flow#7042
jackyYang6 wants to merge 2 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 20.00000% with 20 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@11ad95b). 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 0.00% 2 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.74%           
==========================================
  Files              ?      399           
  Lines              ?    56396           
  Branches           ?     8916           
==========================================
  Hits               ?    41590           
  Misses             ?    11852           
  Partials           ?     2954           
Flag Coverage Δ
GPU 73.74% <20.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.

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.

3 participants