Skip to content

FleetBench at 120 Hz, and policy: trained downloads when no copy is installed - #1437

Merged
transfix merged 2 commits into
masterfrom
bench/fleet-120hz
Nov 22, 2026
Merged

transfix merged 2 commits into
masterfrom
bench/fleet-120hz

Conversation

@transfix

Copy link
Copy Markdown
Owner

The last item left in FL1 of FLEETS_AND_NIGHT_ROADMAP.md (besides D3, which goes with OW7) was re-measuring FleetBench at OW1's 120 Hz clock. Doing that turned up a bug in FL1b (#1403): policy: trained never downloads the weights. Both are here, to save a second CI run.

FleetBench at 120 Hz

The bench still assumed the 100 Hz clock:

  • six physics steps a tick;
  • a 60 ms tick for the speed it keeps;
  • step_world(6) for the [fleet doc] rows, which is 0.05 s at 120 Hz.

It now uses cvc::kSimTickQuanta and cvc::kSimTick. The [fleet doc] fleet is pinned to policy: builtin, so it measures the same thing offline and with weights installed. Its line also says what drives and what it plans with.

§3.1 of the roadmap has the new numbers, the median of three runs on the same laptop, with the 100 Hz ones beside them. At the demos' 3.6x a tick must now take under 16.2 ms.

Fleet Tick at 120 Hz Speed it keeps At 100 Hz
400 kinematic 17.0 ms 3.4x 15.8 ms, 3.8x
800 kinematic 35.8 ms 1.6x 32.2 ms, 1.9x
60 Jolt 11.8 ms 4.9x 9.4 ms, 6.4x
800 in a document, summary keys 13.5 ms 4.3x 11.4 ms, 5.3x
  • The clock's effect: a tick has a seventh physics step, and a step costs about what it did.
  • What still keeps 3.6x: 800 kinematic vehicles with summary keys, and 60 Jolt vehicles.
  • What no longer does: 400 kinematic vehicles without summary keys.
  • Not separated: these runs are also after FL1b to FL1d, and the rest of a tick is 1 to 3 ms higher.
  • Not traced: loading a fleet takes about twice FL1a's time (800: 48 to 88 ms). The load steps nothing, so it isn't the clock.

policy: trained downloads when no copy is installed

D8's order is $CVC_NAV_WEIGHTS, then a copy installed in the prefix, then the download of cvcpkg://cvc/grl-snam-weights, then the built-in net.

  • The bug: resolve_policy took coef_mlp::default_weights_path() as the installed copy. That function names the baked path even when nothing is there, so a load can say where it looked. So an install without the weights never reached the download. It fell back to the built-in net, saying it can't read share/cvc/nav/coef_mlp.cvcnav.
  • The fix: only a file that is there counts as an installed copy. $CVC_NAV_WEIGHTS, when set, is still used as given.

Tests

ariadne_scene_world_test passes locally: 109 of 109 (MSVC, Release, Jolt).

  • AFleetHasANavigatorAndAPolicyOfItsOwn: trained, without $CVC_NAV_WEIGHTS and with no copy installed, now goes to the download.
    • The test's network is off, and its registry points at a port with nothing on it, so nothing is fetched. The fallback then gives the download's reason.
    • Without the fix, this fails on the can't-read fallback. I checked that locally.
    • Where a copy is installed, the test checks that it is used instead.
  • FleetBench only runs with CVC_FLEET_BENCH=1, so CI skips it.

… re-measured

The bench still assumed OW1's predecessor clock: six physics steps a tick, a 60 ms tick for the
speed it keeps, and step_world(6) for the [fleet doc] rows (0.05 s at 120 Hz). It now uses
cvc::kSimTickQuanta and cvc::kSimTick. The [fleet doc] fleet is pinned to policy: builtin, so it
runs the same offline as with the weights installed, and its line says what drives and what it
plans with.

FLEETS_AND_NIGHT_ROADMAP.md 3.1: FL0's and FL1a's tables re-measured at 120 Hz (median of three
runs), the 100 Hz numbers beside them. A tick has a seventh physics step at about the old cost a
step; 800 kinematic vehicles with summary keys still keep 3.6x (13.5 ms against 16.2); 400 without
no longer do. Loading a fleet takes about twice FL1a's time, not from the clock (load steps
nothing), not traced yet.
…ed (D8)

resolve_policy took coef_mlp::default_weights_path() as the installed copy, but that names the
baked path even when nothing is there (so a load says where it looked). So an install without
the weights never reached D8's third step, the download of cvcpkg://cvc/grl-snam-weights: it
fell back to the built-in net saying it can't read share/cvc/nav/coef_mlp.cvcnav. Only a file
that is there is an installed copy now; $CVC_NAV_WEIGHTS, when set, is still used as given.

AFleetHasANavigatorAndAPolicyOfItsOwn: trained without $CVC_NAV_WEIGHTS and no copy installed
goes to the download (here the test's network is off and its registry isn't there, so it falls
back saying the download's why). Without the fix it fails on the can't-read fallback.
@transfix
transfix merged commit 8569a4e into master Nov 22, 2026
30 checks passed
@transfix
transfix deleted the bench/fleet-120hz branch November 22, 2026 02:21
transfix added a commit that referenced this pull request Nov 22, 2026
…clock-rate

JX2 deleted .github/scripts/pin-wasm-pre-jx1.sh, so this branch's numpy pin goes with it.
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