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",