diff --git a/.github/workflows/build-all-tinygrad-models.yaml b/.github/workflows/build-all-tinygrad-models.yaml index 0eedb04703..395cc33eec 100644 --- a/.github/workflows/build-all-tinygrad-models.yaml +++ b/.github/workflows/build-all-tinygrad-models.yaml @@ -238,12 +238,6 @@ jobs: name: ${{ steps.read-artifact-name.outputs.artifact_name }} path: output - - name: Remove onnx files bc not needed for recompiled dir since they already exist from single build - run: | - find output -type f -name '*.onnx' -delete - find output -type f -name 'big_*.pkl' -delete - find output -type f -name 'dmonitoring_model_tinygrad.pkl' -delete - - name: Copy model artifacts to gitlab env: ARTIFACT_NAME: ${{ steps.read-artifact-name.outputs.artifact_name }} diff --git a/.github/workflows/build-single-tinygrad-model.yaml b/.github/workflows/build-single-tinygrad-model.yaml index 13886c1aa0..ab723c0371 100644 --- a/.github/workflows/build-single-tinygrad-model.yaml +++ b/.github/workflows/build-single-tinygrad-model.yaml @@ -73,8 +73,8 @@ on: - None - Master Models - Release Models - - 2025 World Models - 2026 World Models + - 2026 Deep RL Models - Custom Merge Models - Other custom_model_folder: @@ -179,11 +179,6 @@ jobs: name: ${{ steps.read-artifact-name.outputs.artifact_name }} path: output - - name: Remove unwanted files - run: | - find output -type f -name 'dmonitoring_model_tinygrad.pkl' -delete - find output -type f -name 'dmonitoring_model.onnx' -delete - - name: Copy model artifact(s) to GitLab recompiled dir env: ARTIFACT_NAME: ${{ steps.read-artifact-name.outputs.artifact_name }} diff --git a/openpilot/sunnypilot/modeld_v2/SConscript b/openpilot/sunnypilot/modeld_v2/SConscript index b5d03ebda3..ded9f8d851 100644 --- a/openpilot/sunnypilot/modeld_v2/SConscript +++ b/openpilot/sunnypilot/modeld_v2/SConscript @@ -25,7 +25,14 @@ def get_camera_configs(): CAMERA_CONFIGS = get_camera_configs() -if arch == 'comma_arm64': +# remove me after sync +def probe_devices(): + return set(subprocess.run( + [sys.executable, '-c', 'from tinygrad import Device\nprint("\\n".join(Device.get_available_devices()))'], + capture_output=True, text=True, check=True).stdout.strip().splitlines()) + +available = probe_devices() #remove me after sync +if 'QCOM' in available: # change to this after sync. if arch == 'comma_arm64': tg_backend = 'QCOM' tg_flags = f'DEV={tg_backend} IMAGE=1 FLOAT16=1 NOLOCALS=1 JIT_BATCH_SIZE=0 OPENPILOT_HACKS=1' else: