Files
sunnypilot/tools/release/setup_lfs.sh
T
Harald Schäfer 1328ace068 Remove model chunking and use LFS for Chestnut releases (#38941)
* Remove model chunking and use LFS for Chestnut releases

* Check Git blob sizes once during release packaging

* Download the big model for Chestnut nightly builds

* Reuse published LFS models when pushing releases

* Preserve LFS configuration when copying Chestnut releases

* Detect release builds independently of LFS attributes
2026-09-17 16:34:52 -07:00

10 lines
347 B
Bash

#!/usr/bin/env bash
if [ -n "$INCLUDE_BIG_MODEL" ]; then
echo 'openpilot/selfdrive/modeld/models/big_driving_tinygrad.pkl filter=lfs diff=lfs merge=lfs -text' > .gitattributes
fi
# Reset filters and hooks since releases exclude .venv.
git config --local core.hooksPath "$(git rev-parse --git-common-dir)/hooks"
git lfs install --local --force