From 6850a8cdba7b38af62ee4ce56444fa64b7472af6 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Fri, 4 Sep 2026 00:13:38 -0500 Subject: [PATCH] blows chunks --- starpilot/system/the_galaxy/the_galaxy.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/starpilot/system/the_galaxy/the_galaxy.py b/starpilot/system/the_galaxy/the_galaxy.py index ff76f53d8..984fa69b2 100644 --- a/starpilot/system/the_galaxy/the_galaxy.py +++ b/starpilot/system/the_galaxy/the_galaxy.py @@ -39,6 +39,7 @@ from opendbc.car.gm.values import GMFlags from opendbc.car.toyota.carcontroller import LOCK_CMD, UNLOCK_CMD from opendbc.car.toyota.values import ToyotaStarPilotFlags from openpilot.common.constants import CV +from openpilot.common.file_chunker import get_chunk_name, get_manifest_path from openpilot.common.params import ParamKeyFlag, ParamKeyType, Params from openpilot.common.realtime import DT_HW from openpilot.common.swaglog import cloudlog @@ -6657,7 +6658,23 @@ def setup(app): if is_builtin_model_key(model_key): return True - return f"{model_key}_driving_tinygrad.pkl" in on_disk_files + filename = f"{model_key}_driving_tinygrad.pkl" + if filename in on_disk_files: + return True + + manifest = get_manifest_path(filename) + if manifest not in on_disk_files: + return False + + try: + num_chunks = int((MODELS_PATH / manifest).read_text().strip()) + except (OSError, ValueError): + return False + + return num_chunks > 0 and all( + get_chunk_name(filename, index, num_chunks) in on_disk_files + for index in range(num_chunks) + ) def get_model_catalog(): available = [model.strip() for model in (params.get("AvailableModels", encoding="utf-8") or "").split(",")]