Skip to content

Show attributed task runtime in wall time - #493

Merged
gregorybchris merged 4 commits into
mainfrom
chrisg/runtime-worker-seconds
Oct 17, 2026
Merged

gregorybchris merged 4 commits into
mainfrom
chrisg/runtime-worker-seconds

Conversation

@gregorybchris

@gregorybchris gregorybchris commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

The dashboard now shows attributed task runtime in wall time, the same unit as the other runtime bases.

Why

The client's attributed_inference_seconds is the task's share of inference worker time, summed over the run's workers. On a run with provider.num_instances=N it reads up to N times the run's processing time. The measured and estimated bases, and with_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_runtime divides attributed seconds by the run's inference worker count. The count comes from len(provider_init_seconds); the async runner requires one entry per worker (runner.py, the check after wait_for_init_times). It defaults to 1 when the map is missing.
  • Docs: the services/runtime.py docstring, RuntimeBasis in api-types.ts (schema regenerated), and BASIS_HELP in 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 check
  • cd dashboard/api && TEST_DATABASE_URL=postgresql+asyncpg://olmo@localhost:5433/olmo_eval_test uv run pytest -q against 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.ts

Reviewed by two agent passes before opening.

🤖 Generated with Claude Code

gregorybchris and others added 2 commits October 16, 2026 20:35
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]>
@gregorybchris
gregorybchris merged commit fa892c1 into main Oct 17, 2026
11 checks passed
@gregorybchris
gregorybchris deleted the chrisg/runtime-worker-seconds branch October 17, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant