Skip to content

Commit a1795f8

Browse files
authored
Latest tinygrad (#36615)
* Latest tinygrad * jit batch size * bump again * limit upcast * latest tgf * upstream tg
1 parent 9c19ec8 commit a1795f8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
url = ../../commaai/teleoprtc
1616
[submodule "tinygrad"]
1717
path = tinygrad_repo
18-
url = https://github.com/commaai/tinygrad.git
18+
url = https://github.com/tinygrad/tinygrad.git

selfdrive/modeld/SConscript

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ def tg_compile(flags, model_name):
5050
# Compile small models
5151
for model_name in ['driving_vision', 'driving_policy', 'dmonitoring_model']:
5252
flags = {
53-
'larch64': 'DEV=QCOM',
54-
'Darwin': f'DEV=CPU HOME={os.path.expanduser("~")} IMAGE=0', # tinygrad calls brew which needs a $HOME in the env
55-
}.get(arch, 'DEV=CPU CPU_LLVM=1 IMAGE=0')
53+
'larch64': 'DEV=QCOM FLOAT16=1 NOLOCALS=1 IMAGE=2 JIT_BATCH_SIZE=0',
54+
'Darwin': f'DEV=CPU HOME={os.path.expanduser("~")}', # tinygrad calls brew which needs a $HOME in the env
55+
}.get(arch, 'DEV=CPU CPU_LLVM=1')
5656
tg_compile(flags, model_name)
5757

5858
# Compile BIG model if USB GPU is available

tinygrad_repo

Submodule tinygrad_repo updated 579 files

0 commit comments

Comments
 (0)