Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the change preserving rollout fields introduced in later dataset rows.
No open issues 🎉
What changed in this PR
Fixes #719 by preserving in-memory rollout input fields that first appear in later dataset rows.
Changes:
- Builds columns from all rows, filling missing values with
None. - Preserves the default index when
extra_infois missing. - Adds a veRL collator regression test and documents missing-field behavior.
| File | Description |
|---|---|
tests/verl/test_dataset.py |
Verifies later-row hints and indices survive collation. |
docs/20-trainer-configuration.md |
Documents field preservation and missing values. |
agentlightning/verl/dataset.py |
Collects all columns and handles null metadata. |
Review effort: Balanced
Author
|
This branch has not been deployed
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.
Fixes #719.
LoadedDatasetused the first row to infer columns, so rollout inputs silently lost fields introduced by later rows. Build columns from all rows and keep missing values asNone. A row withoutextra_infostill gets the default index.The regression uses the veRL collator to check that a later row's
hintreaches the batch and that the two rows keep indices0and9. The trainer guide documents how missing fields are represented.Validation
python -m pytest -q tests/verl/test_dataset.py tests/verl/test_agl_rollout_manager.py— 14 passed on Ubuntu (WSL) with the lockedverl-cpudependencies. The new test fails withKeyError: 'hint'before the fix.python scripts/check_headers.py, andgit diff --checkpassed.mkdocs build --strictpassed. No GPU training run was needed for this data-loading regression.Codex assisted with investigation, implementation, and local verification.