Repository navigation
fix(flow-grpo): install cv2 system libs, cut OCR nightly to 240 min - #4696
Merged
Merged
Conversation
Signed-off-by: Yuki Huang <[email protected]>
yuki-97
force-pushed
the
yukih/flow-grpo-ocr-nightly-fix
branch
from
October 15, 2026 03:20
c0851ed to
3720560
Compare
…e nightly GPU-hour guard to 4820 Signed-off-by: Yuki Huang <[email protected]>
Contributor
Author
|
/ok to test 9686e4a |
yuki-97
marked this pull request as ready for review
October 15, 2026 15:37
sajadn
approved these changes
Oct 15, 2026
yuki-97
enabled auto-merge (squash)
October 15, 2026 17:00
This was referenced Oct 19, 2026
terrykong
pushed a commit
that referenced
this pull request
Oct 19, 2026
… to 240 min (#4789) Signed-off-by: Yuki Huang <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do ?
Gets the Flow-GRPO OCR nightly to start, and moves it from 1n8g to 2n8g so rollout fits in H100 memory. Test-suite scripts and recipe only, no library change.
What changed
1. Cut
NUM_MINUTES360 -> 240 in the nightly script. The nightly can only be scheduled with a 240-minute budget.2. Install the cv2 system libs before
uv syncincommon.env. The reward worker failed at startup:paddleocr 2.10.0 depends on the full
opencv-pythonandopencv-contrib-pythonwheels (uv.lock), and the rootpyproject.tomlexcludesopencv-python-headlessfrom the container, so the system libs have to come from apt. A headless swap inside the worker venv would be undone by theuv run --lockedsync on every worker start.3. Run the nightly on 2 nodes x 8 GPUs and rename it
flow_grpo-qwen-image-ocr-2n8g-dp16-lora. On 1n8g each of the 8 workers rolls out 4 prompts x 16 generations = 64 samples, andsample_trajectoryOOMs on the 80 GB H100 after 2 steps:On 2n8g each of the 16 workers rolls out 32 samples and the run passes all four checks (60 steps,
val/reward_mean0.786 -> 0.886,train/grad_normmax 0.0076). Slurm wall time is 3h18m of the 240-minute budget, about 40 minutes of which is the one-off source build offlash-attn,transformer-engineand friends in the container.train_micro_batch_sizestays 2: it only splitstrain_stepand does not touch rollout. The recipe,log_dir,checkpoint_dir, W&B name,nightly.txtand the README row follow the new name.Tests
1. Validated the 2n8g nightly on H100. All checks pass.
2. Raise the nightly GPU-hour guard 4793 -> 4820 in
test_recipes_and_test_suites.py. The recipe goes from 32 to 64 GPU-hours (16 GPUs x 240 min), taking thetools/launchdry-run total to 4809; 4820 is that + 20, rounded down to ten.🤖 Generated with Claude Code