From 17c8cd73768a2de5aaf2a34d202aa6f03d59d72d Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sun, 5 Jan 2025 08:34:14 -0500 Subject: [PATCH] again --- sunnypilot/modeld/run_compile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sunnypilot/modeld/run_compile.py b/sunnypilot/modeld/run_compile.py index d959374e38..7e5f1cb52c 100644 --- a/sunnypilot/modeld/run_compile.py +++ b/sunnypilot/modeld/run_compile.py @@ -9,6 +9,9 @@ sys.path = [p for p in sys.path if p != incorrect_path] if correct_path not in sys.path: sys.path.insert(0, correct_path) +if "tinygrad" in sys.modules: + del sys.modules["tinygrad"] + run([ "python3", "/data/sunnypilot/sunnypilot/tinygrad_repo/openpilot/compile2.py", "/data/sunnypilot/sunnypilot/modeld/models/supercombo.onnx",