Skip to content

[Sync][misc] #1975 engine-agnostic riders (data.py debug-assert widen + parallel_check sweep) - #156

Merged
CalvinXKY merged 1 commit into
mainfrom
sync/misc-shorter-readme-riders
Jun 7, 2026
Merged

[Sync][misc] #1975 engine-agnostic riders (data.py debug-assert widen + parallel_check sweep)#156
CalvinXKY merged 1 commit into
mainfrom
sync/misc-shorter-readme-riders

Conversation

@aoshen02

@aoshen02 aoshen02 commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

The two engine-agnostic riders split out of slime #1975 (the rest — version.txt/build_conda/dead sglang patch-dirs — is N/A for vime; see #107):

  • data.py debug-assert widen: log_probs -0.5→-1, entropy 0.5→1
  • test_qwen3_0.6B_parallel_check sweep [1,2,4,8]→[1,2,4] via parallel_sizes + skip when tp*pp*cp > num_gpus

Mirror slime. (#1985/#1986 — the larger test-shortening — are sequenced AFTER mega-A/G merge, tracked in #107.)

🤖 Generated with Claude Code

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request simplifies the parallel configuration checks in the Qwen3 test suite and relaxes the assertion thresholds for rollout log probabilities and entropy. Feedback suggests further relaxing these assertion bounds (to -15 for log probabilities and 12 for entropy) to prevent fragile test failures in CI, as the current thresholds remain too tight for realistic generation tasks.

assert abs(reduced_log_dict["rollout/log_probs"] - reduced_log_dict["rollout/ref_log_probs"]) < 1e-8
if "rollout/log_probs" in reduced_log_dict:
assert -0.5 < reduced_log_dict["rollout/log_probs"] < 0
assert -1 < reduced_log_dict["rollout/log_probs"] < 0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The assertion threshold for rollout/log_probs is still very tight at -1 (which corresponds to an average token probability of ~36.8%). For many generation tasks, the average token probability can naturally be lower, which will cause flaky CI failures. Consider relaxing this bound significantly (e.g., to -15) to prevent fragile test failures while still catching extreme anomalies or NaNs.

Suggested change
assert -1 < reduced_log_dict["rollout/log_probs"] < 0
assert -15 < reduced_log_dict["rollout/log_probs"] < 0

assert -1 < reduced_log_dict["rollout/log_probs"] < 0
if "rollout/entropy" in reduced_log_dict:
assert 0 < reduced_log_dict["rollout/entropy"] < 0.5
assert 0 < reduced_log_dict["rollout/entropy"] < 1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The assertion threshold for rollout/entropy is still very tight at 1. For a model with a large vocabulary like Qwen (V ≈ 150k, max entropy ≈ 11.9), an average entropy of 1 is extremely low. If the model's generations become slightly more diverse, the entropy can easily exceed 1, leading to flaky CI failures. Consider relaxing this upper bound significantly (e.g., to 12) to avoid fragile test failures.

Suggested change
assert 0 < reduced_log_dict["rollout/entropy"] < 1
assert 0 < reduced_log_dict["rollout/entropy"] < 12

…den + parallel_check sweep)

Mirror slime #1975 (the 2 engine-agnostic riders only; version/build_conda/v0.5.12.post1
patch-dirs = N/A for vime):
- data.py: widen rollout sanity asserts (log_probs -0.5->-1, entropy 0.5->1)
- test_qwen3_0.6B_parallel_check.py: simplify TP/PP/CP sweep [1,2,4,8]->[1,2,4]
  via parallel_sizes + product<=num_gpus guard.

#1985/#1986 NOT included here: their target test files are introduced by mega-A/B/C/G
(not yet in main) -> must sequence after those mega-PRs merge.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@aoshen02
aoshen02 force-pushed the sync/misc-shorter-readme-riders branch from f10e5d9 to ad68337 Compare June 5, 2026 08:23
@aoshen02
aoshen02 marked this pull request as ready for review June 7, 2026 13:06

@CalvinXKY CalvinXKY left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CalvinXKY
CalvinXKY merged commit 82ed2d1 into main Jun 7, 2026
10 of 14 checks passed
@aoshen02
aoshen02 deleted the sync/misc-shorter-readme-riders branch June 8, 2026 14:17
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.

2 participants