Repository navigation
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE
I found one RISK: error-mode enforcement rejects supported ToolSandbox and Aviary pointer rows. There is also a documentation NOTE about guarantees that differ between the two validation checks.
I inspected all three changed files and traced the affected collation and runtime contracts. This was a static review; I did not execute tests.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
9fb22c4 to
f6c2d54
Compare
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE
Both prior findings still apply: one RISK for supported ToolSandbox and Aviary pointer rows rejected by collation, and one documentation NOTE about validation-mode guarantees.
I verified the earlier counterexamples against the current source and traced receiver selection, runtime request models, and metrics-preservation tests. This was a static follow-up review; I did not execute tests. The previous reviewed tree was unavailable, so I could not compare inter-review changes and did not restart a full-PR review.
Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.
f6c2d54 to
1435e14
Compare
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE
Both findings from review 5969399220 still apply: one RISK for runtime-valid ToolSandbox and Aviary pointer rows rejected by collation, and one documentation NOTE about validation-mode guarantees.
I verified both counterexamples against the current source and checked their runtime contracts and metrics-preservation tests. This was a static follow-up review; I did not execute tests. The previous reviewed tree was unavailable, so I could not compare inter-review changes and did not restart a full-PR review.
Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.
1435e14 to
f9cf1bf
Compare
|
/review reset=true |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP
I found one documentation NOTE. The earlier ToolSandbox/Aviary omission failure is fixed, and the validation-mode bullets now distinguish request failures from task-schema early exit and local parsing failures.
I inspected all three changed files and traced the affected request, collation and metrics paths. Two parallel review reports were unavailable, so I inspected those topics directly. This was a full static review; I did not execute tests.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
f9cf1bf to
1ef8502
Compare
78b0d96 to
661151e
Compare
1ef8502 to
4e5b287
Compare
gym dataset collate checked every row as a run request but only recorded which rows failed. It never reported them, so the rows were collated and collation exited 0 in every task_data_validation mode. The run then hit HTTP 422 later, for example on tools in Chat Completions format. Rows that fail the request check now follow task_data_validation: error raises once after every dataset is read and lists each failing file, writing no metrics sidecar for it; warn prints a report per file; off reports nothing. Each report counts the failing rows and gives the first five reasons, so it stays short on large datasets, and counts a row repeated by num_repeats once. The prepare-and-validate docs now describe both row checks. Signed-off-by: Ananth Subramaniam <[email protected]>
4e5b287 to
279a980
Compare
|
/review reset=true |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP
I found no material concerns. The missing-request troubleshooting entry now matches the omission behavior and regression assertions, so the prior NOTE is resolved.
I reviewed all three changed files and traced request validation, metrics preservation, report aggregation and collation failure paths. This was a full static review; I did not execute tests.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
Before and after
Before: collate checks every flat row as a run request but only records which rows fail. It never reports them, so the rows are collated, collation exits 0 in every
task_data_validationmode, and the run fails later with HTTP 422.flowchart LR B1["Flat row"] --> B2["Checked as BaseRunRequest"] B2 -->|"fails"| B3["Recorded, never reported"] B3 --> B4["Collation exits 0 and writes the row"] B4 --> B5["At rollout, the server rejects the row with HTTP 422"] classDef bad fill:#fde2e1,stroke:#c0392b,color:#000 class B3,B4,B5 badAfter: the failing rows follow
task_data_validation, anderrormode stops collation before any metrics file is written for a failing dataset.flowchart LR A1["Flat row"] --> A2["Checked as BaseRunRequest"] A2 -->|"fails"| A3{"task_data_validation"} A3 -->|"error"| A4["Collation fails after every dataset is read, no metrics file for the failing dataset"] A3 -->|"warn"| A5["Report printed, row left out of metrics"] A3 -->|"off"| A6["No report, row left out of metrics"] classDef good fill:#dff5e3,stroke:#1e8449,color:#000 class A3,A4,A5 goodWhat changed and why
The common case is a training dataset whose tools are in Chat Completions format (
{"type": "function", "function": {"name": ...}}) instead of the flat Responses API format. Thetask_data.pycheck doesn't look at tools, so only the request check can catch this. When token capture is on, a 422 at rollout stops the run after the generation for the row is already spent.errorfails collation after every dataset is read, and lists each failing file. A dataset with failing rows gets no metrics sidecar, so a rerun after the rows are fixed doesn't hit a conflicting-metrics error.warnprints a report per file and goes on.offreports nothing.Each report has the shape of the
task_data.pyreport: a count of failing rows, the reasons for the first five, then... and N more rows, so it stays short on large datasets. A row repeated bynum_repeatscounts once. Each reason names the first failing field:Rows that fail the request check are left out of the metrics, as before. A row without
responses_create_paramsis not reported: agents such astoolsandbox_agentandaviary_agentfill the request in, and their request models live in theirapp.py, which data tooling does not import. Its other fields are still checked against a run request with an empty input, and it stays out of the metrics, as before.compute_sample_metricskeeps its signature, and a private sibling returns the rejection reason. The prepare-and-validate docs said invalid rows are silently skipped, which was wrong: they were collated as they were. The docs now describe both row checks, the three settings and a sample report.Issue
None filed. This came up when two training datasets reached a run with rows the servers rejected with HTTP 422. One had Chat Completions tools, which this change catches. The other had missing task fields, which the
task_data.pycheck already catches.Validation
error,warnandoff, error mode listing every failing file and writing no sidecar, the five-reason cap, counting each repeated row once, rows that are not JSON or not an object, and a row withoutresponses_create_paramsthat collates inerrormode but still needs valid controls. They fail onmain.gym dataset collate --mode train_preparationon a dataset where half the rows have Chat Completions tools: onmainit exits 0 in both modes with no report. With this change it exits 1 witherrorand the report above, and exits 0 withwarnand the same report printed. A rerun after fixing the rows inerrormode finds no stale sidecar and exits 0.Rollout evidence
N/A. The change affects data preparation only; no environment, agent or verifier behavior changes. Collation was run end to end, as listed above.
Compatibility
example_validation(the PR gate) resolves toerror. No committed example dataset has a row that fails the request check, so the gate stays green.train_preparationstill resolves towarn, the mode NeMo RL uses. A training run that wants collation to stop on bad rows passes+task_data_validation=error.