Repository navigation
Show attributed task runtime in wall time - #493
Merged
Merged
Conversation
attributed_inference_seconds is summed over a run's inference workers, so on a run with N workers it reads up to N times the run's processing time. The other runtime bases (measured, estimated) and with_startup_seconds are wall time on the run's hardware. derive_runtime now divides attributed seconds by the run's worker count, taken from provider_init_seconds (one entry per worker), so every basis is in the same unit. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Oct 17, 2026
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.
The dashboard now shows attributed task runtime in wall time, the same unit as the other runtime bases.
Why
The client's
attributed_inference_secondsis the task's share of inference worker time, summed over the run's workers. On a run withprovider.num_instances=Nit reads up to N times the run's processing time. Themeasuredandestimatedbases, andwith_startup_seconds(inference plus wall-clock startup), are wall time on the run's hardware. So today the same task on an 8-worker run reads 39 s when it runs alone (measured) and about 300 s next to another task (attributed).What changed
derive_runtimedivides attributed seconds by the run's inference worker count. The count comes fromlen(provider_init_seconds); the async runner requires one entry per worker (runner.py, the check afterwait_for_init_times). It defaults to 1 when the map is missing.services/runtime.pydocstring,RuntimeBasisinapi-types.ts(schema regenerated), andBASIS_HELPin the UI.Runs already stored also change: their attributed runtime on multi-worker runs now reads in wall time. That is correct for batched runs. Streaming runs from current clients can overcount within a worker; #498 removes that on the client.
Affected specs: none. No task specs or stored data change; only the derived runtime the dashboard displays.
Merge order
This merges first. #498 then makes nearly every multi-task run record attributed time, which makes this normalization matter for most runs.
Validation
cd dashboard/api && uv run ruff check . && uv run ruff format --check . && uv run ty checkcd dashboard/api && TEST_DATABASE_URL=postgresql+asyncpg://olmo@localhost:5433/olmo_eval_test uv run pytest -qagainst Postgres 17 (all passed, including the new two-worker endpoint test)npm --prefix dashboard/ui run contract:check,npm --prefix dashboard/ui run typecheck,npx vitest run src/lib(43 passed),npx eslint src/lib/runtime.tsReviewed by two agent passes before opening.
🤖 Generated with Claude Code