-
Notifications
You must be signed in to change notification settings - Fork 85
[Sync][misc] #1975 engine-agnostic riders (data.py debug-assert widen + parallel_check sweep) #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -472,9 +472,9 @@ def log_rollout_data( | |||||
| # assert reduced_log_dict["rollout/log_probs"] == reduced_log_dict["rollout/ref_log_probs"] | ||||||
| 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 | ||||||
| if "rollout/entropy" in reduced_log_dict: | ||||||
| assert 0 < reduced_log_dict["rollout/entropy"] < 0.5 | ||||||
| assert 0 < reduced_log_dict["rollout/entropy"] < 1 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The assertion threshold for
Suggested change
|
||||||
|
|
||||||
| if args.log_multi_turn: | ||||||
| log_multi_turn_data(rollout_id, args, rollout_data) | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The assertion threshold for
rollout/log_probsis 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.