DTR model, fix GM, radar (#209)

* localtime

* fix..

* fix..

* fix.. cutin

* DowntoRide model.

* fix.. canfd

* fix..

* fix..

* test json

* revert

* fix.. BOLT-EUV

* Update carstate.py

* fix.. waze & mapbox conflict

* fix..

* fix..

* fix..

* GM(safety) (#207)

* GM(safety)

* Update carstate.py

---------

Co-authored-by: carrot <43668841+ajouatom@users.noreply.github.com>

* Revert "GM(safety) (#207)"

This reverts commit 401c8b52acd2aa63d92664a4796015a9ed38a6b1.

* Reapply "GM(safety) (#207)"

This reverts commit ae7098c5101e8abc9956e464ded1176ffc30d544.

* fix GM safety (#208)

* fix..

---------

Co-authored-by: kans <kandrea@nate.com>
This commit is contained in:
carrot
2025-08-14 18:08:38 +09:00
committed by GitHub
parent 7c74dbd3a0
commit 9d35822092
18 changed files with 178 additions and 147 deletions
+4 -4
View File
@@ -50,9 +50,9 @@ def tg_compile(flags, model_name):
# Compile small models
for model_name in ['driving_vision', 'driving_policy', 'dmonitoring_model']:
flags = {
'larch64': 'DEV=QCOM',
'Darwin': 'DEV=CPU IMAGE=0',
}.get(arch, 'DEV=LLVM IMAGE=0')
'larch64': 'QCOM=1',
'Darwin': 'CPU=1 IMAGE=0 JIT=2',
}.get(arch, 'LLVM=1 LLVMOPT=1 BEAM=0 IMAGE=0 JIT=2')
tg_compile(flags, model_name)
# Compile BIG model if USB GPU is available
@@ -62,7 +62,7 @@ if "USBGPU" in os.environ:
devs = subprocess.check_output('python3 -c "from tinygrad import Device; print(list(Device.get_available_devices()))"', shell=True, cwd=env.Dir('#').abspath)
if b"AMD" in devs:
print("USB GPU detected... building")
flags = "DEV=AMD AMD_IFACE=USB AMD_LLVM=1 NOLOCALS=0 IMAGE=0"
flags = "AMD=1 AMD_IFACE=USB AMD_LLVM=1 NOLOCALS=0 IMAGE=0"
bp = tg_compile(flags, "big_driving_policy")
bv = tg_compile(flags, "big_driving_vision")
lenv.SideEffect('lock', [bp, bv]) # tg doesn't support multi-process so build serially