Commit Graph

82 Commits

Author SHA1 Message Date
Danny 1e7839f936 JetLink: Big model widget shows which model drives and the Jetlink or Chestnut state 2026-11-19 06:05:22 -08:00
firestar5683 f2e6711cde Bundle Cheddar as the default driving model 2026-11-18 08:29:31 -06:00
firestar5683 fa578e8abf Restore matched target filtering and timing for gas Kona 2026-11-17 17:20:28 -06:00
Dom 4907701c7d Align retained intent and display fixtures with current contracts
Preserve all cadence denial checks with cruise on and off; verify fresh damping 3 and expired fallback 100. Cover Subaru plus VW delay reset and accepted SLC rendering on every frame. Repair Toyota integration caller after CCM test rename. Focused checks pass: 180 cadence/damping, 111 Jetlink/SLC, 116 dedicated HKG negatives, 64 fresh-camera, stale-camera and Toyota integration. Combined extra suites remain blocked by cloud AF_UNIX logging; no aggregate pass claimed. Production/native files unchanged; canonical receipt refreshed.
2026-11-17 00:35:26 -06:00
Dom 286a932b52 Model captured Tensor output in Jetlink warp fixture
Keep production captured-output guard intact and preserve coherent-move/fallback assertions. Match fixture to required Tensor protocol and add missing/non-Tensor rejection checks.18warp tests,Ruff and typing pass; broader adapter check42pass/6missing-clang environment blocks. No production/native changes; canonical inventory refreshed.
2026-11-16 23:17:54 -06:00
Dom 482033518c Align vehicle fixtures and avoid reserved unittest loader name
Test an unsupported two-count Polestar replica lag while preserving RX/TX rejection. Match current GM stock-owner flags without removing any parser-validity assertion. Rename the imported laboratory fixture so unittest does not invoke a module as load_tests. 125 combined focused checks pass;7 unittest checks independently pass; Ruff passes. Production and native artifacts unchanged; canonical inventory refreshed.
2026-11-16 23:13:15 -06:00
firestar5683 2dc0647a79 Qualify Model Lab tests across runtimes 2026-11-15 21:34:46 -06:00
firestar5683 d021cb21a0 Reduce Model Lab replay overhead 2026-11-15 18:17:10 -06:00
firestar5683 18c8a68e74 Narrow Model Lab test requests 2026-11-15 17:40:33 -06:00
firestar5683 1837b76919 Queue model selections without parked restrictions 2026-11-15 17:04:36 -06:00
firestar5683 8cf99c94f5 Reduce Model Lab camera copy cost 2026-11-15 16:40:12 -06:00
Dom fdb35903a0 Make model and now-playing test fixtures type safe 2026-11-14 06:25:50 -06:00
Prabhaav Pillai e5dac7456d - Added the Toggles-style directional swipe between Single model and Model pair.
- Fixed Developer’s transition, including when entering from Vehicle.
- Aligned reverse-proxy fields and Save spacing using shared Galaxy styles; no new CSS.
- Updated the Jetlink guide URL which was broken.
2026-11-14 00:32:11 -05:00
Danny 3f6e239cc5 ModelManager: Cleanup 2026-11-13 18:23:26 -08:00
Danny 137b1a55a5 Model Manager: Refresh model controls and show download progress
Co-authored-by: AngusBell97 <124716116+AngusBell97@users.noreply.github.com>
2026-11-13 18:23:26 -08:00
Dom 87cd9c5194 Type Model Laboratory AST statements explicitly 2026-11-13 14:08:14 -06:00
firestar5683 0bb3553777 Fix Model Laboratory startup and reviewed source bindings 2026-11-13 12:05:48 -06:00
firestar5683 9e102e8f12 Isolate Laboratory tests from bundled model verification 2026-11-12 14:05:33 -06:00
firestar5683 fbaddd5ddd Align runtime test fixtures with current presentation and planner inputs 2026-11-11 20:29:45 -06:00
firestar5683 2638564c72 Show only model names on the home screen 2026-11-11 17:45:29 -06:00
firestar5683 85df762e34 Fix Laboratory startup and steering availability display 2026-11-11 17:20:00 -06:00
firestar5683 0ffe5859ff Show Laboratory model pairs and selection status 2026-11-11 16:05:50 -06:00
firestar5683 241f7f4b86 Apply modeld low-speed curvature floor to catalog models 2026-11-11 15:00:11 -06:00
firestar5683 99c3e82d28 Preserve guard interfaces and make runtime types explicit 2026-11-10 17:37:25 -06:00
firestar5683 0b1a773181 Align model runtime types while preserving source guards 2026-11-10 16:50:00 -06:00
firestar5683 960bc90d73 Align CI fixtures with radarless braking and model runtime support 2026-11-10 16:00:19 -06:00
firestar5683 682b3fee0c Limit Laboratory pairs to one Big model 2026-11-10 15:26:01 -06:00
firestar5683 b629f70ce6 Enable Model Laboratory pairs 2026-11-10 15:10:24 -06:00
firestar5683 febb4ebdb2 Isolate Model Runtime Caches By User 2026-11-09 15:45:03 +00:00
firestar5683 d64fb74c31 Preserve authenticated driver monitoring artifacts during builds 2026-11-06 07:46:10 -06:00
firestar5683 5c9eeb707a Queue model selections for the next onroad cycle 2026-11-05 12:03:41 -06:00
Dom 5f2caf8249 Align loader affinity fixture with captured camera dimensions 2026-11-03 14:24:38 -06:00
firestar5683 1ecde54bb0 Complete synchronization test fixtures 2026-11-02 16:38:34 -06:00
YassineYousfi 55e4f4289a bump tinygrad usb wrap fix (#39204) 2026-11-02 13:38:46 -06:00
Adeeb Shihadeh fa3138c929 bump msgq: nanobind (#39200) 2026-11-02 12:28:46 -06:00
Dom 268370640d Type Jetlink test parameters for model selections 2026-10-29 17:00:01 -05:00
Zeph Leggett 5f8638e894 Jetlink: Active Big chooses Jetlink's model by its ONNX 2026-10-29 16:38:54 -05:00
Zeph Leggett 51e866a038 Jetlink: Active Big chooses Jetlink's model by its ONNX
With Jetlink running the big model (on, supported, no Chestnut), Active Big
in Galaxy and on the device is Jetlink's choice: the model manager marks a
big model selectable when its catalog entry names the ONNX it was built from
(source_sha256), downloaded or not, since Jetlink's host fetches the ONNX
itself. The choice is the new JetlinkModel param, {sha256, displayName}, the
adapter's big-model key; Chestnut's own Active Big is left as it was. None
leaves the model to the Jetlink app, and the manager words it.

A newer choice made in the Jetlink app is written back into JetlinkModel by
jetlink, so Active Big shows the model that drives; one StarPilot does not
list is named as the app's.

JetlinkModel is a new key in params_keys.h: the native params libraries need
their usual rebuild.
2026-10-29 16:03:03 -05:00
firestar5683 e2fdc2a4dc Remember unchanged model verification across restarts 2026-10-29 14:59:31 -05:00
firestar5683 312eb9e94d Recover model verification after a worker failure 2026-10-29 14:51:14 -05:00
firestar5683 3b04ff3cc4 Keep downloaded models selectable offline 2026-10-29 12:27:56 -05:00
Zeph Leggett cf4301b16e Jetlink: take over on native02e with the small model's warp 2026-10-27 12:10:26 -05:00
firestar5683 4cc02a4a8f Validate Extracted GPU Loader Fixture Callable 2026-10-27 11:12:20 -05:00
firestar5683 6effaaa356 Accelerate Chestnut model loading 2026-10-27 10:55:08 -05:00
Zeph Leggett 8b4902209c Jetlink: move the warp output when the small model loads
The output used to move after the small model's warmup had linked the
warp to its address, which needed the warp to link again by dropping a
private tinygrad cached property. Had that ever stopped working, the
small model's own warp would have kept writing the freed memory.

modeld now asks the adapter's coherent_warp() (Jetlink's make_coherent
with Jetlink on, off legacy9d) and load_verified_model moves the small
model's warp output before warmup(), as Jetlink's own warp moves its
output before its first call. CatalogWarp only reads the answer
(warp_copied): sent from where it is, or copied out, chosen once.
2026-10-26 19:32:00 -05:00
Zeph Leggett f36b39a68b Jetlink: send the warp from coherent memory on a comma
tinygrad maps the warp's QCOM output write-combined, which the CPU reads
uncached: CatalogWarp spent ~2.9 ms a frame copying the frame out, out
of the 46 ms a host has to answer in. It now moves the output to
IO-coherent write-back memory with Jetlink's warp.make_coherent, as
Jetlink's own warp does, and the link sends straight from it (0.22 ms
measured for Jetlink's warp). The warp has run by then, and tinygrad
bakes a held buffer's address in at link time, so its program links
again on the next call. If the kernel refuses the memory, the frame is
copied out as before, and the adapter's log says which.

TinyJit's per-call input checks are left alone: 0.045 ms a call on a
Mac under this tinygrad, not the ~1 ms they cost under Jetlink's.
2026-10-26 19:04:34 -05:00
Zeph Leggett 6e430242e3 Jetlink: the link's warp goes through the runner's warp_frames
CatalogModelState.warp_frames is the warp branch of run(), which run()
and CatalogWarp now both call, so the link enqueues exactly what the JIT
was captured with and reads npy and input_queues live rather than as
they were when it was built. CatalogWarp binds the output once (the
captured JIT returns the same buffer every call), reuses one pair of
warm-up frames for the probe and frees them, and drops their blob
cache entries. model_warp lets a failure raise without logging it
too: Jetlink logs it as it keeps the small model.
2026-10-26 18:50:12 -05:00
dirwin31 6c9ae11f63 Jetlink: send the small model's warp off legacy9d
Jetlink's stock driving warp is a legacy9d pickle, which a native02e
modeld cannot load, so the link never took over there. The adapter's
model_warp (Jetlink's optional hook since 0605e34) now hands Jetlink
the small model's own camera warp (CatalogWarp) on any other runtime:
the same JIT, inputs and blob cache, read into host memory after each
frame, with a probe at load that refuses an output not read live.
Under legacy9d it returns None and Jetlink loads the stock pickle.

From #253, without its edit to jetlink_repo or the hold tolerance
override.
2026-10-26 18:43:20 -05:00
firestar5683 eb7afba097 Show Jetlink model status in GPU feedback 2026-10-25 17:41:51 -05:00
firestar5683 27b552cbd8 Reset Jetlink fallback history without GPU compilation 2026-10-25 17:39:43 -05:00