Repository navigation
feat(observability): add per-rollout and per-run aggregate observability metrics - #2790
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. |
|
🌿 Preview your docs: https://nvidia-preview-glazuka-automated-insights.docs.buildwithfern.com/nemo/gym Here are the markdown pages you've updated: |
3150c25 to
b7ae7a6
Compare
|
/ok to test b7ae7a6 |
|
/claude review |
|
SHIP — LGTM, no reliability concerns. Reviewed the correctness-critical paths for this additive
The |
Glorf
left a comment
There was a problem hiding this comment.
Added two main comments I had, overall lgtm!
|
/ok to test b7aa596 |
|
/claude review |
b7aa596 to
1ba8519
Compare
|
Review incomplete: the PR revision changed during review. This review targeted head |
…ken counts Signed-off-by: Gosia Lazuka <[email protected]>
…_metrics.json Signed-off-by: Gosia Lazuka <[email protected]>
Signed-off-by: Gosia Lazuka <[email protected]>
Signed-off-by: Gosia Lazuka <[email protected]>
Signed-off-by: Gosia Lazuka <[email protected]>
… is absent Signed-off-by: Gosia Lazuka <[email protected]>
…ummary Signed-off-by: Gosia Lazuka <[email protected]>
1ba8519 to
ed84360
Compare
|
/ok to test ed84360 |
|
/claude review |
|
SHIP WITH CARE — additive RISK — NOTES (author's call):
Async/API surface clean: no httpx, no |
Signed-off-by: Gosia Lazuka <[email protected]>
|
/ok to test 55ea85f |
What does this PR do?
Implements the P0 scope of the "Automated Insights" RFC (#1703): surfaces per-rollout token efficiency metrics that currently require custom extraction scripts against raw observability data.
ng_perf: a new field attached to each rollout record (alongsideng_trajectory/ng_model_call_capture)num_turns,num_tool_calls,prompt_tokens,cached_prompt_tokens,completion_tokens,reasoning_tokens, and an independently measuredtotal_latency_msnum_turnssums each invocation's own reasoning-turn count (explicit TrajectoryTurn records when the harness emits them, falling back to its resolved model-call count, then to 1) so a single invocation spanning many steps isn't undercounted as one turnobservability_enabled=Trueand at least one reasoning turn was observedperf_summary: a new block in_aggregate_metrics.jsonng_perfinto mean/median/total token stats, mean/median tokens-per-turn, a full distribution (mean/median/std/min/p90/max) fornum_turns, and p50/p90/p99/meantotal_latency_msng_perf.Both are purely additive; see
fern/versions/latest/pages/model-server/model-call-capture.mdxfor the schema.Completes P0 scope of #1703 (P1+ to follow).
Checklist
pre-commit run --all-files) (so CI lint/format/copyright pass).git commit -s) (so the DCO check passes).