* ci: new age to build default models
* ci: compile big warp CPU kernels on device
* unhooked mock builds
* bump tinygrad
---------
Co-authored-by: discountchubbs <alexgrant990@gmail.com>
* modeld_v2: emu
* mock amd: x86 hw fma
* serve over libusb
* oop
* cache
* emu cache
* cache by cpu instruct
* parity cache
* replay check
* emuuuu
* rm
* bump
* emu
* change cache to hf
* ci: native arm qcom mock build
Run qcom mock builds on ubuntu-24.04-arm so the qcomcl compiler loads in-process instead of under qemu, keep tinygrad's compiled kernels between builds, and skip the timing-only replay on mock builds.
* Skip commaai checkout option
A from_sunnypilot input, ticked by default on manual runs, checks the model ref out of sunnypilot/sunnypilot directly instead of failing on commaai/openpilot first.
* Bump tinygrad
* Skip extra mock replays
* Bump tinygrad
* model fetch fallback
* lfs bucket fetch
* Update build-single-tinygrad-model.yaml
* Update sunnypilot-build-model.yaml
* false default
* Update test_models.yml
* not needed anymore
* drop registry load test
---------
Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
* Replace Git LFS with a custom Hugging Face bucket client
* Address review findings in the custom LFS client
- A failed download leaves the pointer (also for delayed blobs) and
filter.lfs.required is false, so git commands finish and ./lfs.py pull
fills the files in later.
- install() also replaces the unquoted pre-push hook from #38775 and a stock
git-lfs hook that `op post-commit` moved into post-commit.d.
- .git/lfs.py and the pre-push hook are replaced atomically.
- Pushing LFS objects without a token prints a one-line hint.
- op warns when the installed LFS client is missing or outdated.
- Ranged downloads write into one preallocated file instead of
concatenating parts.
- hf-xet moves from the core dependencies to the tools extra.
* Drop the ~/.local/bin PATH addition left from the uv-run transfer agent
* Keep filter.lfs.required so a broken LFS client can't commit raw files
* Keep shipping .lfsconfig only with the big model
* Keep a custom pre-push hook instead of failing the LFS pull
* Let the setup clone use the configured LFS client
The HF LFS repo is mirrored from the bucket, so stock Git LFS can smudge the clone.
* Keep git working without python3 with an sh LFS filter
scripts/lfs-filter runs lfs.py, or without python3 has git abort LFS filtering and keep the pointer files, like the git-lfs shim did. A process filter that can't start otherwise makes git fail regardless of filter.lfs.required. The abort only lets git continue when the filter isn't required.
* Drop the sh LFS filter and require the LFS filter again
lfs.py lives in the git dir and only needs python3, so a missing or rebuilt
venv, or a worktree without one, can't break git like the old git-lfs shim
guarded against. The sh fallback for a machine without python3 needed
filter.lfs.required=false, which also let a failing clean commit the raw file.
This reverts commit 437711998981c8c7bf65c2878881c547516d681a.
* Ship precompiled eGPU model and camera warps
Compile f78ed37d-afad-4dbc-8050-40ea885eedde/12864 through xx/ml_tools/openpilot_compile using the pinned tinygrad version.
* Precompile the existing master driving model
Use the unchanged master ONNX (SHA-256 6fee5937923c74848df4a63f6239eb6331c6274dd4bdb7a5d6ec0388a8b543d5) instead of updating the trained model.
* Compile camera warps on device
* Remove obsolete ONNX chunking and big model build check
* Chunk model artifacts only during release packaging
* Require model and camera warps for Chestnut readiness
* Recompile precompiled CPU helpers for the runtime host
* Ship the eGPU model with an ARM submission helper
* Exempt model pickles from the build product size limit
build-single-tinygrad-model and build-all-tinygrad-models gain a docs_repo
input (default sunnypilot/sunnypilot-models) so a fork can run either against
its own gh-pages catalog, next to the existing hf_repo input for the dataset.
build-all's setup job now checks out the repo and branch it was dispatched
from instead of sunnypilot/sunnypilot's default branch. That keeps the
manifest's tinygrad_ref tied to the code that compiled the models, and lets a
fork run the full rebuild against its own dataset and docs repo.
Claude-Session: https://claude.ai/code/session_01EGMnVnSk5inGTrd7kuDVG9
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: James Vecellio-Grant <159560811+Discountchubbs@users.noreply.github.com>
Both are disabled in the Actions tab and have not run in months:
- Release Drafter (release-drafter.yml) and its config
.github/release-drafter.yml: last run 2025-12-18
- Debug Discourse Posting (test-discourse.yaml.yml): one-off debug
workflow from #1435, last run 2025-10-28
The post-to-discourse composite action is kept; the prebuilt workflow
still uses it. docs, stale and jenkins scan are also disabled here but
are inherited from commaai/openpilot and left in place to avoid
modify/delete conflicts on every upstream sync.
Claude-Session: https://claude.ai/code/session_01WAnUCRcA7Hp68qxyL11Wvm
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: James Vecellio-Grant <159560811+Discountchubbs@users.noreply.github.com>
* modeld_v2: spatial features
* Update fetcher.py
* dont reshape non 4 dim arrays
* realize for non compiled
* Update compile_modeld.py
* god dammit it was realize()
* it was fucking frozen tinygrad. just need to recompile
* bump
* ci: add is_big flag to metadata.json to support backward compat
* Update model_generator.py
* Update sunnypilot-build-model.yaml
* Update helpers.py
* Revert "Update helpers.py"
This reverts commit 3a955ca11a.
* Reapply "Update helpers.py"
This reverts commit ca9c6e1933.
* models: use less strict chestnut detection state
---------
Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
* ci: parallelize model chunk downloads and better publish
* ci: download all model chunks in parallel with xargs -P8
* split split
* ew
* must require
* ci: fix DM model build, separate HF defaults paths, nuke build races
* more split!
* name
* ci: download driving and DM model chunks into chestnut prebuilt output
* ci: compile default big model with stock modeld
* Revert "Revert big RL model (#38627)"
This reverts commit 516ec1e682.
* ci: compile default small model with stock modeld compiler
* ci: offload small model compilation
* Reapply "Revert big RL model (#38627)"
This reverts commit d06cfabb62.
* Reapply "Revert big RL model (#38627)"
This reverts commit d06cfabb62.
* ci: compile default big model with stock modeld
* Revert "Revert big RL model (#38627)"
This reverts commit 516ec1e682.
* ci: compile default small model with stock modeld compiler
* Reapply "Revert big RL model (#38627)"
This reverts commit d06cfabb62.