geohot
5d13dd1123
refactor to u.
2026-05-29 19:05:20 -07:00
geohot
058259e0ea
refactor to use uop
2026-05-29 19:01:10 -07:00
geohot
da9318e745
python prg is pkl uops
2026-05-29 18:54:55 -07:00
sirhcm and GitHub
c377d01491
ci: run dsp on tinygrad[testing] ( #16442 )
2026-05-29 21:16:56 -04:00
wozeparrot and GitHub
c23652e486
llama: minimize peak init mem ( #16440 )
2026-05-29 18:00:37 -07:00
sirhcm and GitHub
d943493b79
ci: remove duplicate op compile test ( #16441 )
2026-05-29 19:20:31 -04:00
chenyu and GitHub
8ac62b28e5
fix AffineGrid fusion ( #16439 )
2026-05-29 17:59:47 -04:00
sirhcm and GitHub
ef50a49693
ci: macos dev matrix ( #16436 )
2026-05-29 17:40:32 -04:00
sirhcm and GitHub
434cfa96a3
ci: no fetch in backend tests ( #16438 )
...
should make for less actions cache thrashing
2026-05-29 17:11:16 -04:00
chenyu and GitHub
b7280705a7
limit CONST(UNIQUE) to invalids only ( #16432 )
2026-05-29 16:02:06 -04:00
George Hotz and GitHub
9506b78d73
fix viz addrspace ( #16437 )
...
* fix viz addrspace
* revert that
2026-05-29 12:58:05 -07:00
nimlgen and GitHub
d69aca41a9
hcq2: rework pm_bufferize ( #16431 )
2026-05-29 22:09:52 +03:00
George Hotz and GitHub
e2a0434403
full derivation of addrspace ( #16433 )
...
* full derivation of addrspace
* w/e, it fixes it
2026-05-29 11:39:31 -07:00
wozeparrot and GitHub
6787de9f52
llama: fix mp ( #16434 )
2026-05-29 11:21:43 -07:00
chenyu and GitHub
2d7e5baab4
remove vec= from UPat.cvar [PR] ( #16430 )
2026-05-29 10:52:30 -04:00
chenyu and GitHub
fa666cefe8
remove dead branch in UOp [PR] ( #16429 )
2026-05-29 10:38:49 -04:00
qazal and GitHub
81bc00c006
do not require clearing method_cache in viz tests ( #16428 )
...
* update
* update test_dedup
2026-05-29 18:12:34 +09:00
qazal and GitHub
54cfb794b8
viz: addrspace little colored box ( #16427 )
...
* return addrspace
* layout
* render
* addrspace encodes color
* update colors
* in input_ast all are params are green
* update stroke
2026-05-29 17:25:07 +09:00
qazal and GitHub
814d414f41
viz: set label offset for asm ( #16426 )
2026-05-29 13:16:34 +09:00
wozeparrot and GitHub
f86966af56
llama: optim amax margin ( #16425 )
2026-05-28 20:18:11 -07:00
sirhcm and GitHub
6e0d5262dc
ci: autocancel outdated pr jobs ( #16424 )
2026-05-28 23:14:35 -04:00
sirhcm and GitHub
69aa2054f6
rename clangjit to clang ( #16423 )
2026-05-28 22:41:58 -04:00
sirhcm and GitHub
a909acb882
move llvmspeed to benchmarks ( #16422 )
2026-05-28 22:26:22 -04:00
George Hotz and GitHub
1e7f1dcf49
add ParamArgs [pr] ( #16421 )
...
* add ParamArgs
* fix export
* cleanups
* fixes
* simpler
2026-05-28 19:17:17 -07:00
sirhcm and GitHub
7d38edffdb
ci: dev matrix ( #16420 )
...
windows just runs test_tiny
2026-05-28 22:04:04 -04:00
wozeparrot and GitHub
36c8ff70c1
llama: use old scale for dequant in optim ( #16417 )
2026-05-28 15:21:19 -07:00
c87f3433d1
use namespace runners ( #16387 )
...
Co-authored-by: Christopher Milan <[email protected] >
2026-05-28 18:05:46 -04:00
George Hotz and GitHub
c9adde72c1
addrspace property ( #16418 )
...
* addrspace property
* movement addrspace
* regs
2026-05-28 14:39:25 -07:00
sirhcm and GitHub
c8af163d2b
disable process replay by default ( #16419 )
...
enable process replay with [pr] and assert with [PR]
process replay no longer captures on master
2026-05-28 17:36:28 -04:00
nimlgen and GitHub
b0e49afaf1
hcq2: new multi ( #16413 )
...
* hcq2: new multi
* op
2026-05-28 22:16:10 +03:00
George Hotz and GitHub
edca5df25a
flip offset and shape in pad and shrink ( #16414 )
...
* flip offset and shape in pad and shrink
* dumb test
2026-05-28 11:58:19 -07:00
chenyu and GitHub
d72d8ee065
.const() should not ignore dtype ( #16412 )
...
fixed a bug in postrange, also cleaner
2026-05-28 10:49:15 -04:00
sirhcm and GitHub
0ae957bb0a
refactor webgpu ( #16406 )
2026-05-27 23:13:08 -04:00
qazal and GitHub
202adc644e
viz: make call toggle easier to click on ( #16411 )
...
* call tag is a rect
* details
* colors
* simplify, better comment
2026-05-28 11:53:36 +09:00
George Hotz and GitHub
5ee6b6b79e
fix slice store to remove the index ( #16410 )
...
* fix slice store to remove the index
* fix spec
2026-05-27 19:17:53 -07:00
qazal and GitHub
88e88d63d6
viz: click on +- toggles sources ( #16409 )
2026-05-28 09:12:43 +09:00
George Hotz and GitHub
b21afb4883
marg line cleanup ( #16408 )
...
* marg line cleanup
* bitcast is a mop
2026-05-27 16:41:04 -07:00
wozeparrot and GitHub
dac3743d75
llama: delayed scaling in optim ( #16407 )
2026-05-27 15:40:03 -07:00
George Hotz and GitHub
8ee3a37524
shrink/pad use (new_shape, offset) ( #16405 )
...
* shrink uses offset and shape
* pad does too
* fix
2026-05-27 15:13:08 -07:00
sirhcm and GitHub
171401e8df
skip modulo by zero in test_dtype_alu ( #16404 )
2026-05-27 17:09:05 -04:00
qazal and GitHub
452c7d4230
llama: don't allocate grad_xw13 in bf16 ( #16359 )
2026-05-28 04:33:07 +09:00
nimlgen and GitHub
0c385e31c6
hcq2 rewrite ( #16375 )
...
* hcq2 rewrite
* fi
* x
* simpler
2026-05-27 22:25:35 +03:00
chenyu and GitHub
c33b767407
bring back test and torch backend change for unique const ( #16403 )
2026-05-27 15:16:08 -04:00
sirhcm and GitHub
bacabf0866
webgpu: fix enums ( #16402 )
2026-05-27 13:09:50 -04:00
chenyu and GitHub
6da785562b
test_custom_kernel_precompile_multidevice ( #16401 )
...
add a test to show what invalids need
2026-05-27 11:19:16 -04:00
chenyu and GitHub
3e80f375ee
skip test_setitem_fancy_on_unrealized_view ( #16400 )
...
crashes in linux llvm ci
2026-05-27 09:50:26 -04:00
chenyu and GitHub
945ed4f689
revert const unique changes ( #16395 )
2026-05-27 00:06:41 -04:00
sirhcm and GitHub
aacc8addf4
ci: use ubuntu 24.04 ( #16393 )
2026-05-26 23:22:01 -04:00
chenyu and GitHub
fa14cde05c
test update for arange and eye ( #16394 )
...
these will need explicit clone to make a buffer
2026-05-26 22:48:34 -04:00
wozeparrot and GitHub
3a7a6da7d5
llama: fakedata uses real vocab size ( #16389 )
2026-05-26 18:58:55 -07:00
George Hotz and GitHub
156a4438d9
rename BUFFER_VIEW to SLICE ( #16391 )
...
* rename BUFFER_VIEW to SLICE
* fix comments
2026-05-26 18:15:00 -07:00
sirhcm and GitHub
3adf7f5d95
disable flaky cl test ( #16388 )
2026-05-26 19:56:57 -04:00
sirhcm and GitHub
d23659d38b
cleanup some old test skips ( #16384 )
2026-05-26 19:07:22 -04:00
George Hotz and GitHub
fd963038a0
remove allow_any_len from store ( #16385 )
...
* remove allow_any_len from store
* a few more
* no bv there
* more fixes
* fixes
* oh that
2026-05-26 15:26:53 -07:00
chenyu and GitHub
0b88827482
remove CONST(UNIQUE) ( #16383 )
2026-05-26 14:45:22 -04:00
chenyu and GitHub
d861c50dce
remove unique_const ( #16382 )
2026-05-26 13:53:31 -04:00
George Hotz and GitHub
bac82d4949
fix emu bug in gfx950 ( #16381 )
...
* fix emu bug in gfx950
* fix renderer
2026-05-26 10:32:03 -07:00
chenyu and GitHub
9b00defc8c
Revert "remove unique_const ( #16372 )" ( #16380 )
...
This reverts commit 09019d6761 .
2026-05-26 12:30:07 -04:00
chenyu and GitHub
09019d6761
remove unique_const ( #16372 )
...
* remove unique_const
* fix SDWA thing
* that?
2026-05-26 12:18:03 -04:00
George Hotz and GitHub
7f1b02854e
bufferview offset is units of input dtype ( #16378 )
2026-05-26 08:49:31 -07:00
qazal and GitHub
846a809af7
viz: add +- toggle for hidden UOps ( #16368 )
...
* first
* remove
* move src toggles to client side
* line
* update viz server tests
* remove those
* logic
* cleanup
* call matches
* fix const arg
* add labels
* keep changes
* the stack on movement ops hiding change
* structure
* rename to expandedNodes
* work
* test intention
2026-05-26 22:31:54 +09:00
nimlgen and GitHub
032905dec9
hcq2: simpler ( #16361 )
2026-05-26 14:28:48 +03:00
geohot
322693dcd3
hotfix: bump Mac pytest timeout to 4 minutes (try 2)
2026-05-25 18:23:21 -07:00
George Hotz and GitHub
41ee7dab1c
script to generate testsig for DSP ( #16371 )
...
* script to generate testsig for DSP
* cleanups
2026-05-25 17:54:58 -07:00
wozeparrot and GitHub
76fc39ccc0
gather to single device ( #16354 )
2026-05-25 17:27:08 -07:00
geohot
942cb42b97
Revert "hotfix: bump Mac pytest timeout to 4 minutes"
...
This reverts commit 695a0069ed .
2026-05-25 17:25:11 -07:00
sirhcm and GitHub
8ddd1328df
remove getenv(CI) ( #16365 )
...
gone everywhere except test_interop, because torch MPS does not work in actions
2026-05-25 20:23:33 -04:00
geohot
695a0069ed
hotfix: bump Mac pytest timeout to 4 minutes
2026-05-25 17:20:19 -07:00
George Hotz and GitHub
689ab6a49f
move buffer view offset to src ( #16364 )
...
* this work?
* failed
2026-05-25 17:07:55 -07:00
sirhcm and GitHub
d8f86be613
webgpu: shader-f16 support in arch ( #16370 )
2026-05-25 19:20:59 -04:00
qazal and GitHub
4bcc53eb26
viz: stable node position for +- toggle ( #16367 )
2026-05-26 06:30:47 +09:00
qazal and GitHub
3506eb08ec
viz: sidebar toggles always recenter ( #16366 )
...
* viz: sidebar toggles always recenters
* python brain
2026-05-26 06:14:32 +09:00
chenyu and GitHub
cdeb861828
invalids is empty [pr] ( #16353 )
2026-05-25 16:11:38 -04:00
qazal and GitHub
b73d2d17b9
viz/cli: add --interval ( #16363 )
...
* interval support
* add test_interval
* llama uses interval
2026-05-26 03:35:06 +09:00
C T and GitHub
2ab90f31b1
use windows-specific alias nvcuda when loading cuda on windows ( #16260 )
...
This also makes it possible to use cuda on windows by specifying 3 env
vars with direct dll paths: NVCUDA_PATH, NVRTC_PATH and NVJITLINK_PATH
without name collision with CUDA_PATH which is used for cuda headers
include path in NVRTCCompiler.
2026-05-25 08:50:50 -07:00
wozeparrot and GitHub
68d2102fd2
llama: offload master weights ( #16355 )
2026-05-25 08:48:13 -07:00
qazal and GitHub
eecd4706ff
fix mailbox comment, add types ( #16360 )
2026-05-25 22:24:00 +09:00
nimlgen and GitHub
64095cf2e2
use get_buf in exec_kernel ( #16356 )
2026-05-25 15:13:40 +03:00
chenyu and GitHub
5d5e02871f
remove Tensor.from_uop ( #16344 )
...
and no device for const in Tensor init
2026-05-24 18:53:09 -04:00
nimlgen and GitHub
a891727c9f
hcq2: multi ( #16347 )
...
* hcq2: multi
* cleaner a bit
2026-05-24 19:28:33 +03:00
chenyu and GitHub
926d125a63
update test_stack ( #16345 )
...
also skip COMPILE_ONLY, it was comparing 0==0
2026-05-23 10:42:35 -04:00
chenyu and GitHub
149a87dac2
deviceless const cleanups ( #16341 )
2026-05-22 20:11:01 -04:00
sirhcm and GitHub
35461d4d8f
ci: cleanup some deps [pr] ( #16340 )
2026-05-22 19:16:08 -04:00
sirhcm and GitHub
451f38155c
start cleanup of the slowest tests ( #16339 )
2026-05-22 18:39:36 -04:00
nimlgen and GitHub
26b3b3f6a2
hcq2: move submit lowering to schedule ( #16330 )
...
* hcq: move submit lowering to schedule
* Dx
2026-05-22 23:15:19 +03:00
wozeparrot and GitHub
2d48fe8b7b
feat: bump version to 0.13.0 ( #16337 )
2026-05-22 13:12:45 -07:00
chenyu and GitHub
acc519720b
add missing init files, add chat.html to package-data ( #16334 )
2026-05-22 13:53:34 -04:00
eeadf26dad
Fix no module named error ( #16305 )
...
Co-authored-by: chenyu <[email protected] >
2026-05-22 12:51:29 -04:00
nimlgen and GitHub
90dbb45563
nv: fix boot mem ( #16332 )
...
* nv: fix boot mem
* linter
2026-05-22 19:28:38 +03:00
nimlgen and GitHub
5d77a94923
am: mec_pipe0_reset on gfx12 only ( #16331 )
2026-05-22 19:02:18 +03:00
qazal and GitHub
bbfe4f80ec
quantize_fp8 kernels in uops ( #16288 )
...
* add tests
* simple UOp kernel is n^2
* fast kernel matching c++, opts_to_apply=()
* remove cpp
* simple o(n) kernel, two passes
* fuse the loops
* works on DEV=CPU
* multi regression test
* fix multi, this can possibly be its own bugfix
* test cleanups
* minimal diff
* match C in UOps
* Revert "match C in UOps"
This reverts commit 0bef740c30 .
* edit test
* match speed with C try 2
* needs_second_gpu
* cleanup
2026-05-22 20:54:06 +09:00
chenyu and GitHub
3115952266
more unique const removal prerequisite ( #16328 )
2026-05-21 23:51:40 -04:00
sirhcm and GitHub
c2d06570a5
remove getenv(CI) from core tinygrad ( #16326 )
2026-05-21 22:20:33 -04:00
chenyu and GitHub
9744d512d9
use more non-buffered const ( #16327 )
2026-05-21 21:37:52 -04:00
sirhcm and GitHub
150a82de1f
start cleaning up dtype tests ( #16324 )
2026-05-21 21:11:49 -04:00
chenyu and GitHub
31424cda71
Tensor.requires_grad -> is_param ( #16325 )
...
for optimizer
2026-05-21 19:39:57 -04:00
sirhcm and GitHub
518e60534e
only load tinymesa_cpu when LVP is explicitly requested ( #16320 )
2026-05-21 19:03:13 -04:00
chenyu and GitHub
720a27bed8
remove many requires_grad= args ( #16321 )
...
* remove many requires_grad= args
* doc and example
* not cifar
2026-05-21 18:37:11 -04:00
wozeparrot and GitHub
0c41317a59
llama: update 405b scripts ( #16309 )
2026-05-21 14:03:34 -07:00
wozeparrot and GitHub
fb718a5e9d
llama: realize amax ( #16308 )
2026-05-21 14:00:48 -07:00
chenyu and GitHub
73ea36f4ac
full(buffer=True) ( #16311 )
...
make full a buffer with flag to turn off
2026-05-21 16:34:44 -04:00
George Hotz and GitHub
6815f28849
dtype.vec shapes ( #16287 )
...
* dtype.vec shapes
* something
* Closer
* more passes
* shape is in spec
* fix reduce
* image dtype shape correct
* lil
* use reshape on image
* need BUFFER there
* remove that test
* fix ptx + x86
* fix nir
* x86 fix maybe
* x86 fixups
* x86 fix
* don't check that for NOOP
2026-05-21 11:56:49 -07:00
wozeparrot and GitHub
afc5bfa183
llama: remove fused grad accum ( #16301 )
2026-05-21 09:38:40 -07:00
nimlgen and GitHub
a321700baa
hcq2: multi prereqs ( #16304 )
2026-05-21 17:00:52 +03:00
qazal and GitHub
e33e058d34
set SPLIT_W13=0 for 8b DP by default ( #16302 )
2026-05-21 22:09:10 +09:00
sirhcm and GitHub
dd279ee25e
print dtype decomp warning in DEBUG=2 ( #16300 )
2026-05-20 22:08:48 -04:00
George Hotz and GitHub
ec547250ef
don't use dtype vec for image idx ( #16298 )
...
* don't use dtype vec for image idx
* double gate
* y/x confused
* upd
* fix nir
* simplify_valid_image_load
2026-05-20 18:45:13 -07:00
sirhcm and GitHub
172f9493e1
move is_dtype_supported to renderer ( #16226 )
2026-05-20 21:19:37 -04:00
chenyu and GitHub
d548f8d0f3
use clone instead of unique_const in allreduce [pr] ( #16297 )
2026-05-20 18:58:47 -04:00
qazal and GitHub
9e88b08f93
x86: don't use id ( #16296 )
...
* x86: don't use id
* diff
* more minimal change
* unique
2026-05-21 07:36:40 +09:00
sirhcm and GitHub
da07b28998
am: override smu 13_0_7 to 13_0_0 ( #16292 )
2026-05-20 18:14:30 -04:00
chenyu and GitHub
beea4633fc
UOp.clone [pr] ( #16295 )
...
generates the store after structure
2026-05-20 17:47:49 -04:00
qazal and GitHub
a19fa2908f
fix x86 nondeterminism ( #16293 )
2026-05-21 05:48:05 +09:00
George Hotz and GitHub
58d58c1659
remove DEVECTORIZE ( #16290 )
...
* remove DEVECTORIZE
* fully remove DEVECTORIZE
2026-05-20 13:25:49 -07:00
wozeparrot and GitHub
825f30bf18
llama: apply_grad saves memory ( #16275 )
2026-05-20 13:14:06 -07:00
nimlgen and GitHub
a88feef40f
hcq2: cleanups ( #16278 )
...
* s
* simpler
* simler
2026-05-20 21:48:50 +03:00
a01d5918af
fix: qlinearconv quant params ( #16234 )
...
* fix: qlinearconv quant params
* fix: simplify reshape
---------
Co-authored-by: Philipp Braun <[email protected] >
2026-05-20 11:31:41 -07:00
George Hotz and GitHub
19535df53c
enable broadcasting in _shape ( #16285 )
2026-05-20 11:21:51 -07:00
chenyu and GitHub
4dbe6a2ee7
remove _force_unique from Tensor init ( #16277 )
2026-05-20 14:13:05 -04:00
fe2d8d1ecf
filter by base_class in pci_scan_bus on macOS ( #16282 )
...
The Linux path of pci_scan_bus reads /sys/bus/pci/devices/.../class and
skips devices whose base class doesn't match. The macOS (IOKit) path
appended every IOPCIDevice unconditionally, so callers that supplied
base_class to narrow down to e.g. display devices would also get the
audio companion function of a multifunction GPU.
Concretely, an NVIDIA RTX Pro 6000 Blackwell exposes:
10de:2bb1 class 0x030000 (display)
10de:22e8 class 0x040300 (multimedia audio)
A PROBE for base_class=3 returned both. With the sorted() at the end of
pci_scan_bus, 22e8 (audio) came first, so the NV runtime picked the
audio function as device 0 and stalled on RESIZE_BAR.
This mirrors the Linux filter on line 70 using the existing read_prop
helper.
Co-authored-by: Christopher Bradford <[email protected] >
2026-05-20 20:09:35 +03:00
qazal and GitHub
1e0fffe256
fused ce llama kernel in UOps ( #16263 )
...
* work
* using uops
* delete things
* work
* work
* higher level uops
* cleanups
2026-05-20 19:45:28 +09:00
chenyu and GitHub
e1715b3b92
extent jit const error to deviceless inputs ( #16276 )
2026-05-20 02:02:45 -04:00
chenyu and GitHub
170b857da9
clean up deviceless const _buffer ( #16274 )
...
process on CPU similar to multi
2026-05-19 22:47:45 -04:00
chenyu and GitHub
7af7b6703a
relax policy ASSERT_MIN_STEP_TIME to 3.2 ( #16273 )
2026-05-19 22:29:09 -04:00
chenyu and GitHub
188d7ec15e
clone can take device ( #16271 )
...
useful to materialize const on a specific device
2026-05-19 21:29:27 -04:00
wozeparrot and GitHub
361553c0a8
llama: match flat_llama with model_train ( #16269 )
2026-05-19 17:25:56 -07:00
George Hotz and GitHub
da7414d6dc
fix RUN_PICKLE and test it ( #16272 )
...
* add test for openpilot RUN_PICKLE
* fix RUN_PICKLE and test it
2026-05-19 17:00:25 -07:00
George Hotz and GitHub
55515747b7
Remove Ops.VCONST ( #16267 )
...
* start removing vconst
* remove a lot of vconst
* const folding + strict ordering
* update tests
* spec from minigen
* move that
2026-05-19 16:35:24 -07:00
sirhcm and GitHub
7cdd9cbdeb
PYTHONREMU: V_CVT_PK_BF8_F32 saturation ( #16268 )
2026-05-19 19:29:59 -04:00
sirhcm and GitHub
bb2a51f1ea
fix mypy mockgpu and add tinygrad.renderer.isa to packages ( #16265 )
2026-05-19 16:45:03 -04:00
chenyu and GitHub
890b731b1e
more prerequisuite test changed for deviceless const ( #16264 )
2026-05-19 15:43:45 -04:00
aa1e59ab97
X86 with Ops.INS ( #14873 )
...
* draft
* cleanup test_encodings
* cleanup test_isel
* model flag state and support rematerialization
* woops
* add vbroadcastss instruction
* don't fuse load if used multiple times in src
* add movabs instruction and fix idiv
* fixes
* add x86 backend to tests
* float16 fix
* rm TwoAddress2nd
* add BARRIER
* test windows ci
* yup isel fixes the mask stuff too and its beautiful
* add cmoves to the spec
* support storing imms
* no TUPLE_ORDER, breaks tests
* fix remaining seg faults
* add float max
* always fuse index
* minor
* fix DEFINE_VAR/SPECIAL and enable multithreading
* linter
* more linter
* more
* more
* more
* let's try this
* perhaps
* start new scheduler
* more scheduling info
* cleaner shuffle functions
* fixup isel tests
* skip bounds check when NOOPs exist
* skip inf rewrite tests
* fix const tag hack and add x86ops to _shape
* fix
* skip a few tests
* func arg order independent from op value
* x86 goes in own linearize
* switch to PARAM
* more
* add min x86op and neg in decomps
* do mulacc in isel
* use def_reg in test_encodings
* enable emulated int64 tests
* how much does this fix
* Ops becomes OpType
* fix
* rm noqa
* rm machine scheduler stuff
* and this
* allow for extending enums and move X86Ops out of uop
* fix imports
* rm X86GroupOp from ops.py
* spacing
* tell mypy to shut up
* more linter
* add x86op test
* allow set[X86Ops] in upat
* move NOOPs to pre_isel_matcher and rm NOOP from spec
* more asserts
* also this
* cleanup encode
* simplify live range
* fix idiv
* add Ops.INS to x86
* more changes
* more changes
* more changes
* fix
* fix
* fix
* fix
* print formatted assembly
* fix 8bit idiv?
* oops
* enable float16 and unaligned vector load/store
* actually no
* move x86 tests
* no more bool cast
* fix
* linter
* linter
* move X86Ops to x86.py
* fix vpbroadcast
* cleanups
* linter
* print correct reg names
* canonical max
* move max/min and add test
* support float16 vector load/store
* rm bad rewrite
* vpsrldq can't access memory
* regalloc takes renderer
* enable vector load/store on all dtypes
* more isel tests
* rm this for now
* a lot better
* fix
* fix
* fix
* deal with flags correctly
* fix
* enable gep noop rule
* fix
* fix
* fix
* add callee saved registers
* use Ops.CONST instead of X86Ops.IMM
* fix
* enable TUPLE_ORDER
* fix
* rm x86 code in linearizer
* fix
* fix
* fix
* move isa rewrites to codegen
* fix
* fix
* skip test_linearizer.py
* skip more tests
* fix
* fix for idiv/mod changes
* fix
* don't use fmadd if it duplicates fused op
* hacky
* fix
* cleanups
* cleanups
* fix
---------
Co-authored-by: George Hotz <[email protected] >
2026-05-19 12:42:54 -07:00
geohot
b2e8102209
25000 lines for x86 backend
2026-05-19 11:27:41 -07:00
Sachith Shetty and GitHub
74567c1958
fix: pass input device to ONNX helper internal tensors ( #16242 )
...
* fix: pass input device to onnx methods internal tensors
* test: onnx helper internal tensors use input device
2026-05-19 11:16:33 -07:00
sirhcm and GitHub
a178301dbe
PYTHONREMU: fix CDNA VOP3 conditional writes ( #16258 )
2026-05-19 13:31:31 -04:00
nimlgen and GitHub
b3dcf8f452
hcq2: split into schedule/realize ( #16216 )
...
* hcq2: split into schedule/realize
* missing
* x
* f
* clean
* cleaner
* x
* x
* x
* x
* x
2026-05-19 16:40:17 +03:00
qazal and GitHub
e4350e7de9
set hipcc mac docker to 7.1 ( #16261 )
...
* set hipcc mac docker to 7.1
* pull from amd
2026-05-19 21:30:39 +09:00
George Hotz and GitHub
a120709671
tighten shape spec for broadcasting ( #16206 )
...
* tighten shape spec for broadcasting
* use IndexError, not ValueError
* needs size
2026-05-18 22:12:04 -07:00
George Hotz and GitHub
3f2d401464
all tests pass with NOOPT=1 ( #16257 )
...
* all tests pass with NOOPT=1
* fix a few more
* noopt 100% pass
* noopt 100% pass
2026-05-18 20:39:51 -07:00
chenyu and GitHub
e694d7f222
more deviceless const prerequisites [pr] ( #16256 )
...
* more deviceless const prerequisites [pr]
* remove that
* arange.contiguous -> arange.clone in tests
arange will become deviceless const soon, update tests where it needs to be a buffer
2026-05-18 23:14:12 -04:00
chenyu and GitHub
c1076ed56c
Tensor.device and UOp.device can be None ( #16255 )
2026-05-18 22:08:10 -04:00
wozeparrot and GitHub
a3d59faef6
llama: don't save weight ( #16252 )
2026-05-18 17:05:45 -07:00
qazal and GitHub
18b102f355
llama: also use 7.1 comgr, update startup_walltime.sh ( #16253 )
2026-05-19 08:59:02 +09:00
chenyu and GitHub
d532b4f533
multi alu with deviceless const ( #16251 )
2026-05-18 19:31:53 -04:00
qazal and GitHub
98b8a2b407
llama: use hipcc 7.1 version ( #16250 )
2026-05-19 08:09:57 +09:00
sirhcm and GitHub
7515824a6d
ci: actually use clang-20, enable bfloat16 ( #16249 )
2026-05-18 19:06:43 -04:00
chenyu and GitHub
754344087a
assign for deviceless const source ( #16248 )
2026-05-18 17:39:53 -04:00
chenyu and GitHub
73e6b4963b
to and shard is noop for deviceless uop ( #16247 )
2026-05-18 16:11:10 -04:00
sirhcm and GitHub
50481ec9b4
cl: check for cl_khr_fp64 ( #16246 )
2026-05-18 14:42:43 -04:00
chenyu and GitHub
db639ebe3e
deviceless const from UOp ( #16243 )
2026-05-18 14:14:12 -04:00
qazal and GitHub
bfb2d1f89a
Revert "fp8 gemm speedup ( #16236 )" ( #16245 )
...
This reverts commit d95bf394e1 .
2026-05-19 02:01:44 +09:00
chenyu and GitHub
5ae4dbd599
make slow tests faster ( #16244 )
2026-05-18 11:42:02 -04:00
chenyu and GitHub
981c12182f
remove requires_grad= in tinygrad/ ( #16241 )
2026-05-17 16:55:37 -04:00
chenyu and GitHub
fcdd1af880
remove Tensor.detach override [pr] ( #16239 )
2026-05-16 23:58:12 -04:00
chenyu and GitHub
dcee90aa3f
remove requires_grad use in extra/examples ( #16238 )
...
except the ones fed into optimizer
2026-05-16 18:40:26 -04:00
chenyu and GitHub
8631b6f17d
remove use of requires_grad in test/ ( #16237 )
2026-05-16 17:21:07 -04:00
qazal and GitHub
d95bf394e1
fp8 gemm speedup ( #16236 )
...
* add asm_gemm option
* milestone
* work
* edit
* only the fast kernel
* diff
2026-05-17 04:58:28 +09:00
chenyu and GitHub
0ddc50d050
do not gate backward on requires_grad ( #16230 )
...
DETACH is filtered in _deepwalk. instead of None, it gets 0 grad now
2026-05-16 12:29:49 -04:00
nimlgen and GitHub
bef5f717bc
fix nolocals and beam ( #16232 )
2026-05-16 18:09:19 +03:00
qazal and GitHub
ebcb7b7cc0
fp8 gemm tests with scale args ( #16231 )
...
* update atol
* update fp8 path
* more work
* update profile.sh
2026-05-16 20:47:58 +09:00
nimlgen and GitHub
e575f778f9
move debug prints ( #16218 )
...
* move debug prints
* x
2026-05-16 13:57:34 +03:00
wozeparrot and GitHub
2d48d7ab09
remove more invalid ( #16227 )
2026-05-16 02:52:27 -07:00
wozeparrot and GitHub
159694347e
llama: fix running flat_llama ( #16224 )
2026-05-15 20:16:48 -07:00
sirhcm and GitHub
79c0ae5b89
metal: arch is GPU family ( #16223 )
2026-05-15 21:22:48 -04:00
sirhcm and GitHub
2c61f65211
cl: device extensions in arch ( #16220 )
2026-05-15 18:59:20 -04:00
George Hotz and GitHub
2549b14ec2
fix caformer onnx run ( #16222 )
2026-05-15 15:08:36 -07:00
George Hotz and GitHub
2570bded8b
update spec for LOAD ( #16221 )
...
* add load to the spec
* can
2026-05-15 14:46:00 -07:00
chenyu and GitHub
d62c1d83c0
remove Tensor.eye override ( #16219 )
...
* remove Tensor.eye override
was only needed for requires_grad arg
* README
2026-05-15 15:40:34 -04:00
chenyu and GitHub
07a172dbbb
remove noop requires_grad_ calls ( #16213 )
2026-05-15 13:31:10 -04:00
chenyu and GitHub
c6cf9e8f0c
remove test_svd_nonfull_5_5 ( #16217 )
...
flaky, kinda overlap with test_svd_general
2026-05-15 13:10:02 -04:00
qazal and GitHub
d54fa86b71
viz/cli: select all calls in graph by default ( #16214 )
2026-05-15 21:01:44 +09:00
nimlgen and GitHub
28b98e529d
nv: move structs to vram ( #16184 )
...
* nv: vram
* x
* 4090
* x
* move and sysmem on macos
* x
* remove hp
2026-05-15 13:41:42 +03:00
chenyu and GitHub
409bb0c9ad
requires_grad cannot be None ( #16212 )
...
final goal is to remove requires_grad, first change the default to True, and don't allow None
2026-05-15 02:01:04 -04:00
sirhcm and GitHub
c7870f11ff
mesa: suggest curl install tip ( #16211 )
2026-05-15 00:29:06 -04:00
chenyu and GitHub
a612b88abb
better assert when setitem a refed tensor ( #16210 )
...
also decouple from requires_grad
2026-05-14 23:40:29 -04:00
chenyu and GitHub
a75c14f010
some setitem tests ( #16209 )
2026-05-14 22:36:25 -04:00
sirhcm and GitHub
891a1ae7c2
onnx: remove dtype_fallback ( #15717 )
2026-05-14 22:06:57 -04:00
wozeparrot and GitHub
b4d267dfd4
llama: only save when small ( #16208 )
2026-05-14 17:46:29 -07:00
chenyu and GitHub
ffa1aac7b1
gradient for STORE/AFTER ala clone ( #16205 )
2026-05-14 20:17:27 -04:00
chenyu and GitHub
09096ea565
test_gradient_through_clone ( #16203 )
...
backward through clone crashes now
2026-05-14 19:26:47 -04:00
George Hotz and GitHub
d4dcd8487b
aggressive shape check to prepare for broadcasting ( #16202 )
...
* add implicit broadcasting to shape
* NOOP/ALLREDUCE fixes
2026-05-14 16:15:44 -07:00
George Hotz and GitHub
83ec66da34
fix a fastdiv edge case ( #16199 )
2026-05-14 13:12:18 -07:00
nimlgen and GitHub
62ea73719d
hcq2: share more with graph ( #16196 )
...
* share more with graph
* comment
2026-05-14 22:28:11 +03:00
George Hotz and GitHub
3b8cc31759
disable fast idiv by default, it's broken ( #16197 )
...
* disable fast idiv by default, it's broken
* fix fast idiv tests
2026-05-14 11:48:27 -07:00
sirhcm and GitHub
8f811649ff
better compiler_cpu invalid arch errors ( #16194 )
2026-05-14 14:36:14 -04:00
qazal and GitHub
f03a7fd6d1
viz/cli: readable uop json ( #16195 )
...
* viz/cli: readable uop json repr
* work
* better
2026-05-14 21:33:10 +09:00
C T and GitHub
1b779a9058
add gelu approximate="none" (match pytorch) ( #16162 )
...
* add gelu approximate="none" (match pytorch)
* lint
* pass through onnx Gelu approximate
* type annotate
* explicit math.sqrt
* keep tinygrad's gelu approximate="tanh" default
2026-05-13 18:53:24 -07:00
chenyu and GitHub
dd9187d9ee
minor hash cleanups ( #16190 )
...
same kernels
2026-05-13 20:59:24 -04:00
wozeparrot and GitHub
88ac2ac1fd
llama: cleanups ( #16189 )
2026-05-13 17:08:06 -07:00
sirhcm and GitHub
9a365d9978
ci: fix null image tests ( #16188 )
2026-05-13 18:00:05 -04:00
nimlgen and GitHub
ad1fb7c981
hcq2: graph ( #16186 )
...
* keep this for now
* early graph
2026-05-13 22:49:43 +03:00
chenyu and GitHub
3f9f6a51b2
minor image_conv2d cleanup ( #16187 )
...
remove some no-op slices
2026-05-13 15:47:40 -04:00
b1tg and GitHub
59c34b9fe0
llm: precise device ( #16159 )
...
* llm: precise device
* llm: pass device to precompute_freqs_cis
2026-05-12 21:16:42 -07:00
b1tg and GitHub
3c806ff406
clean up gguf ( #16160 )
2026-05-12 21:16:10 -07:00
wozeparrot and GitHub
e97f2c1114
llama: only gemm + fa custom kernel ( #16180 )
...
* llama: tie store to grad directly
* llama: set mp flags
* llama: non fused grad fp8 quantize path
2026-05-12 21:03:49 -07:00
chenyu and GitHub
38d407fd58
simplify svd more ( #16181 )
...
all the slowness is scheduling
2026-05-12 23:48:22 -04:00
sirhcm and GitHub
f1fdd2ccec
ci: add IMAGE=1 compile-only tests ( #16182 )
...
* ci: add IMAGE=1 compile-only tests
* fix
2026-05-12 23:40:32 -04:00
George Hotz and GitHub
faf7fb7513
update nir renderer for new image style ( #16179 )
...
* update nir renderer for new image style
* don't cast image indexes
2026-05-12 20:25:01 -07:00
sirhcm and GitHub
7d0c5ab689
ci: ocelot needs nvcc on linux ( #16178 )
...
* ci: ocelot needs nvcc on linux
* cudart
2026-05-12 23:13:48 -04:00
chenyu and GitHub
32138c2418
svd to mixin ( #16175 )
2026-05-12 22:29:01 -04:00
George Hotz and GitHub
69e1f3b551
remove vec2 from image in gater ( #16165 )
...
* remove vec2 from image in gater
* only simple idx
* fix python with new image style
* fix vconst
* just vconst and stack
* cast to int there
* fix for const
* fix process replay
2026-05-12 19:25:52 -07:00
chenyu and GitHub
2172363be5
don't use Tensor indexing in svd ( #16174 )
...
prepare mixin, also about 4X faster for 8x8 input
2026-05-12 21:56:19 -04:00
chenyu and GitHub
420a08c6d1
qr to mixin ( #16173 )
2026-05-12 21:23:25 -04:00
chenyu and GitHub
c6a82fe927
functional qr and svd ( #16172 )
...
no clone and setitem, will move to mixin next. slightly faster but still quite slow
2026-05-12 19:12:08 -04:00
sirhcm and GitHub
3844a31f87
ci: untangle cuda/ocelot, less apt ( #16171 )
...
* ci: untangle cuda/ocelot, less apt
* ldconfig
2026-05-12 18:14:03 -04:00
sirhcm and GitHub
316607f004
dsp: don't use docker in ci ( #16167 )
...
* dsp: don't use docker in ci
* add setup script for macos docker
2026-05-12 17:11:03 -04:00
chenyu and GitHub
bdcdf1f1a1
jittable masked_select and nonzero ( #16170 )
...
* jittable masked_select and nonzero
make jittable with `size=`, matches jax
* COMPILE_ONLY
2026-05-12 16:39:36 -04:00
wozeparrot and GitHub
a613bcfc6d
allow after on contiguous in spec ( #16169 )
...
* feat: allow after on contiguous
* feat: add test
2026-05-12 13:11:44 -07:00
chenyu and GitHub
7c3e3fa154
fix empty input for masked_select and nonzero ( #16168 )
2026-05-12 15:36:51 -04:00
chenyu and GitHub
da3b7e89a4
atol in test_custom_kernel_multi_output_backward_interacting ( #16166 )
2026-05-12 14:42:12 -04:00
chenyu and GitHub
25583f6dc1
fix cumsum dtype for 0d input ( #16164 )
2026-05-12 14:18:08 -04:00
George Hotz and GitHub
64c81dfd24
add all codegen stages to spec_tensor ( #16163 )
2026-05-12 10:35:38 -07:00
chenyu and GitHub
f3e3c3851f
explicit args to Tensor.rand ( #16161 )
...
added requires_grad, other kwargs were silently dropped
2026-05-12 12:53:39 -04:00
nimlgen and GitHub
e93fb5f9b9
hcq2: remove hcqprogram ( #16157 )
...
* hcq2 rm program
* nonbeauty
* no prog
* tiny
* f
* x
2026-05-12 18:49:13 +03:00
nimlgen and GitHub
a708542308
fix ci spec ( #16156 )
2026-05-12 17:57:11 +03:00
nimlgen and GitHub
e5729935c6
time_call ( #16152 )
...
* time_call
* x
* fix caches
2026-05-12 16:58:28 +03:00
qazal and GitHub
fe39cf148a
add Ops.SOURCE test ( #16155 )
...
* simple failing test
* raises
* change
2026-05-12 22:49:32 +09:00
qazal and GitHub
5cd0494b14
viz: canonicalize ast for schedule to codegen linking ( #16154 )
...
* simple failing test
* always null device
* viz: canonicalize ast for schedule to codegen linking
* SCACHE
2026-05-12 22:40:21 +09:00
qazal and GitHub
c1d125ff3b
llm: add markers to --benchmark ( #16153 )
...
* markers in llm
* ui fix
2026-05-12 20:14:11 +09:00
wozeparrot and GitHub
e9359d9e7d
more llama mp fixes ( #16151 )
...
* llama: SPLIT_W13
* llama: fix with no fused kernels
* llama: cast to bf16 on non asm_gemm patH
* llama: new mp flags
2026-05-11 21:29:23 -07:00
chenyu and GitHub
09fd80fba6
fix randperm and _multi_like drop requires_grad ( #16150 )
2026-05-11 23:23:34 -04:00
George Hotz and GitHub
8294d105a7
Update the spec in spec.py to match the current state ( #16132 )
...
* start work on specv2
* more spec
* more spec
* fix amd emulator
* more spec
* more
* fix test_uop_graph
* move those
* spec=2
* skip those questionable tests
* ptx fix
* more spec=2
* store
* allow custom function in tensor
* spec 2
* fix beam search for tensor cores
* delete the old specs
* fix import
2026-05-11 20:07:47 -07:00
chenyu and GitHub
3942a80f66
fix wrong kwargs passed into rands ( #16149 )
...
working towards explicit args for these
2026-05-11 22:22:06 -04:00
sirhcm and GitHub
039d84ff02
Revert "onnx: deduplicate simple proto parsers" ( #16148 )
...
This reverts commit 83eaefcd0f .
2026-05-11 21:45:17 -04:00
sirhcm and GitHub
20f587d5d5
nv: rm _download ( #16147 )
2026-05-11 19:56:37 -04:00
chenyu and GitHub
371ab2023f
clean up image_dot and image_conv2d ( #16145 )
2026-05-11 19:37:58 -04:00
Vikram Rangarajan and GitHub
effa263865
Torch backend aten::cat.out fix ( #16121 )
...
* Handle empty 1D tensors in cat_out
* Undid other changes
* Fixed torch cat
* Improved cat.out, added more tests
* Cleaned code
* Type hinted dim
* Removed whitespace
2026-05-11 16:28:16 -07:00
chenyu and GitHub
63c1f00b80
disable test_svd_general again ( #16146 )
...
flaky on CI
2026-05-11 19:24:32 -04:00
sirhcm and GitHub
2dccd4a3eb
am: autogen pmc ( #16143 )
...
* am: autogen pmc
* cleanup
* fix
* type
2026-05-11 19:22:12 -04:00
sirhcm and GitHub
7ba55ad3ba
nv: autogen regs ( #16139 )
...
* nv: autogen regs
* flcn cot
* ci
* gen
2026-05-11 18:52:24 -04:00
chenyu and GitHub
0b02fb6797
Revert "[pr] match torch rmsnorm ( #16122 )" ( #16144 )
...
This reverts commit 692257dd70 .
2026-05-11 17:53:42 -04:00
chenyu and GitHub
fbe8be0b8b
style cleanup to Tensor.qr and svd ( #16142 )
...
* style cleanup to Tensor.qr and svd
same kernels
* more
* enable
2026-05-11 17:16:59 -04:00
qazal and GitHub
fc2cc1d77a
viz: call graph renderer example ( #16141 )
...
* work
* emits
* this
* cleaner repr for custom binaries
* --call-graph
* _ref
* this
* start
* this
* everything execpt the pyrender
* bring pyrender back
2026-05-12 05:07:30 +09:00
chenyu and GitHub
f65e343fb3
spec.py cleanups ( #16140 )
...
removed END from shared_spec and NOOP from full_spec
2026-05-11 15:59:49 -04:00
692257dd70
[pr] match torch rmsnorm ( #16122 )
...
* [pr] match rmsnorm torch
Signed-off-by: Joshua James Venter <[email protected] >
* 1e-5
* ops.md
---------
Signed-off-by: Joshua James Venter <[email protected] >
Co-authored-by: chenyu <[email protected] >
2026-05-11 14:36:41 -04:00
Sachith Shetty and GitHub
59a81559d4
fix: add self.device to qr, svd, masked_select intermediates ( #16131 )
2026-05-11 11:22:54 -04:00
nimlgen and GitHub
70c2480e71
hcq2 to extra ( #16126 )
...
* hcq2 in extra
* correct
* some revert from non-extra
* cln
* cpu
* x
* attach
* min
* remove attach
* linter
2026-05-11 17:17:30 +03:00
nimlgen and GitHub
ad9738892c
get_buf() for Buffer ( #16134 )
...
* p
* mypy
* x
2026-05-11 16:36:14 +03:00
qazal and GitHub
2dd84416bf
viz/cli: schedule renderer ( #16101 )
...
* simpler steps
* work
* work
* iterate
* faster
* better
* simplify more
* sys stdin
* less
* work
* work and mv
* better
* seen bufs
* all call graphs
* print query
* ux
* param to buffer / buffer_view
* work
* respect NO_COLOR in uop_to_json
* less
* render uops
* rm custom renderer
* call can't pyrender.
* unrelated diff
* assert
* 5
2026-05-11 01:56:16 +09:00
geohot
53f9587099
add canary
2026-05-10 09:38:18 -07:00
geohot
28cb7f1bcc
update readme with contributing guidelines
2026-05-10 09:35:48 -07:00
George Hotz and GitHub
daed602569
rename BUFFERIZE to STAGE ( #16125 )
2026-05-10 09:26:46 -07:00
qazal and GitHub
39ce780907
viz/cli: emit all runs of selected kernel, json fixes ( #16124 )
...
* keep print
* --json in tests, sqtt --json err
* work
* import
* less
* line
2026-05-10 21:45:51 +09:00
qazal and GitHub
51c7dafb0d
split viz cli test helpers ( #16123 )
2026-05-10 19:42:24 +09:00
chenyu and GitHub
b2a682ec60
remove _shape check in pm_mops [pr] ( #16120 )
...
seems fine now
2026-05-09 17:54:22 -04:00
wozeparrot and GitHub
026688f03f
llama: move to correct dir ( #16118 )
2026-05-08 19:42:16 -07:00
sirhcm and GitHub
a7512e0d12
PYTHON: images have no alignment constraints (by default) ( #16115 )
2026-05-08 20:35:03 -04:00
sirhcm and GitHub
105b037c3c
cl: image alignment in arch ( #16106 )
2026-05-08 19:33:33 -04:00
Charlie Kerfoot and GitHub
71a8c0da09
fix: trailing space format string ( #16005 )
2026-05-08 16:31:10 -07:00
Pawan and GitHub
4dd6ad3514
gradient: add TRUNC backward ( #15925 )
...
* gradient: add TRUNC backward
* test: move round quantization gradient to test_ops
2026-05-08 16:27:55 -07:00
chenyu and GitHub
5152ff95e7
_pad_constant and avg_pool2d cleanups ( #16110 )
2026-05-08 18:09:47 -04:00
chenyu and GitHub
e6584532f4
minor elementwise cleanups ( #16102 )
2026-05-08 13:38:34 -04:00
nimlgen and GitHub
49b55af619
jit: simpler free_intermediates ( #16099 )
2026-05-08 19:08:33 +03:00
chenyu and GitHub
0f46c08582
div mixin cleanups ( #16100 )
2026-05-08 12:05:37 -04:00
chenyu and GitHub
235044c9d8
Ops.IDIV -> Ops.CDIV, Ops.MOD -> Ops.CMOD ( #16093 )
...
* Ops.IDIV -> Ops.CDIV, Ops.MOD -> Ops.CMOD
* ruff
2026-05-07 23:18:15 -04:00
sirhcm and GitHub
faabe6aa42
nv: remaining firmware from /lib/firmware ( #16088 )
2026-05-07 23:07:43 -04:00
b1tg and GitHub
7ef901a81d
llm: moe speedup ( #16059 )
2026-05-07 19:06:35 -07:00
George Hotz and GitHub
80da8a4b9c
add spec to main tinygrad repo ( #16092 )
2026-05-07 18:52:49 -07:00
83eaefcd0f
onnx: deduplicate simple proto parsers ( #16085 )
...
Co-authored-by: George Hotz <[email protected] >
2026-05-07 18:44:27 -07:00
George Hotz and GitHub
c106c73e51
remove the gate from index ( #16081 )
...
* remove the gate from index
* gpt says this works
* remove hanging casts
* simplify
* move that down
* move gates
* ptr
* remove that simplify
* move that
2026-05-07 18:42:00 -07:00
wozeparrot and GitHub
d11f4d0ec2
fix: don't copy on slice of DP weight ( #16089 )
2026-05-07 17:58:01 -07:00
geohot
1d1b726cf6
hotfix: disable flaky framework pytest
2026-05-07 17:05:06 -07:00
sirhcm and GitHub
9a6f7f7576
nv: look for fmc firmware in /lib/firmware ( #16080 )
2026-05-07 18:08:27 -04:00
George Hotz and GitHub
b796bbae87
fix valid in indexing tests ( #16087 )
2026-05-07 14:11:28 -07:00
wozeparrot and GitHub
4d1a9dca41
fix: don't copy precompiled custom kernel outputs ( #16084 )
2026-05-07 14:02:38 -07:00
qazal and GitHub
f9083cf901
use subactions for benchmark.yml process replay [pr] ( #13396 )
2026-05-08 03:46:25 +09:00
nimlgen and GitHub
2f0aa884d5
tinygpu: minimal is macos13 for resets ( #16075 )
2026-05-07 21:25:56 +03:00
chenyu and GitHub
072db9924c
div to mixin ( #16078 )
...
also deleted idiv method
2026-05-07 12:52:37 -04:00
chenyu and GitHub
516b00e286
mod and fmod to mixin ( #16077 )
2026-05-07 12:13:39 -04:00
qazal and GitHub
a9a87ad8fd
viz/cli: less flags ( #16076 )
...
* viz/cli: merge -s and -i flags
* only -t
* merge parser
* fix
2026-05-08 00:22:40 +09:00
qazal and GitHub
f813a04b3f
viz: pickle path in str ( #16073 )
2026-05-07 18:49:21 +09:00
wozeparrot and GitHub
730fa66bf3
llama speed 6 ( #16071 )
2026-05-06 20:51:03 -07:00
sirhcm and GitHub
7b91f7c90c
nv: look for gsp firmware in /lib/firmware ( #16068 )
2026-05-06 21:35:47 -04:00
George Hotz and GitHub
8e84317743
the renderer part of gate moving from index to load/store ( #16064 )
...
* the renderer part of gate moving from index to load/store
* fixed
* fix gated stores
* fix spec
* better?
* Where after gated load becomes alt value
* cleaner expression
* fix python backend
* remove dead code
2026-05-06 13:47:04 -07:00
chenyu and GitHub
ef085304bc
stronger divmod_recombine ( #16066 )
2026-05-06 15:41:54 -04:00
qazal and GitHub
d7d32d82ee
viz/cli: print first uop with DEBUG=6 ( #16065 )
...
* viz/cli: print first uop with DEBUG=6
* rename fmt to emit
* define inst
2026-05-07 03:39:34 +09:00
chenyu and GitHub
af4140f3be
fix divmod recombine for floordiv ( #16062 )
2026-05-06 14:22:42 -04:00
chenyu and GitHub
c6ad3d3ac2
better divmod late rewrite ( #16061 )
...
better order
2026-05-06 11:31:48 -04:00
chenyu and GitHub
aaabe42373
relax fold_divmod_general ( #16058 )
2026-05-05 21:37:56 -04:00
sirhcm and GitHub
1de14cf33a
am: autogen soc ( #16055 )
2026-05-05 20:39:43 -04:00
chenyu and GitHub
869eae6b37
fix double div rewrites ( #16054 )
2026-05-05 19:34:35 -04:00
sirhcm and GitHub
bd06ea9f97
am: simplify import_module ( #16046 )
2026-05-05 19:25:53 -04:00
qazal and GitHub
795501e1da
fix device in null graph events ( #16053 )
...
* failing test
* fix compute
* fix sdma
2026-05-06 07:44:08 +09:00
wozeparrot and GitHub
ab6218bc92
llama mp fixes ( #16050 )
2026-05-05 15:35:32 -07:00
chenyu and GitHub
34fe37d64e
use FLOORDIV and FLOORMOD ( #16048 )
...
* use FLOORDIV and FLOORMOD
also removed CORRECT_DIVMOD_FOLDING
* fix
* Revert "fix"
This reverts commit 86af33b88ef31943c61e67189b072eca4896409a.
* fix
* fix
2026-05-05 18:32:54 -04:00
sirhcm and GitHub
76ff378007
autogen: fewer apt dependencies ( #16049 )
2026-05-05 17:22:41 -04:00
nimlgen and GitHub
5fa0016ffc
supports_exec_item -> supports_uop ( #16033 )
2026-05-05 22:41:13 +03:00
qazal and GitHub
cee17e0d2f
viz: fix diff color ( #16045 )
2026-05-06 03:40:53 +09:00
chenyu and GitHub
9c37a0c75d
Ops.FLOORDIV and Ops.FLOORMOD ( #16038 )
...
* Ops.FLOORDIV and Ops.FLOORMOD
lowered into IDIV and MOD in get_late_rewrite_patterns
* still need this
* exclude
* like that?
2026-05-05 11:42:14 -04:00
qazal and GitHub
d79bf356c2
viz: add CALL -> codegen link ( #16044 )
...
* work
* cleaner
* details
* rm
2026-05-05 23:34:44 +09:00
sirhcm and GitHub
1c8cb0769a
am: autogen asic_regs ( #16004 )
2026-05-04 22:52:07 -04:00
George Hotz and GitHub
26406bed83
amd uses .valid, not index src valid ( #16042 )
2026-05-04 18:35:15 -07:00
chenyu and GitHub
a357a0449a
Tensor.div cleanup ( #16041 )
2026-05-04 19:27:36 -04:00
nimlgen and GitHub
5b4f62519d
cache buffer_views as well ( #16039 )
...
* cache buffer_views as well
* reuse
* back
* x
2026-05-05 00:00:09 +03:00
sirhcm and GitHub
8e99c4f097
fetch checks sha256 ( #16037 )
2026-05-04 16:08:38 -04:00
George Hotz and GitHub
1884f67a39
simplify full_rewrite_to_sink spec ( #16035 )
...
* simplify full_rewrite_to_sink spec
* test cleanups
2026-05-04 11:44:13 -07:00
chenyu and GitHub
a4fccd23b2
remove kwargs in UOp.vectorize [pr] ( #16034 )
2026-05-04 12:46:38 -04:00
qazal and GitHub
b1d88ebf02
viz/cli: aggregate flops in -t ( #16031 )
...
* 38
* plumbing
* more flops
* flop/s and bytes/s
* arithmetic mean
* tests
* harmonic mean
* range
* better
* simplify
* fix prints
* no string parsing needed
2026-05-04 17:35:02 +03:00
qazal and GitHub
c02e390c2b
viz: encode flops, mem and metadata in json ( #16032 )
...
* gate print
* update everywhere to check path
* server encodes json
* ui changes
* cli changes
* tests never need regex
* no str replace
* update test_pipes
* remove that
2026-05-04 23:06:18 +09:00
4024d8438f
runtime/graph: avoid core_id runtimevar merge conflicts ( #16026 )
...
Co-authored-by: bigyoshi51 <[email protected] >
2026-05-03 19:16:02 +03:00
qazal and GitHub
9684334dfe
viz: fix flops in graph, add null graph tracing ( #16024 )
...
* min repro, todos
* null graph tracing
* work
* work
* work
* only test_flops
* exec points back
* first
* better
* integral timestamps maybe
* cleanup
* simpler, update NULL to use SDMA naming
* integration test
* sdma
2026-05-03 22:32:44 +09:00
wozeparrot and GitHub
419d525553
feat: handle multioutput kernel grads ( #16028 )
2026-05-02 22:31:45 -07:00
mefengl and GitHub
9717d3a3a2
hotfix: prepend LD_LIBRARY_PATH to DLL posix search dirs ( #16023 )
2026-05-02 20:45:19 +03:00
qazal and GitHub
7daf4b7d52
viz: split cli test ( #16015 )
...
* viz: split cli test
* arg3 is msg
2026-05-03 01:47:11 +09:00
nimlgen and GitHub
d65b8ca25f
jit: remove *input_list from the graph sources ( #16021 )
2026-05-02 14:42:47 +03:00
qazal and GitHub
7dae9e6f7f
viz: keep VIZ.value = 0 during python shutdown, cleanup launch ( #16022 )
...
* viz: keep VIZ.value = 0 during python shutdown, cleaner execv
* rm
2026-05-02 20:35:53 +09:00
sirhcm and GitHub
637bdd5530
am: only support CDNA3/4 and RDNA3/4 ( #16017 )
2026-05-02 00:02:14 -04:00
George Hotz and GitHub
4a2e1f1076
STORE doesn't have ranges anymore ( #16019 )
...
* STORE doesn't have ranges anymore
* fix
2026-05-01 15:00:27 -07:00
chenyu and GitHub
0bffbc5f8a
onnx fmod uses fmod ( #16018 )
2026-05-01 16:47:11 -04:00
chenyu and GitHub
782d1ff80f
Tensor.fmod ( #16014 )
...
c-style mod matches torch
2026-05-01 16:02:18 -04:00
nimlgen and GitHub
1079441332
revoke bus master ( #16007 )
2026-05-01 18:00:01 +03:00
qazal and GitHub
8b147a9ed5
minimal repro for llama copies 2 ( #16011 )
2026-05-01 22:23:47 +09:00
qazal and GitHub
a29dd7b19b
Revert "cleanup: untrack wait Metal buffers ( #15954 )" ( #16010 )
...
* Revert "cleanup: untrack wait Metal buffers (#15954 )"
This reverts commit 5eb1fd5d3c .
* regression test fixes
2026-05-01 21:18:19 +09:00
qazal and GitHub
65879fe1b7
metal synchronize regression test ( #16008 )
...
* add test for metal wait=True
* add self.assertRaises
2026-05-01 20:10:57 +09:00
nimlgen and GitHub
f6d92b55e6
am: use per pipe reset for gfx11+ ( #16006 )
2026-05-01 12:56:43 +03:00
sirhcm and GitHub
cee73becbe
am: ip offsets in autogen ( #16003 )
2026-05-01 00:13:52 -04:00
George Hotz and GitHub
4506688285
split render to render.py ( #16002 )
...
* split render to render.py
* move more print
2026-04-30 19:41:14 -07:00
George Hotz and GitHub
d651b4bbf0
SPEC=3 checks the shape ( #16001 )
...
* SPEC=3 checks the shape
* buffer view
* Revert "buffer view"
This reverts commit ffd87889a9 .
* buffer view hack
* fix ptx
2026-04-30 18:41:37 -07:00
wozeparrot and GitHub
528d35e306
llama speed 4 ( #15993 )
2026-04-30 17:14:41 -07:00
George Hotz and GitHub
45fd7a3668
lil_image vectorize ( #16000 )
...
* lil_image vectorize
* 0 pitch on height 1
* Revert "0 pitch on height 1"
This reverts commit 58a83e6622 .
2026-04-30 16:12:43 -07:00
wozeparrot and GitHub
eddcd4723b
am_smi throttle info ( #15997 )
2026-04-30 15:28:32 -07:00
chenyu and GitHub
52c92e15ae
no replacement multinomial ( #15995 )
...
* no replacement multinomial
Efraimidis–Spirakis
* num_samples == 1 can use fast path
2026-04-30 17:35:26 -04:00
chenyu and GitHub
e0b09f288f
input validation for rand functions ( #15990 )
2026-04-30 14:00:44 -04:00
nimlgen and GitHub
11e1a2b89f
cleaner and faster run_linear ( #15987 )
...
* cleaner and faster run_linear
* x
* assert for now
* x
* x
* sym_infer
* remove sink
2026-04-30 20:15:22 +03:00
qazal and GitHub
58b34e71bd
failing test for llama useless copies ( #15989 )
2026-05-01 00:55:29 +09:00
George Hotz and GitHub
0f7e296f5b
fix some indexing edge cases ( #15988 )
2026-04-30 08:05:30 -07:00
nimlgen and GitHub
6f8b10d251
remove base Runner ( #15986 )
...
* remove base Runner
* linters
2026-04-30 13:04:55 +03:00
George Hotz and GitHub
46a36a838a
small dtype shapes fixups ( #15984 )
2026-04-29 19:40:38 -07:00
chenyu and GitHub
b73248958a
minor rand cleanups ( #15982 )
2026-04-29 22:22:29 -04:00
chenyu and GitHub
53a28bafbd
rand device seed to its own function ( #15979 )
2026-04-29 17:21:40 -04:00
sirhcm and GitHub
d07741f1d7
am: look for firmware in /lib/firmware/amdgpu ( #15974 )
2026-04-29 17:15:09 -04:00
nimlgen and GitHub
c73e667fc0
remove if for precompiled programs ( #15980 )
2026-04-29 23:43:36 +03:00
qazal and GitHub
55915584e5
viz: fix cfg for emulated amd on the null device ( #15976 )
...
* simple failing when i test it end to end
* pass
* linter
* assemble
2026-04-30 05:18:09 +09:00
nimlgen and GitHub
dfd2d07005
remove CompiledRunner ( #15970 )
...
* rm usage of CompiledRunner
* more tests
* last
* linter
* sink
* remove
* linter
2026-04-29 22:45:48 +03:00
wozeparrot and GitHub
0080489abe
llama: use env vars ( #15978 )
2026-04-29 12:37:15 -07:00
qazal and GitHub
a37b605523
remove arch from asm kernel class ( #15977 )
...
* rm arch from kernel
* update other tests
* update abstractions4.py
2026-04-30 03:39:52 +09:00
sirhcm and GitHub
7a79c2948a
DEV visible device filter supports hyphenated syntax ( #15971 )
2026-04-29 14:02:21 -04:00
sirhcm and GitHub
6b9a45568c
autogen: better version handling for llvm and libclang ( #15975 )
2026-04-29 14:01:33 -04:00
chenyu and GitHub
654e611a29
_bits_to_rand to mixin ( #15972 )
2026-04-29 13:47:25 -04:00
George Hotz and GitHub
5f441ecffc
unify reduce + reduce_axis ( #15973 )
...
* unify reduce + reduce_axis
* fix all tests
* lil cleanups
2026-04-29 10:29:56 -07:00
qazal and GitHub
b63e0a5f74
viz/sqtt: move amd decoder to extra, don't import from ops_amd ( #15969 )
...
* don't import from ops_amd
* start
* cleanup
2026-04-30 00:49:15 +09:00
nimlgen and GitHub
7787f76dcc
get_runner -> get_runtime ( #15967 )
...
* get_runner -> get_runtime
* do not use get_runner
* fix
* remove get_tunner
* remove
* fix
* x
2026-04-29 18:29:49 +03:00
chenyu and GitHub
fb188c3c23
UOp.bitcast noop early return ( #15968 )
...
matches Tensor
2026-04-29 09:41:40 -04:00
qazal and GitHub
30403c1e25
viz/cli: merge DEBUG=6 and -i ( #15966 )
...
* print_step contiguous
* merge
2026-04-29 19:52:17 +09:00
qazal and GitHub
86621e9e7c
gate f32_to_fp8 renderer ( #15964 )
2026-04-29 19:12:46 +09:00
wozeparrot and GitHub
ef09071073
llama: speed 2 ( #15960 )
2026-04-28 20:44:37 -07:00
sirhcm and GitHub
e6863a1cc5
autogen: fewer type: ignores ( #15956 )
2026-04-28 21:58:13 -04:00
chenyu and GitHub
836af56513
some RandMixin cleanup ( #15961 )
...
cleaner to just put inside OpMixin
2026-04-28 19:58:02 -04:00
chenyu and GitHub
c4bea54e9c
_threefry_random_bits to mixin ( #15959 )
...
start RandMixin
2026-04-28 19:13:57 -04:00
George Hotz and GitHub
796fdf9fd8
end has no shape ( #15958 )
2026-04-28 15:15:48 -07:00
Miguel Villa Floran and GitHub
b36010c55a
DGX Spark and Jetson Thor support ( #15939 )
2026-04-28 18:08:21 -04:00
Nino Risteski and GitHub
5eb1fd5d3c
cleanup: untrack wait Metal buffers ( #15954 )
2026-04-28 12:54:59 -07:00
nimlgen and GitHub
77965a22e5
local optimize as rewrite ( #15953 )
...
* local optimize as rewrite
* better
* x
* slighly rename
* fix
* ugh
* remove
* x
* remove
* not weak
2026-04-28 22:51:04 +03:00
qazal and GitHub
b3f0f8d349
llama: fix missing label_smoothing arg ( #15955 )
2026-04-29 02:12:14 +09:00
wozeparrot and GitHub
5e861cd2c4
llama: move llama kernels to llama_kernels ( #15952 )
2026-04-27 22:48:53 -07:00
sirhcm and GitHub
987b6dd193
python -m tinygrad.device prints interface info ( #15950 )
2026-04-27 22:15:38 -04:00
qazal and GitHub
54f00e1013
sqtt: correct rdna4 structs ( #15948 )
2026-04-28 07:35:50 +09:00
Charlie Kerfoot and GitHub
890d7be0c3
fix: muon not using device ( #15936 )
2026-04-27 14:56:48 -07:00
qazal and GitHub
c58fd85a99
sqtt: add needs_rocprof decorator ( #15947 )
...
* sqtt: add needs_rocprof decorator
* version string
2026-04-28 06:22:50 +09:00
sirhcm and GitHub
3f508810d8
cpu: lowercase arch ( #15943 )
2026-04-27 17:05:25 -04:00
chenyu and GitHub
77f9125c21
move Tensor.pad to OpMixin ( #15946 )
2026-04-27 16:56:04 -04:00
nimlgen and GitHub
4164666c72
programinfo ( #15942 )
...
* programinfo
* fix
* m
* x
* x
* changes
* x
* fix
* rm
2026-04-27 23:12:03 +03:00
chenyu and GitHub
fe38d6de94
_pad_circular and _pad_reflect_replicate to mixin ( #15944 )
2026-04-27 16:07:05 -04:00
qazal and GitHub
8c174bdad4
viz/sqtt: correct exec pipes ( #15885 )
...
* wmma
* p2
* test
* left
* work
* pickle
* handwritten failing tests
* start work
* test the pipes
* empirical evidence
* update rdna4 enum types
* VALU pipe 1
* TRANSCENDENTAL pipe
* transcendental function units
* reorder
* wmma pipe
* cleanup and notes
* smaller
* work
* diff cleanup
* pickle
* use se:1
* int
2026-04-28 05:05:49 +09:00
qazal and GitHub
eeb8d5eb0c
viz: small ui changes ( #15940 )
...
* rename colors
* keep ctrl c
2026-04-27 04:00:13 +09:00
nimlgen and GitHub
96165ff0d1
validate_with_cpu as rewrite ( #15938 )
...
* validate_with_cpu as rewrite
* compil
* x
* linter
* moved
* fix
2026-04-26 19:58:53 +03:00
nimlgen and GitHub
117e9e22dd
estimates from graph ( #15937 )
...
* estimates from graph
* test
* x
2026-04-26 18:22:53 +03:00
chenyu and GitHub
e9983e3516
remove unused QCOMTextureInfo, QueueType [pr] ( #15935 )
2026-04-25 14:32:31 -04:00
nimlgen and GitHub
ac3494a7cc
remove some runners ( #15934 )
...
* remove runners
* mypy
2026-04-25 21:27:05 +03:00
nimlgen and GitHub
bb652352c7
remove execitem ( #15932 )
...
* remove execitem
* f
* x
2026-04-25 19:33:04 +03:00
chenyu and GitHub
e27444a0ff
remove unused UOp.shard_size [pr] ( #15933 )
2026-04-25 12:27:58 -04:00
nimlgen and GitHub
e0ff6cc15c
remove old schedule ( #15930 )
...
* remove old schedule
* tests
* r
* x
2026-04-25 16:46:36 +03:00
qazal and GitHub
9a23de7d27
viz/cli: unify profile and rewrites, -s ALL default ( #15931 )
...
* work
* workg
* better
* cleanup
* better defaults
* --ls
* better
* work
* update llama
* update
2026-04-25 22:31:24 +09:00
nimlgen and GitHub
768106a542
remove schedule from extra/docs/examples ( #15929 )
...
* remove schedule from extra/docs/examples
* f
2026-04-25 14:09:12 +03:00
nimlgen and GitHub
a5e9ea7a60
remove schedule batch 4 ( #15927 )
...
* remove schedule batch 4
* fini
2026-04-25 12:36:55 +03:00
nimlgen and GitHub
d2ab6ea7a6
remove schedule batch 3 ( #15924 )
...
* remove shcedule batch 3
* batch 6
* batch 7
2026-04-25 11:53:16 +03:00
nimlgen and GitHub
3c8a2db870
remove schedule() from tests batch 2 ( #15923 )
...
* remove schedule() from tests batch 2
* batch 4
2026-04-25 10:44:41 +03:00
Denys Melnyk and GitHub
1fdcb13bfb
webgpu: fix weight lookup in export_model after compile_net key change ( #15919 )
...
* fix lookup site in export_model_webgpu after refactoring
webgpu (sd): fix export_model weight lookup after compile_net changes
fix lookup site in export_model_webgpu after refactoring
* add regression test
2026-04-25 10:04:55 +03:00
sirhcm and GitHub
8b2826ef16
nv: fix shader local memory for NAK ( #15921 )
2026-04-25 01:03:11 -04:00
sirhcm and GitHub
57fbaa3d49
amd: fallback to llvm when comgr is not available ( #15914 )
2026-04-24 23:30:16 -04:00
wozeparrot and GitHub
4b908b6e2c
llama: fused ce loss ( #15920 )
2026-04-24 20:01:24 -07:00
nimlgen and GitHub
d3378010ee
schedule() -> schedule_linear() in tests (batch 1) ( #15915 )
...
* schedule_with_vars -> linear_with_vars in tests
* tests batch 1
* batch 2
* estimate_uop
* simpler
* rm
2026-04-24 23:40:53 +03:00
chenyu and GitHub
b501ba3e42
nll_loss to mixin ( #15918 )
2026-04-24 15:50:31 -04:00
chenyu and GitHub
2f9fdb4a37
scatter to mixin ( #15917 )
2026-04-24 15:37:37 -04:00
nimlgen and GitHub
f2751955cb
remove linear_to_schedule from tests ( #15912 )
...
* remove linear_to_schedule from tests
* x
2026-04-24 20:02:10 +03:00
nimlgen and GitHub
56a9f1e3ff
remove last jit_cahce ( #15911 )
...
* remove last jit_cahce
* linter
2026-04-24 19:44:52 +03:00
chenyu and GitHub
03a7604f76
sort argsort topk allclose to mixin ( #15910 )
2026-04-24 10:20:46 -04:00
nimlgen and GitHub
4010aa4044
jit: no jit_cache in graphrunner ( #15907 )
...
* jit: no jit_cache in graphrunner
* m
2026-04-24 16:34:26 +03:00
chenyu and GitHub
7a1adfd2aa
update Tensor.allclose to return Tensor ( #15904 )
...
matches jax
2026-04-24 08:27:17 -04:00
Eitan Turok and GitHub
48d7ab2695
no uv.lock ( #15893 )
2026-04-24 20:07:07 +08:00
qazal and GitHub
5eb641395a
viz/cli: select kernel events in -s DEV ( #15909 )
...
* simple test
* pass
2026-04-24 21:03:34 +09:00
nimlgen and GitHub
c0f77c2e1c
hcq graph to linear ( #15888 )
...
* hcq
* f
* f
* linter
2026-04-24 12:42:49 +03:00
sirhcm and GitHub
cbf4946ea6
usb: multiple gpus and better error messages ( #15900 )
2026-04-24 01:57:19 -04:00
wozeparrot and GitHub
9d134a2848
llama: fix fakedata timing ( #15905 )
2026-04-23 21:37:03 -07:00
b1tg and GitHub
aab50d1bca
llm: dedup MLA cache_v ( #15887 )
2026-04-24 12:32:10 +08:00
qazal and GitHub
f379b5a40a
sqtt: match amd's TS_DELTA_SHORT offset ( #15901 )
2026-04-24 06:41:22 +03:00
chenyu and GitHub
c24da99d56
avg_pool2d, max_pool2d to mixin ( #15903 )
...
* avg_pool2d, max_pool2d to mixin
* fix
* just dtype
* that
2026-04-23 23:36:17 -04:00
chenyu and GitHub
08d9106c9f
scatter_reduce and sparse_categorical_crossentropy to mixin ( #15902 )
...
also use `.ne` to fix `# type: ignore[comparison-overlap]`
2026-04-23 21:06:36 -04:00
chenyu and GitHub
8cc2c69e21
fix isclose mixin ( #15898 )
...
use `.eq` instead of `==`
2026-04-23 20:40:43 -04:00
nimlgen and GitHub
3072862e2c
metal to linear ( #15884 )
...
* metal to linear
* x
* x
* fix
2026-04-23 23:32:22 +03:00
chenyu and GitHub
782bc6aece
broadcast in ElementwiseMixin.div [pr] ( #15897 )
2026-04-23 16:02:43 -04:00
qazal and GitHub
7745e05a2f
sqtt: update wave end packet names ( #15896 )
...
* sqtt: update wave end packet names
* update wavestart and emu
2026-04-24 04:21:22 +09:00
qazal and GitHub
ee7644932b
viz/cli: -t default number ( #15894 )
...
* viz/cli: accept one path argument
* -t default
* hm
* only the -t change
2026-04-24 04:13:16 +09:00
chenyu and GitHub
11c197955b
interpolate and cross_entropy to mixin ( #15895 )
2026-04-23 14:59:45 -04:00
chenyu and GitHub
f0dbc68aa9
gather to mixin ( #15891 )
2026-04-23 14:00:57 -04:00
chenyu and GitHub
87223f870e
logcumsumexp, argmax, argmin, sequential to mixin ( #15890 )
2026-04-23 12:10:42 -04:00
nimlgen and GitHub
5cf4ad2fb6
fix resolve param ( #15889 )
2026-04-23 17:41:44 +03:00
nimlgen and GitHub
e4696185bd
cleaner cuda graph ( #15886 )
2026-04-23 16:34:29 +03:00
wozeparrot and GitHub
d3cbd781d9
llama: use fused norm mul quantize for w13 ( #15878 )
2026-04-22 21:27:41 -07:00
George Hotz and GitHub
0c3260d5d9
rename VECTORIZE to STACK ( #15880 )
2026-04-23 10:43:42 +08:00
chenyu and GitHub
7c9bc29e44
Tensor method raise if arg is on different device ( #15879 )
...
instead of implicit `to`. this matches torch
2026-04-22 22:20:22 -04:00
chenyu and GitHub
1fc4b3788c
cummax/cummin to mixin ( #15877 )
2026-04-22 21:25:39 -04:00
chenyu and GitHub
684e95e1d4
UOp binary op broadcasts dtype ( #15875 )
...
* UOp binary op broadcasts dtype
matches Tensor
* fix
* fix?
2026-04-22 20:37:19 -04:00
sirhcm and GitHub
b0dc95a390
AMX in arch, better docs ( #15871 )
2026-04-22 17:25:18 -04:00
nimlgen and GitHub
e5891acab2
jit: precompile ( #15848 )
...
* x
* jit: precompile as sep step
* x
* s
* x
* x
* x
* ?
* ?
* x
* x
* viz
* f
* x
* u
* x
* x
2026-04-23 00:23:32 +03:00
chenyu and GitHub
b9e2bc619e
simplify bool.cast() != const ( #15874 )
2026-04-22 17:08:09 -04:00
nimlgen and GitHub
2041945f4b
cuda graph to linear ( #15870 )
...
* cuda graph to linear
* fix
* keep as old for now
* x
* x
2026-04-22 23:39:58 +03:00
chenyu and GitHub
e9ebd03e86
update reduce_to_acc index dtype [pr] ( #15873 )
...
index arg should have weakint dtype
2026-04-22 16:25:50 -04:00
chenyu and GitHub
3c8daa9a75
update test_where_removal ( #15872 )
...
don't use UOp.ufix for const_like, it will broadcast dtype soon
2026-04-22 14:56:37 -04:00
geohot
09ff3e1883
hotfix: add bytes back to llm
2026-04-23 00:46:27 +08:00
b1tg and GitHub
af93a677ae
llm: glm 4.5 air ( #15771 )
...
* llm: glm 4.5 air
* clean
* clean
* remove gguf_size
2026-04-22 22:47:37 +08:00
qazal and GitHub
719a7bdac5
viz: respect optional estimates in kernel info ( #15867 )
...
* simple failing test
* unpack kernel info
2026-04-22 14:24:48 +03:00
George Hotz and GitHub
2d7fa58e61
fix shapes to match vecless ( #15866 )
...
* fix shapes
* need to simplify shapes
2026-04-22 18:27:46 +08:00
qazal and GitHub
de8f58899e
move elf assembler to renderer ( #15855 )
...
* move elf assembler to renderer
* other
2026-04-22 19:00:36 +09:00
geohot
d4c344b7fd
hotfix: keep VCONST exclude in viz
2026-04-22 15:54:24 +08:00
wozeparrot and GitHub
87378331e8
llama: fused mul quantize fp8 ( #15863 )
2026-04-21 20:58:37 -07:00
George Hotz and GitHub
0560fa7b0f
add shape to range/special ( #15862 )
2026-04-22 11:15:02 +08:00
chenyu and GitHub
3821e442eb
_one_hot_along_dim and one_hot to mixin ( #15861 )
2026-04-21 20:24:38 -04:00
chenyu and GitHub
f911a63a6b
don't allow negative num_classes in one_hot ( #15859 )
...
no auto infer num_classes, matches jax
2026-04-21 19:39:29 -04:00
sirhcm and GitHub
697e7aa819
MOCK+AMD and MOCK+NV interfaces ( #15858 )
...
MOCK+AMD is an alias for MOCKKFD+AMD, MOCKNVK+NV is renamed to MOCK+NV
2026-04-21 18:22:16 -04:00
chenyu and GitHub
75ee51a446
triu tril _tri to mixin ( #15857 )
2026-04-21 17:10:55 -04:00
qazal and GitHub
e36ff22538
fix dev syntax in emulated amd tests, skip test_tk ( #15856 )
...
* fix dev syntax in emulated amd tests
* skip test_tk
2026-04-21 23:47:29 +03:00
sirhcm and GitHub
99a0debd62
Device.count() ( #15842 )
2026-04-21 16:46:38 -04:00
chenyu and GitHub
1946ae8b51
linspace and eye to mixin ( #15854 )
2026-04-21 15:58:03 -04:00
qazal and GitHub
0fbe0a6a99
viz/cli: ux tweaks ( #15853 )
...
* viz/cli: rename to --json
* st_ms, end confuses kimi
* remove pickle spam
* better
* comment
2026-04-21 22:18:27 +03:00
chenyu and GitHub
86ceb3bd6b
arange to mixin ( #15852 )
2026-04-21 13:00:19 -04:00
chenyu and GitHub
420e4c4673
zeros, ones, invalids to mixin ( #15850 )
2026-04-21 11:53:08 -04:00
chenyu and GitHub
9192c93b7e
Tensor.invalid -> Tesnor.invalids ( #15849 )
...
matches ones and zeros, and to not share name with UOp.invalid
2026-04-21 11:19:51 -04:00
nimlgen and GitHub
bfe28ee2ad
rm run_schedule ( #15847 )
2026-04-21 18:14:30 +03:00
chenyu and GitHub
d08b5d0a3b
full to mixin ( #15840 )
...
with unique_const
2026-04-21 10:53:43 -04:00
nimlgen and GitHub
ae9b84d32f
rm beam uop ( #15844 )
2026-04-21 13:10:26 +03:00
nimlgen and GitHub
01ac1c8c15
remove all run_schedule from tests ( #15846 )
2026-04-21 12:02:10 +03:00
qazal and GitHub
f9655af2a3
viz/cli: move to tinygrad ( #15835 )
...
* move cli
* update imports
* cleanup the readme
* edit
* work
* details
* python -m tinygrad.viz.cli
* do not execv in non tty
* option
* lint
* simpler
* gemm pmc
2026-04-21 13:35:10 +09:00
sirhcm and GitHub
1a8ba4cbd6
CPU renderers use arch ( #15839 )
2026-04-20 23:38:29 -04:00
chenyu and GitHub
cabc347066
conv2d and conv_transpose2d to mixin ( #15838 )
...
* conv2d and conv_transpose2d to mixin
* cleanup
2026-04-20 18:10:06 -04:00
nimlgen and GitHub
b8d3bf8970
run_linear in jit ( #15827 )
...
* run_linear in jit
* x
* x
* f
* casts
* ugh
* f
* x
* x
* simple
2026-04-20 23:03:30 +03:00
chenyu and GitHub
e00cc8ae5e
split Tensor._conv2d_winograd ( #15837 )
2026-04-20 15:19:33 -04:00
chenyu and GitHub
667b30b974
tensor pad arg cleanups ( #15836 )
2026-04-20 15:03:09 -04:00
chenyu and GitHub
8eeb77a905
flat_to_grouped and resolve_pool_pads to helpers ( #15834 )
2026-04-20 14:03:35 -04:00
chenyu and GitHub
b01704444b
einsum to ReduceMixin ( #15833 )
2026-04-20 11:49:24 -04:00
chenyu and GitHub
3a557016cb
delete UOp.get_consumer_map [pr] ( #15832 )
...
not used
2026-04-20 10:57:42 -04:00
chenyu and GitHub
04e8dbd7f8
remove getitem check in get_shape ( #15830 )
...
not needed
2026-04-20 10:40:46 -04:00
chenyu and GitHub
72ecc61ca8
use more UOp method [pr] ( #15821 )
...
instead of constructing UOp directly
2026-04-20 09:17:56 -04:00
qazal and GitHub
601b9d3f59
viz/cli: dedup DEBUG=3 pyrender ( #15826 )
2026-04-20 19:29:09 +09:00
ayanhan and GitHub
80c7327e0f
resolve Metal ARC FIXME with explanation comment ( #13688 )
2026-04-20 17:10:37 +08:00
nimlgen and GitHub
c0d7135b5f
do not use jit_cache in test ( #15823 )
...
* do not use jit_cache in test
* fix
2026-04-20 11:45:17 +03:00
George Hotz and GitHub
5819c0abed
fix gc in gguf ( #15820 )
...
* fix gc in gguf
* fix mypy
2026-04-20 10:15:03 +08:00
George Hotz and GitHub
67ed4c4eb3
move gguf stuff from nn/state.py to llm/gguf.py ( #15783 )
...
* move gguf stuff from nn/state.py to llm/gguf.py
* docs
2026-04-20 09:41:43 +08:00
chenyu and GitHub
538841d1f2
remove_tags and _remove_all_tags are the same [pr] ( #15819 )
...
also other small UOp method cleanups
2026-04-19 21:37:49 -04:00
Kartik Vashishta and GitHub
a1696e8413
objc: fix _classmethods_ dispatch flag ( #14854 )
...
* objc: fix _classmethods_ dispatch flag
* test: add objc _classmethods_ regression
2026-04-20 09:35:03 +08:00
oxrinz and GitHub
f551a4bded
add threefry const folding ( #15787 )
...
* prim threefry
* test fix
* clean test
* cleanup
* cleanup 2
* cleanup 3
* fix conflict markers in test_const_folding.py
* update test
* fix lint
* use const instead of value for test
2026-04-20 09:30:03 +08:00
qazal and GitHub
b05b1010bf
viz/cli: ux cleanups, show user python ( #15817 )
...
* small fixes
* print python trace
* jsonl
* cleanup fmt, fix tqdm
* print mode
* types
* less
* keep those
* fix
* everyone can print json
* pmc p2
2026-04-20 03:50:48 +03:00
chenyu and GitHub
8b87b3522a
more UOp empty cleanups [pr] ( #15818 )
2026-04-19 19:48:36 -04:00
chenyu and GitHub
2a5a6236ac
UOp.empty and UOp.empty_like ( #15816 )
...
* UOp.empty and UOp.empty_like
Tensor.empty and Tensor.empty_like use these, and removed _buffer_like
* import line
2026-04-19 16:01:01 -04:00
qazal and GitHub
c6d8753ee1
viz/cli: --json support, refine docs ( #15528 )
...
* refine
* remove
* refine
* keep
* need to say this
* back
* feedback
* feedback
* json
* dur_ms
* et_ms
* remove useless thing
* docs
* respect NO_COLOR
* DEBUG also produces valid json
2026-04-19 21:53:38 +03:00
chenyu and GitHub
50a7b82372
merge untag_and_append and append_after [pr] ( #15815 )
...
reads cleaner
2026-04-19 13:13:26 -04:00
chenyu and GitHub
cace07c87a
clean up untag_and_append [pr] ( #15812 )
...
replace_uop does not change, and ret.op is always AFTER
2026-04-19 11:23:59 -04:00
wozeparrot and GitHub
f28ea84de2
llama: fused silu fp8 amax ( #15798 )
...
* llama: combined w13
* llama: fused swiglu+fp8
* llama: fix amax interleaving
* llama: don't need seperate matmul
2026-04-19 12:03:55 +08:00
chenyu and GitHub
5bdfd4883f
update test_assign ( #15809 )
...
clean up old skips and update tests
2026-04-18 21:25:44 -04:00
nimlgen and GitHub
022d8c4a11
remove jit_cache usage in extra/examples ( #15808 )
...
* remove jit_cache usage in extra/examples
* cached
2026-04-18 23:00:18 +03:00
wozeparrot and GitHub
06343092c8
llama: combined w13 ( #15803 )
2026-04-17 22:27:31 -07:00
sirhcm and GitHub
6adf4c3cd9
MOCKGPU interfaces ( #15796 )
2026-04-17 21:56:29 -04:00
chenyu and GitHub
8da308573f
update test_assign_changes_alt with clone ( #15802 )
2026-04-17 20:17:37 -04:00
qazal and GitHub
2581985532
viz/cli: multi device profiler output, print markers ( #15795 )
...
* yield
* all devices
* better
* add unittests
* markers like this
* profile_markers work
* less
* update README
* tiny and null
2026-04-17 23:40:10 +03:00
chenyu and GitHub
0191cc73dc
update arange range check ( #15794 )
...
it was not checking negative steps correctly
2026-04-17 16:07:50 -04:00
nimlgen and GitHub
23ca680a3a
run_linear ( #15784 )
...
* run_linear try 2
* x
* f
* tests
* ctx, cleaner
* r
* x
2026-04-17 22:44:16 +03:00
qazal and GitHub
8fcaaede9a
fix root cause of TestVizIntegration.test_link_sched_codegen flakiness ( #15793 )
2026-04-17 20:31:52 +03:00
googlefan256 and GitHub
482c8c1ec8
Fix no module named error ( #15792 )
2026-04-17 19:42:35 +03:00
qazal and GitHub
a227dbece1
viz/cli: reconstruct DEBUG output ( #15791 )
...
* work
* work
* ext
* padding
* at time
* work
* reorder
* less flags
* num_rows
* feedback
* pmc
2026-04-17 18:27:58 +03:00
qazal and GitHub
601d137e85
viz: rename to rewrites_data, only use ContextVar ( #15790 )
...
* viz: rename to rewrites_data
* tms also 0
* gt 0
2026-04-17 17:21:51 +03:00
qazal and GitHub
afc3904e58
viz/cli: unit tests in CI ( #15788 )
...
* simple failing test
* test stdout
* cleanup sqttmap
2026-04-17 22:34:44 +09:00
qazal and GitHub
9f2a578e26
unskip TestCall.test_call_gemm_uop [pr] ( #15786 )
2026-04-17 16:18:51 +03:00
qazal and GitHub
7bdb3adbbf
viz/cli: simplification and reordering ( #15785 )
...
* remove
* work
* this is all one thing
* the reorder
2026-04-17 15:16:07 +03:00
George Hotz and GitHub
e1d13bc4fe
add GGUF IQ4_XS support ( #15766 )
...
* add GGUF IQ4_XS support
* gguf 21
* gguf 21
* use plus
* ggml_common autogen for constant arrays
* fix
* ggml_common in autogen
* inline
2026-04-17 14:43:39 +08:00
wozeparrot and GitHub
9e60e4a7e7
llama: native fp8 ( #15733 )
2026-04-16 22:16:05 -07:00
George Hotz and GitHub
a9b6cfece0
refactor llm into files ( #15780 )
...
* refactor llm into files
* chat.html
* tokenizer cleanup
* cleanup
* tests
2026-04-17 12:33:11 +08:00
chenyu and GitHub
1fac03ce54
softmax and friends to mixin ( #15778 )
...
with detach now
2026-04-16 23:03:37 -04:00
George Hotz and GitHub
ec00cefa5b
llm is the only app ( #15779 )
...
* tinygrad/llm is the only app
* upd pyproject
* claude refs
* scoping
* min diff
2026-04-17 10:44:48 +08:00
qazal and GitHub
0e69388f6b
viz/cli: add DEBUG, optional number of rows ( #15777 )
...
* tabulate switch
* support DEBUG
* --top
* improve
* work
* feedback
* 0
* print_kernel both ways
* simplify
2026-04-17 04:36:47 +03:00
chenyu and GitHub
2d196fb9bb
move Tensor.size to mixin ( #15775 )
2026-04-16 17:56:17 -04:00
sirhcm and GitHub
9f4b7bed25
add pickled jit regression test ( #15774 )
2026-04-16 16:59:09 -04:00
qazal and GitHub
6d9320ffb3
add NO_COLOR ( #15765 )
...
* NO_COLOR in cli
* add in helpers
* rm flags
* docs
* fix that
* temp
* Revert "temp"
This reverts commit 7522e664f6 .
2026-04-16 22:44:55 +03:00
qazal and GitHub
12c653a743
remove opts arg in get_program, everything uses opts_to_apply [pr] ( #15767 )
...
* check Ops.BEAM in process replay
* remove opts from the get_program api
* lint
* simplify
* cleanup
2026-04-16 22:42:43 +03:00
chenyu and GitHub
f0c12a2004
another form of assign to itself ( #15770 )
2026-04-16 15:17:19 -04:00
b1tg and GitHub
4e88d875ba
llm: glm 4.7 flash ( #15738 )
...
* glm 4.7
* test
* temperature, server enable_thinking
* --no-think
* remove think stuff
2026-04-16 22:42:04 +08:00
chenyu and GitHub
d147e2a549
update test_nested_after_contiguous_store ( #15763 )
...
add kernel counts and some TODOs
2026-04-16 09:59:26 -04:00
qazal and GitHub
126cda45f8
viz/cli: cleanups, add memory printer ( #15762 )
...
* simple repro
* use context
* work
* memory printer
* rm
* memory printer
* pylint
2026-04-16 22:44:47 +09:00
George Hotz and GitHub
f57380cbc2
simplify GatedDeltaNetBlock using two state tensors ( #15704 )
...
* test double after
* simpler ssm
* no double test
2026-04-16 21:14:00 +08:00
nimlgen and GitHub
c04f3eaa70
jit: capturedjit is linear ( #15743 )
...
* jit: capturedjit is linear
* x
* new beam
* test
* imp
* clean
* spec
* linter
2026-04-16 14:54:39 +03:00
George Hotz and GitHub
d1cce7a476
put the ranges on store instead of after ( #15759 )
...
* put the ranges on store instead of after
* better assert
* fix stuff
* comment out slow rules i don't understand
* simpler rule
* closer
* return false for store
* fix loop
* only a few schedule failures remain
* remove stores to self
* all tests pass locally
* remove junk
* regression test and fix
* better test, bump broken torch count
* bugfix with regression test
* new fusion is better
2026-04-16 19:06:40 +08:00
George Hotz and GitHub
d24466c844
CALL with return value is FUNCTION ( #15758 )
...
* CALL with return value is FUNCTION (GPT try)
* cleanups
2026-04-16 13:25:07 +08:00
chenyu and GitHub
218d6b8988
delete old UOp.size [pr] ( #15756 )
2026-04-15 23:21:00 -04:00
wozeparrot and GitHub
d090732270
usbgpu: reset endpoint for custom fw ( #15754 )
2026-04-15 20:01:27 -07:00
Muzammil and GitHub
983a7bb576
exclude __del__ from TRACEMETA wrapping ( #15747 )
...
Session-Id: 019d9234-2531-75a0-a252-f0302cd9931f
2026-04-16 10:49:55 +08:00
chenyu and GitHub
8bd4fead26
UOp.size -> prod(max_shape) ( #15755 )
...
and more test updates
2026-04-15 22:41:30 -04:00
chenyu and GitHub
10c262ced8
update tests that use UOp.size ( #15753 )
2026-04-15 21:58:27 -04:00
qazal and GitHub
96092d110c
fix process_replay Ops.BEAM [pr] ( #15752 )
2026-04-16 07:35:28 +09:00
chenyu and GitHub
41421c3b48
BUFFER size is their arg ( #15750 )
2026-04-15 18:08:29 -04:00
sirhcm and GitHub
be8005c5dc
DEV: secondary targets ( #15748 )
2026-04-15 17:26:20 -04:00
chenyu and GitHub
507c02cecb
fix symbolic contiguous_view_offset ( #15749 )
...
* fix symbolic contiguous_view_offset
* flatten
2026-04-15 16:54:38 -04:00
nimlgen and GitHub
164495678c
test_graph to use uops ( #15746 )
...
* test_graph to use uops
* x
* n
2026-04-15 21:59:41 +03:00
qazal and GitHub
1f26584b2e
viz/cli: cleanups from linter ( #15745 )
...
* run linter
* pmc
2026-04-16 03:36:24 +09:00
chenyu and GitHub
7cbfa1896a
comment out unused arm, triton in toml ( #15741 )
...
fixed `PYTHONPATH=. uv run tinygrad/apps/llm.py`
2026-04-15 10:05:19 -04:00
sirhcm and GitHub
1c36878008
DEV: suggest alternatives ( #15732 )
2026-04-14 23:42:32 -04:00
George Hotz and GitHub
1ae6528bb6
move schedule into schedule ( #15736 )
...
* move schedule into schedule
* callify to root
* sched docs
2026-04-15 11:03:25 +08:00
wozeparrot and GitHub
3721c60bef
llama: bs 16 ( #15737 )
2026-04-14 19:52:03 -07:00
wozeparrot and GitHub
480ad264a4
llama: per device amax ( #15735 )
2026-04-14 19:01:17 -07:00
sirhcm and GitHub
adc96cd724
qcom: synchronize for copyin ( #15731 )
...
fixes : #15698
2026-04-14 18:31:15 -04:00
chenyu and GitHub
3394d18066
size*itemsize -> nbytes ( #15729 )
...
and some UOp.size removal to prep for size to mixin change
2026-04-14 16:27:54 -04:00
nimlgen and GitHub
e9ecc990ea
amd: add r9700 devid ( #15721 )
2026-04-14 20:15:00 +03:00
George Hotz and GitHub
2450c8cba8
rename to callify + fix mypy ( #15727 )
...
* rename to callify + fix mypy
* update test
2026-04-14 23:43:19 +08:00
chenyu and GitHub
528faa18ec
update env_vars.md ( #15722 )
...
remove HCQ_VISIBLE_DEVICES, IMAGE=2 and old DEBUG=3 stuff
2026-04-14 09:13:35 -04:00
George Hotz and GitHub
359b1582d6
amd: EMU DPP support ( #15719 )
...
* EMU DPP support from GPT 5.4
* cleanups
* simple
* nope
* fix
2026-04-14 14:58:41 +08:00
wozeparrot and GitHub
2b8d303f75
allreduce in precast dtype ( #15689 )
2026-04-13 20:24:12 -07:00
George Hotz and GitHub
5683126844
llm: support for tekken tokenizer ( #15720 )
2026-04-14 10:52:07 +08:00
chenyu and GitHub
70883a6950
cat the stack to mixin ( #15715 )
2026-04-13 18:44:39 -04:00
qazal and GitHub
355e2729d3
viz: keep program UOp in data ( #15714 )
...
* refactor program uop access
* c.name
2026-04-14 07:04:16 +09:00
qazal and GitHub
905b8adc97
viz: cli and server cleanups ( #15713 )
...
* update get_profile arg[0]
* uop_to_json arg[0]
* data is standalone in cli
2026-04-14 06:42:29 +09:00
sirhcm and GitHub
d83707ec29
autogen: explicit types ( #15679 )
2026-04-13 16:54:39 -04:00
chenyu and GitHub
ac41f15fc1
cumsum to mixin ( #15712 )
...
built on top of getitem
2026-04-13 15:06:08 -04:00
nimlgen and GitHub
eac481b67f
mlx: fix ctypes ( #15711 )
...
* mlx: fix ctypes
* x
2026-04-13 20:43:56 +03:00
nimlgen and GitHub
b370f5c5ac
hcq: call free for unmap ( #15710 )
2026-04-13 20:30:21 +03:00
chenyu and GitHub
931d6cc62a
basic getitem to mixin ( #15697 )
...
* basic getitem to mixin
* cleanup
* fix
* cleanup
2026-04-13 13:04:36 -04:00
George Hotz and GitHub
7610bdc59e
block multistore, it's not supported ( #15708 )
2026-04-13 20:57:59 +08:00
geohot
84d64b5835
hotfix: abstractions4 works in mock except asm
2026-04-13 20:57:00 +08:00
George Hotz and GitHub
16f50a40a5
remove REMU from tree ( #15706 )
...
* no more compare emulators
* remove remu from tree
2026-04-13 20:43:08 +08:00
qazal and GitHub
ac027055ef
viz: no global state ( #15705 )
...
* start viz data
* get_full_rewrites also moves
* update ref_map
* work
* update consumers
* cleaner cli
* linter
* cleanup tests
* back
* better
* sqtt tests
2026-04-13 21:35:20 +09:00
George Hotz and GitHub
4c1fb18a09
Revert "Revert "Tests for GatedDeltaNetBlock + fix multi after assign issue (…" ( #15703 )
...
This reverts commit 0cec42db71 .
2026-04-13 19:09:38 +08:00
George Hotz and GitHub
0cec42db71
Revert "Tests for GatedDeltaNetBlock + fix multi after assign issue ( #15700 )" ( #15702 )
...
This reverts commit 6f5d756282 .
2026-04-13 19:06:44 +08:00
George Hotz and GitHub
6f5d756282
Tests for GatedDeltaNetBlock + fix multi after assign issue ( #15700 )
...
* broken after/assign test
* test for GatedDeltaNet
* better comments
* fix issue 1 with multi kernel
* fix 2
* fix
* linter
* public api + cleanup
2026-04-13 18:43:23 +08:00
2b5ba0095d
qwen3.5 ( #15210 )
...
* qwen3.5
* faster
* or
* rm zero hack
* less float
* T=1
* clean
* clean
* 4b
* rope_dim
* Revert "jit: captures linears, not execitems (#15399 )"
This reverts commit 9656d97d97 .
* DeltaNetBlock
* pairwise_topk
* clean
* Reapply "jit: captures linears, not execitems (#15399 )"
This reverts commit cf3deff53d .
* clean topk, _swiglu
* common
* FFNBlock
* clean
* half
* no mix
* qwen3.5 test
* fix ssm cache invalidation
* TransformerConfig
* SSMConfig
* clean
* reset_state
* llm: reuse server conversation tokens to avoid BPE roundtrip cache miss
* import error
* prefill
* none check
* put it back
* clean pairwise_topk
* symbolic: fold BIND(CONST, CONST) to CONST
* clean
* simpler pm
* _cached_msg_count
* stream decoder; ssm checkpoints
* rm checkpoint
* attn_output_gate
* conflict, attn_output_gate
* clean, less has_ssm, assert
* chunked prefill
* _reset_cache
* _reusable_prefix_len
* revert loop
---------
Co-authored-by: b1tg <[email protected] >
Co-authored-by: George Hotz <[email protected] >
2026-04-13 15:35:24 +08:00
qazal and GitHub
2ada38f777
viz: execv after all producers complete ( #15696 )
2026-04-13 08:15:47 +09:00
chenyu and GitHub
f7ff480fa6
start mixin getitem tests ( #15695 )
...
goal is to make Tensor[idx].uop equal to Tensor.uop[idx]
2026-04-12 18:54:33 -04:00
chenyu and GitHub
77385ccb37
more trivial stuff to mixin ( #15693 )
2026-04-12 15:17:16 -04:00
chenyu and GitHub
ff1de5ae13
normalize logsumexp contiguous_backward to mixin ( #15692 )
...
* normalize logsumexp contiguous_backward to mixin
* more
2026-04-12 13:13:00 -04:00
chenyu and GitHub
0254cfe642
move usum and uprod to mixin ( #15690 )
...
and used it to clean up ops and tensor
2026-04-12 11:42:24 -04:00
nimlgen and GitHub
e9b2e156b4
add jitbeam to tinygpu docs ( #15691 )
2026-04-12 18:20:26 +03:00
chenyu and GitHub
e706f408cb
suppress test warnings from numpy ( #15688 )
2026-04-11 22:33:20 -04:00
nimlgen and GitHub
938cba4fdf
amd: a bit faster usb, skip interrupts on sync ( #15686 )
2026-04-11 17:26:36 +03:00
qazal and GitHub
054d78e6ff
fix llama profile.sh NULL source ( #15685 )
2026-04-11 22:56:05 +09:00
4ca844e96b
add Q1_0 gguf type ( #15683 )
...
* add Q1_0
* better description
* fix trailing whitespace
---------
Co-authored-by: George Hotz <[email protected] >
2026-04-11 18:17:24 +08:00
George Hotz and GitHub
5156a04cf5
add support for AM_POWER_LIMIT ( #15684 )
...
* add support for AM_POWER_LIMIT
* level None
2026-04-11 17:14:54 +08:00
wozeparrot and GitHub
457508d5a0
llama: save more 2 ( #15681 )
2026-04-11 01:03:36 -07:00
geohot
29238b772f
AMD USB: support for 0xF3 power toggle
2026-04-11 13:04:38 +08:00
George Hotz and GitHub
b5a9465b13
llm: add support for moonlight (deepseek MLA) ( #15466 )
...
* add gguf Q5_0
* it works
* rebase
* simpler test
* class
* less diff
* dicts
* normal names
* simplify
* this
* simpler
* work
* work
2026-04-11 10:32:48 +08:00
wozeparrot and GitHub
590464c8d8
llama: only support wqkv path + cleanups ( #15680 )
...
* llama: only support wqkv path + cleanups
* llama: missing transpose
2026-04-11 07:39:27 +08:00
nimlgen and GitHub
aa012d6f08
usb: faster custom ( #15678 )
...
* usb: _f0_out_buf for e4 cmd as well
* custom speed
* fast
2026-04-10 23:00:31 +03:00
nimlgen and GitHub
58646f9569
usb fast copyout ( #15677 )
...
* usb
* fix usb
2026-04-10 21:04:49 +03:00
qazal and GitHub
0d5cdc9600
viz: split draw loop ( #15676 )
...
* split draw loop
* one draw
* no functions
* inline all highlights
* cleanup
2026-04-10 23:25:50 +09:00
chenyu and GitHub
e1334d3852
move canonicalize_device to device.py ( #15675 )
2026-04-10 09:43:56 -04:00
chenyu and GitHub
8e7fcc8ca3
remove _include_initial in _cumalu ( #15674 )
...
handle negative pad in caller
2026-04-10 08:33:30 -04:00
George Hotz and GitHub
9092f2a8c0
llm: add shared_expert and rope_dim support from qwen35 ( #15673 )
...
* llm: add shared_expert and rope_dim support from qwen35
* refactor into FFNBlock and TransformerBlock
* norms where they belong
2026-04-10 19:18:27 +08:00
b1tg and GitHub
9ab1415937
llm: fix streaming UTF-8 decode ( #15653 )
2026-04-10 17:01:02 +08:00
wozeparrot and GitHub
55bcd7cc9e
llama amax outside ( #15670 )
2026-04-09 23:08:03 -07:00
George Hotz and GitHub
16f3448b26
Add HIP to abstractions4 ( #15672 )
...
* cleanup formatting
* add HIP option
* pass in correct
2026-04-10 14:05:52 +08:00
George Hotz and GitHub
ed2a72bb23
work on abstractions4 ( #15671 )
...
* work on abstractions4
* works
* offst
* assembly works
* RAND
* cleanup
* work
2026-04-10 13:25:11 +08:00
sirhcm and GitHub
dbc23e8a1b
move HCQ_VISIBLE_DEVICES into DEV ( #15668 )
2026-04-09 22:01:35 -04:00
geohot
fa02105546
hotfix: pin amd isa xml version
2026-04-10 06:47:00 +08:00
nimlgen and GitHub
057dc173ab
beam uop ( #15660 )
...
* beam as uop
* x
2026-04-09 19:13:03 +03:00
nimlgen and GitHub
0ff30b003d
am: reset queues from spi ( #15664 )
...
* am: reset queues from spi
* move
2026-04-09 18:25:50 +03:00
George Hotz and GitHub
48a7627b04
add RDNA4 support to copy WMMA ( #15663 )
...
* add RDNA4 supportt to copy WMMA
* simpler
* simpler
* comment
* assert
2026-04-09 22:48:20 +08:00
chenyu and GitHub
6837881b06
remove same_shape_noop [pr] ( #15662 )
...
no longer used
2026-04-09 09:50:26 -04:00
sirhcm and GitHub
d08c76d9cb
c.Struct cleanup ( #15640 )
2026-04-08 20:07:16 -04:00
qazal and GitHub
742b3894d7
viz/cli: add pmc printer ( #15651 )
...
* viz/cli: add pmc printer
* cli work
* s
* linter
* pack workgroups
* add : to wgp
* counter name
2026-04-09 08:50:54 +09:00
chenyu and GitHub
4cf2759fc8
fix merge_reduce_ends ( #15659 )
...
* fix merge_reduce_ends
same range with different nesting should not merge, like cumsum twice should not merge
* skip that
2026-04-08 17:20:01 -04:00
chenyu and GitHub
cb681da840
move UOp.pad to mixin ( #15657 )
...
the same arg works for Tensor.pad
2026-04-08 13:15:19 -04:00
nimlgen and GitHub
28b14b0e38
mlx: remove to_be, use helpers ( #15655 )
2026-04-08 20:07:28 +03:00
nimlgen and GitHub
1b44cb2ac6
split update stat from execitem ( #15654 )
2026-04-08 20:07:12 +03:00
qazal and GitHub
71c83cc3f6
viz: put OTHER_ on the wave row ( #15650 )
...
* viz: put OTHER_ on the wave row
* update tests
* cleanup cli
2026-04-08 23:13:44 +09:00
chenyu and GitHub
839d37b7bc
update median_step_time in model_train.py ( #15649 )
...
BENCHMARK=5 used to pick the 4th largest, not the middle one
2026-04-08 09:53:59 -04:00
chenyu and GitHub
dae9dea903
clean up tensor random functions ( #15648 )
...
* clean up tensor random functions
* revert that
2026-04-08 09:44:37 -04:00
1ebeb52e59
RDNA4 asm gemm ( #15427 )
...
* sqtt: rdna4 decoder work
* diff cleanup
* more diff
* test
* 125
* r4
---------
Co-authored-by: qazal <[email protected] >
Co-authored-by: qazal <[email protected] >
2026-04-08 21:26:44 +08:00
nimlgen and GitHub
b1e52ba0c2
the slowest line in hcq graph ( #15635 )
...
* the slowest line in hcq graph
* x
2026-04-08 15:53:52 +03:00
qazal and GitHub
3ac16b3bea
viz: add wmma row, update exec duration logic ( #15646 )
...
* viz: split wmma to its own row, fix duration logic
* regs
* decrease number of loops, add pickle
* assert overlaps
2026-04-08 20:24:23 +09:00
George Hotz and GitHub
35e3983840
Add Q5_0, Q5_1, and bfloat16 GGUF types ( #15644 )
2026-04-08 17:16:19 +08:00
qazal and GitHub
39a029ec55
remove ASM_GEMM context var ( #15645 )
2026-04-08 18:02:40 +09:00
qazal and GitHub
dc6a51e44d
viz: add # of bytes to sdma ( #15639 )
...
* viz: add # of bytes to sdma
* update test_viz
2026-04-08 17:43:37 +09:00
wozeparrot and GitHub
70dbd35023
llama: move custom_kernel into flat_llama ( #15643 )
2026-04-08 00:19:14 -07:00
sirhcm and GitHub
bcf6931a4f
fix: comma 4 does not have pcie ( #15642 )
2026-04-07 23:57:03 -04:00
geohot
f930579b7a
llm: change the default port to 8000 so you can remember it (match vLLM)
2026-04-08 11:25:38 +08:00
b1tg and GitHub
bf3763526a
llm: buffer SSE chunks to fix parse errors from split reads ( #15641 )
2026-04-08 10:26:23 +08:00
qazal and GitHub
a508b8fd2a
viz: delete redundant things ( #15637 )
...
* delete that
* remove
* delete graph config
2026-04-08 07:18:04 +09:00
chenyu and GitHub
9c6e925b56
move lerp to mixin ( #15634 )
...
last function of math function section
2026-04-07 15:13:00 -04:00
qazal and GitHub
890286e8d6
update llama profile.sh ( #15633 )
...
* update llama profile.sh
* BENCHMARK 5
2026-04-08 03:18:45 +09:00
nimlgen and GitHub
b78b384d58
mlx: graph ( #15621 )
...
* Dx
* Dx
* simpler
* mypy
* x
* f
* Dx
* x
* c
* x
2026-04-07 19:43:51 +03:00
qazal and GitHub
d29f0ef721
viz: speed up profiler first render ( #15632 )
...
* viz: speed up profiler first render
* better comment
2026-04-07 23:07:09 +09:00
George Hotz and GitHub
d3de63d998
improvements to apps.llm ( #15631 )
2026-04-07 20:34:05 +08:00
George Hotz and GitHub
2b01ca59dd
USB driver for custom ASM firmware ( #15597 )
...
* USB driver for custom ASM firmware
* timeout
* fix mypy
* pcie mem read
* flip in f/w
* one tx
* litle endian
* autodetect custom
* mock bypass
* lint
* clean
2026-04-07 13:45:41 +08:00
wozeparrot and GitHub
810d7c00cd
llama: unify scripts ( #15628 )
2026-04-06 20:28:08 -07:00
sirhcm and GitHub
19e96497ee
interface in DEV ( #15620 )
2026-04-06 19:59:28 -04:00
qazal and GitHub
8ba58304f7
viz: reenable tests ( #15626 )
2026-04-07 07:52:44 +09:00
chenyu and GitHub
2f7d085450
shared _normalize_indices for getitem ( #15625 )
...
* shared _normalize_indices for getitem
* list
2026-04-06 17:45:36 -04:00
chenyu and GitHub
66ec188d50
more activations to mixin ( #15624 )
2026-04-06 15:41:41 -04:00
chenyu and GitHub
1483f7e71c
support shift by Tensor ( #15623 )
...
* support shift by Tensor
* use mixin
2026-04-06 15:14:57 -04:00
chenyu and GitHub
6e30a5f5ea
update shifts in torch backend ( #15622 )
2026-04-06 14:08:33 -04:00
chenyu and GitHub
a444be172d
lower fuzz_symbolic_symbolic_div timeout ( #15619 )
...
mitigate timeout crash due to high total time
2026-04-06 12:58:29 -04:00
chenyu and GitHub
01b49c8647
support int operand for shifts ( #15618 )
...
matches torch/jax, also symbolic rule to remove mask
2026-04-06 12:32:12 -04:00
nimlgen and GitHub
e2700475cf
mlx: cleaner ( #15617 )
...
* mlx: cleaner
* x
2026-04-06 17:49:47 +03:00
Valtteri Valo and GitHub
86c4431d74
add gpu_family detection to Metal, target MSL 4.0 on macOS 26+ ( #15079 )
...
use supportsFamily API to detect GPU generation instead of parsing
ICB debug description strings. also adds metal4.0 compiler target.
2026-04-06 06:51:38 +08:00
13Perrius and GitHub
ff0c941548
remove redundant iteration and toposort in _deepwalk ( #15532 )
2026-04-06 06:38:45 +08:00
Andrew Cappelli and GitHub
e39cfe685a
validate lr, momentum, weight_decay in optimizers ( #15576 )
2026-04-06 06:37:34 +08:00
nimlgen and GitHub
6a334ceb27
hotfix: fix bert ( #15613 )
2026-04-05 23:41:21 +03:00
nimlgen and GitHub
e3986a6b74
mlx: init runtime ( #15612 )
...
* mlx: init
* x
* swap
2026-04-05 22:52:29 +03:00
nimlgen and GitHub
e0988dbae5
hcq: support non for signal_t and compute_t ( #15611 )
...
* hcq: support non for signal_t and compute_t
* revert
* x
2026-04-05 18:56:47 +03:00
nimlgen and GitHub
5e134aa087
hcq: add write/poll_bit commands ( #15610 )
...
* hcq: add write/poll_bit commands
* x
2026-04-05 18:09:44 +03:00
nimlgen and GitHub
604cdbf2f7
am: large allocs aligned to 2mb to use 2mb pages ( #15609 )
2026-04-05 18:01:31 +03:00
qazal and GitHub
b2d5b29f45
assembly/amd: validate dsl keyword args ( #15608 )
...
* assembly/amd: validate dsl keyword args
* hm, this should use the SOP2 s_waits
* use the sop2 s_waits
2026-04-05 23:00:24 +09:00
qazal and GitHub
056fcd7758
viz: web work from rdna4 gemm ( #15607 )
...
* add rdna4 barrier
* fix realtime
2026-04-05 19:14:16 +09:00
7e54992bf6
fp8 llama ( #15588 )
...
Co-authored-by: qazal <[email protected] >
2026-04-04 18:24:57 -07:00
qazal and GitHub
4d36366717
assembly/amd: match rdna4 hw gidx init in emulator ( #15604 )
...
* simple rdna4 copy kernel with hw fault
* the trivial fix: use ttmp instead of s
* now copy kernel fails in mockgpu
* rm crashing kernel
2026-04-05 02:28:18 +09:00
chenyu and GitHub
2ba5a6ddc8
remove detach in selu ( #15602 )
...
UOp does not have detach. this does not change behavior
2026-04-04 11:04:29 -04:00
qazal and GitHub
f7aed180e4
viz/cli: add Other row in profiler ( #15600 )
2026-04-04 22:40:53 +09:00
sirhcm and GitHub
74ecf6d3e6
opaque structs are also c.Struct ( #15596 )
2026-04-03 19:40:43 -04:00
645d45d968
DEV has arch ( #15577 )
...
Co-authored-by: Comma Device <[email protected] >
2026-04-03 19:17:19 -04:00
nimlgen and GitHub
902edc3781
hcq: hcqbuf in copy ( #15595 )
2026-04-03 22:47:36 +03:00
nimlgen and GitHub
2c4271209e
hcq: peer groups for remote ( #15594 )
...
* hcq: set real peer group
* x
* x
* x
2026-04-03 19:03:07 +03:00
chenyu and GitHub
8fdef2d3e4
mean/std/var to mixin ( #15593 )
2026-04-03 10:42:41 -04:00
qazal and GitHub
9920b42b5e
hotfix: renderer.target.arch in disasm ( #15592 )
2026-04-03 22:23:51 +09:00
nimlgen and GitHub
237084b276
remote: support several hosts ( #15585 )
...
* remote: support several hossts
* f
2026-04-03 11:22:15 +03:00
sirhcm and GitHub
0ed8d9271d
Renderers accept Target or nothing ( #15590 )
2026-04-03 01:09:41 -04:00
wozeparrot and GitHub
3a26920141
feat: framework ci ( #15589 )
2026-04-02 22:03:51 -07:00
sirhcm and GitHub
736fea8412
select_first_inited cleanup and better errors ( #15587 )
2026-04-02 19:27:58 -04:00
sirhcm and GitHub
8c50da800d
[pr] cleanup unused ctx's in codegen ( #15586 )
2026-04-02 19:06:58 -04:00
nimlgen and GitHub
694dc5a717
install script in benchmark ( #15584 )
2026-04-02 18:15:58 +03:00
nimlgen and GitHub
046c3f1240
mlx: add loopback with send/recv ( #15583 )
2026-04-02 18:15:46 +03:00
chenyu and GitHub
c64226e97c
fix CreationMixin doc ( #15582 )
2026-04-02 09:46:28 -04:00
qazal and GitHub
fefb0ebc2a
gemm/asm: fp8 cleanups ( #15580 )
...
* normal gemm here
* s/dtypes.fp8e4m3/FP8_DTYPE
* gemm_bw
* device UOp stays NULL
2026-04-02 19:02:38 +09:00
chenyu and GitHub
61bc91aa8c
Tensor cumalu cleanups ( #15579 )
...
* Tensor cumalu cleanups
* happy
2026-04-02 05:23:22 -04:00
chenyu and GitHub
1aa04eab08
simple CreationMixin ( #15567 )
...
start with full_like, zeros_like, ones_like
2026-04-01 23:00:56 -04:00
wozeparrot and GitHub
5b2a3251c4
mlperf system json for mi350 ( #15575 )
2026-04-01 15:30:33 -07:00
sirhcm and GitHub
6c67bd4c14
better error message when invalid renderer is specified ( #15573 )
2026-04-01 17:12:55 -04:00
sirhcm and GitHub
0d6fbc2355
remove flaky and redundant image test ( #15574 )
2026-04-01 16:33:13 -04:00
sirhcm and GitHub
20f7f0be8e
nir renderers use arch ( #15556 )
...
* nir renderers use arch
* fix
* fix null
2026-04-01 16:32:51 -04:00
nimlgen and GitHub
148ad09559
am: do not use dbell for ih ( #15571 )
2026-04-01 21:34:21 +03:00
nimlgen and GitHub
93a85c7348
am: raise when using more sdma engines ( #15569 )
2026-04-01 21:33:42 +03:00
nimlgen and GitHub
da12c2ea16
better install msg ( #15570 )
2026-04-01 20:09:37 +03:00
b1tg and GitHub
20497f2840
fold BIND to CONST when min==max ( #15568 )
2026-04-01 11:19:04 -04:00
qazal and GitHub
9275f283e5
viz: update flag and display names ( #15566 )
...
* rename to occ, other_simd
* se pkts
* match viz cli tool in names
2026-04-01 21:48:37 +09:00
chenyu and GitHub
f5c0794df2
fix Tensor.const_like ( #15565 )
...
used to always return a 0-d tensor, now returns an expanded Tensor based on self.shape and matches UOp
2026-04-01 08:35:19 -04:00
qazal and GitHub
09f60d80fd
llama: fix FP8=1 FAKEDATA=1 ( #15564 )
2026-04-01 20:53:03 +09:00
nimlgen and GitHub
6d1e992e89
copyout sharded w/o ioring ( #15562 )
...
* copyout sharded w/o ioring
* x
* x
* f
2026-04-01 14:47:29 +03:00
nimlgen and GitHub
150c456977
add OSError to suppress_finalizing ( #15558 )
2026-04-01 12:33:59 +03:00
chenyu and GitHub
fc5b94b902
fix UOp.where(const, const) ( #15560 )
...
* fix UOp.where(const, const)
* fix
2026-04-01 05:28:49 -04:00
chenyu and GitHub
5aeb2273db
add amd_copy_matmul.py to CI ( #15555 )
...
more tests before cleanup
2026-03-31 22:39:18 -04:00
sirhcm and GitHub
034f617971
NVCCRenderer is separate from CUDARenderer ( #15554 )
2026-03-31 21:26:13 -04:00
wozeparrot and GitHub
8b5b9a0e90
llama: run_and_time ( #15533 )
2026-03-31 15:46:16 -07:00
sirhcm and GitHub
acf239e4d2
specify renderer in DEV, <dev>_<ren>=1 is deprecated ( #15551 )
2026-03-31 18:35:14 -04:00
nimlgen and GitHub
5181c8e23a
llm: fix nan in kvcache ( #15552 )
2026-04-01 00:38:45 +03:00
nimlgen and GitHub
3af25ccdb4
docs: minor tinygpu changes ( #15550 )
2026-03-31 21:29:15 +03:00
nimlgen and GitHub
477d194630
hipcomgr and tinygpu scripts ( #15549 )
2026-03-31 20:07:52 +03:00
nimlgen and GitHub
83085f103c
tinygpu docs ( #15545 )
...
* tinygpu docs
* x
* x
* fix
2026-03-31 19:49:38 +03:00
nimlgen and GitHub
ca89215a59
nv: use nvcc over nak by default ( #15547 )
2026-03-31 18:54:56 +03:00
qazal and GitHub
a15345a53e
viz/cli: improve --help message ( #15546 )
...
* viz/cli: improve --help message
* not the default
* more work
* -s
* respect colored
2026-03-31 22:31:33 +09:00
nimlgen and GitHub
10d570b3d5
signed tinygpu ( #15541 )
2026-03-31 14:55:09 +03:00
chenyu and GitHub
4ac2552642
improve ReduceMixin.all ( #15544 )
...
use prod instead of min since `mul` lowered to `and` directly
2026-03-31 07:54:27 -04:00
chenyu and GitHub
89ec22131a
tests to show double negation in min is not cancelled ( #15543 )
2026-03-31 06:59:13 -04:00
qazal and GitHub
8feb8edc68
gemm/asm: add fp8 support to cdna asm_gemm ( #15542 )
...
* work
* hmm, mixins
* rhs_transposed
* also fix the dtype
* check for hipcc
* Exception
* select dev
* default
2026-03-31 19:32:54 +09:00
chenyu and GitHub
2939ae8b22
more mixin ( #15540 )
...
isclose is elementwise, min, any, all to OpMixin
2026-03-31 05:46:55 -04:00
chenyu and GitHub
e69f5f9f69
more movement methods to mixin ( #15536 )
...
* more movement methods to mixin
* cleanups
2026-03-31 05:16:47 -04:00
nimlgen and GitHub
ceb63c8c2f
new bundle id ( #15307 )
...
* new bundle id
* new profiles
2026-03-31 12:16:03 +03:00
qazal and GitHub
467c0af8aa
viz: skip flaky sever tests ( #15538 )
2026-03-31 17:20:30 +09:00
qazal and GitHub
f88e255cea
gemm/asm: split and parameterize dtype in llama gemm tests ( #15408 )
...
* gemm/asm: more tests for emulator, parameterize llama gemm tests
* bf16 atol
2026-03-31 17:12:44 +09:00
b1tg and GitHub
a63392a565
llm: pairwise ranking topk for MoE expert selection ( #15499 )
2026-03-31 12:46:39 +08:00
wozeparrot and GitHub
79cccf3003
write sz output to file ( #15534 )
2026-03-30 20:16:17 -07:00
sirhcm and GitHub
6fb038d109
replace CompilerSet with list ( #15530 )
...
* replace CompilerSet with list
* oops
* default Renderer list
2026-03-30 23:07:52 -04:00
qazal and GitHub
bc866a93f0
viz: rename exec to sqtt ( #15527 )
...
* viz: rename exec to sqtt
* more
2026-03-31 08:06:51 +09:00
sirhcm and GitHub
adbfd82d1d
DEV is ContextVar, setting Device.DEFAULT is deprecated ( #15508 )
2026-03-30 17:10:49 -04:00
nimlgen and GitHub
9583489068
add mlx driver to extra ( #15526 )
...
* mlx driver
* x
* simpler
2026-03-30 20:28:49 +03:00
qazal and GitHub
ad6347f6d8
sqtt: allow mapping sopk to IMMEDIATE packets ( #15525 )
...
* work
* with s_waitcnt
* with the sopp variants, increase threads
* remove that
* sdst=NULL produces IMMEDIATE, otherwise is SALU
2026-03-30 23:12:17 +09:00
chenyu and GitHub
301b2cea57
move matmul to mixin ( #15524 )
2026-03-30 07:39:09 -04:00
chenyu and GitHub
f0eaac4235
reduce mixin ( #15523 )
2026-03-30 05:23:58 -04:00
chenyu and GitHub
f485d0b664
UOp.sum -> usum, prod -> uprod [pr] ( #15522 )
...
rename to prep reduce mixin
2026-03-29 04:51:55 -04:00
qazal and GitHub
36a925e2a2
viz: color wmma, one color map for cli and web ( #15519 )
...
* viz: color wmma, one color map for cli and web
* op_type
* like uops
* mypy cli
2026-03-29 04:53:01 +09:00
wozeparrot and GitHub
0c3e438229
llama: mllog ( #15502 )
2026-03-28 11:18:25 -07:00
nimlgen and GitHub
7e57e101d5
better oor message in profiles ( #15516 )
...
* better oor message
* x
2026-03-28 20:25:07 +03:00
qazal and GitHub
266fb07721
viz: show exec duration ( #15484 )
...
* duration
* handwritten tests
* rdna3 pickle
* rdna4 pickle
* asserts
* rm that
* wmma work
* r4
* this shows the overlap well
* ohh okay it goes back
* are ds_load and ds_store different queues on RDNA4?
* print msg, v_mul_lo_u32 is 4 cycles?
* discover
* wmma something
* wmma comment
* less
* less
* better comments
* work
* inst st
* delay column
* better cli
* emit_alt
* update test_handwritten
* work
2026-03-28 22:48:59 +09:00
chenyu and GitHub
fe705def0d
move more broadcast method to mixin [pr] ( #15513 )
...
* move more broadcast method to mixin [pr]
all but div, mod, and where
* xor -1
2026-03-28 01:48:08 -04:00
chenyu and GitHub
c0753ab62f
XOR simplifcation rules ( #15512 )
...
x^-1 has good vmin/vmax, and x^y^y is x
2026-03-27 23:23:27 -04:00
qazal and GitHub
ccaa6bfc19
viz/cli cleanups ( #15511 )
...
* one less function
* work
* layout
* better handling of rewrites
* mypy passes
2026-03-28 08:50:38 +09:00
qazal and GitHub
dcc2a5d23b
viz/cli: simplify to --source and --item flags ( #15510 )
...
* viz/cli: simplify to --source and --item flags
* update viz cli test
2026-03-28 04:46:39 +09:00
nimlgen and GitHub
0d6fc0f571
jit: graphing in uops ( #15489 )
...
* jit: graphing as rewrite rule
* f
* +metal,cuda
* x
* cl
* x
* x
* simpler
* f
* m
* x
* revert?
* revert2
* back
* back
* t
* x
* m
* x
* c
* x
* l
* x
* comment
* smaller
* rv
* x
* x
2026-03-27 19:09:02 +03:00
chenyu and GitHub
30ebbe7f17
few more fold valid tests ( #15509 )
...
from remove CORRECT_DIVMOD_FOLDING attempt
2026-03-27 10:38:42 -04:00
sirhcm and GitHub
9e0cc5c6ae
create image buffers in late codegen ( #15493 )
2026-03-27 04:50:53 -04:00
chenyu and GitHub
1198d6e908
move pow to mixin ( #15507 )
2026-03-27 03:16:40 -04:00
chenyu and GitHub
323fcefd7d
Revert "DEV is a ContextVar ( #15505 )" ( #15506 )
...
This reverts commit fdb30cba96 .
2026-03-27 02:22:40 -04:00
sirhcm and GitHub
fdb30cba96
DEV is a ContextVar ( #15505 )
2026-03-27 00:57:09 -04:00
wozeparrot and GitHub
a65e958be9
llama: new apply_grad ( #15503 )
2026-03-26 19:39:25 -07:00
sirhcm and GitHub
67a50fb738
move where on load with casts ( #15492 )
2026-03-26 22:11:27 -04:00
qazal and GitHub
586c49642f
viz/cli: test in CI ( #15501 )
...
* viz cli work
* baseline test
* make cli test work without subprocess
* more checks
* check itrace
* s/return/return None
* change
* minimal
* colored
2026-03-27 06:47:15 +09:00
qazal and GitHub
3f9f0fa846
viz: yield sqtt alt events ( #15500 )
...
* yield other
* less
* work
* less
2026-03-27 04:43:41 +09:00
qazal and GitHub
237c25031f
sqtt: construct OTHER_SIMD op types with for loop ( #15495 )
...
* other-lds from amd_copy_matmul
* more other
* other simd work
2026-03-26 23:07:18 +09:00
nimlgen and GitHub
7193f90746
test view input in jit ( #15497 )
...
* will anything fail?
* add test
2026-03-26 16:59:47 +03:00
nimlgen and GitHub
de24b3fe37
jit: pass init params straight to base ( #15496 )
...
* jit: pass init params straight to base
* linter
2026-03-26 16:59:10 +03:00
qazal and GitHub
ec5b7a249e
viz: refactor sqtt timeline builder ( #15494 )
...
* viz: refactor sqtt timeline builder
* barrier maps to waves
* clean up cli
2026-03-26 21:16:15 +09:00
sirhcm and GitHub
313937ad6d
fix IMAGE TestEnd2End.test_linear_mnist ( #15488 )
2026-03-26 04:12:47 -04:00
sirhcm and GitHub
bc180a963c
deprecate <dev>=1 in favor of DEV=<dev> ( #15467 )
...
* start work on target
* add test
* update actions to use DEV
* update docs
* update readmes
* tests need that too
* update example
* update tests (comments)
* fix that test
* ruff
* mypy
* oops
* remove getenvs
* don't add Target yet
* and the test
* lint
* and docs
* more stuff
* assert
* few more fixes
* test assert
2026-03-26 03:48:03 -04:00
chenyu and GitHub
8426f820a1
Tensor.sub to mixin ( #15486 )
...
also _broadcasted skipped broadcasting shape if it does not have shape
2026-03-25 23:20:56 -04:00
wozeparrot and GitHub
1ca178f379
llama: stochastic rounding ( #15456 )
2026-03-25 18:16:31 -07:00
chenyu and GitHub
7c8f992894
move EXPAND dtype cast back to gradient.py ( #15481 )
...
only a concern for gradient, not mixin
2026-03-25 19:25:26 -04:00
nimlgen and GitHub
9d2d0774b4
remote: disk copies ( #15482 )
...
* remote: disk copies
* lineter
* r
* nv
* x
2026-03-25 22:14:25 +03:00
qazal and GitHub
7c2c8d3905
viz: small ux improvements ( #15483 )
...
* test
* better
* work
2026-03-26 03:18:25 +09:00
qazal and GitHub
737d5f67f9
viz: compute canvas dims for auto zoom ( #15474 )
2026-03-26 00:05:23 +09:00
qazal and GitHub
60bd546593
sqtt: add cycle count to rdna3 enums ( #15473 )
...
* update rdna3 sqtt enums to include cycle_count
* dispatch_to_exec
2026-03-25 23:19:54 +09:00
chenyu and GitHub
142bf11926
logical_not to mixin [pr] ( #15472 )
...
also UPat.cast skips same dtype
2026-03-25 09:16:45 -04:00
George Hotz and GitHub
25ff7146f2
add a status line to REMOTE with DEBUG=1 ( #15471 )
...
* python speedups of hot paths
* add a status line to REMOTE with DEBUG=1
* pc
* t
2026-03-25 20:54:56 +08:00
qazal and GitHub
c973b508b8
viz/cli: pass ctrlc ( #15470 )
2026-03-25 21:13:28 +09:00
George Hotz and GitHub
c1a7d90ccc
python speedups of hot paths ( #15469 )
2026-03-25 20:02:42 +08:00
George Hotz and GitHub
ae7090b13b
print function timing with DEBUG=2 ( #15468 )
...
* add DEBUG=2 function timing
* remove those functions, they aren't useful
* fix spec
2026-03-25 19:07:32 +08:00
sirhcm and GitHub
e7f389efda
fix height=1 images on macos ( #15460 )
2026-03-25 05:59:56 -04:00
geohot
789628df2e
hotfix: add USE_BOT flag to ASM24 USB
2026-03-25 15:00:08 +08:00
George Hotz and GitHub
cd1a276f47
llm: support gguf path or url ( #15464 )
...
* llm: support gguf path or url
* one line
2026-03-25 14:43:19 +08:00
chenyu and GitHub
713b322e70
add weakint to promo_lattice ( #15463 )
...
sits between bool and smallest int
2026-03-25 00:27:34 -04:00
chenyu and GitHub
02878c5a2f
move _broadcasted to OpMixin ( #15461 )
...
it needs both ElementwiseMixin and MovementMixin
2026-03-24 23:56:01 -04:00
chenyu and GitHub
519ba22470
more Tensor._broadcasted cleanup ( #15459 )
...
prep moving to mixin
2026-03-24 22:55:45 -04:00
George Hotz and GitHub
fe2690399b
llm: support assistant prefill + refactor to TransformerConfig ( #15457 )
...
* llm: support assistant prefill
* refactor to ModelConfig
* TransformerConfig
* more
2026-03-25 10:50:48 +08:00
sirhcm and GitHub
fd92aec094
cleanup unused image pitch code ( #15458 )
2026-03-24 22:47:16 -04:00
chenyu and GitHub
f6ed4da268
Tensor.ufix ( #15452 )
...
* Tensor.ufix
prep moving _broadcasted to mixin
* remove backward_cast
2026-03-24 22:34:43 -04:00
qazal and GitHub
1b3d00d6ac
viz/cli: remove --offset and --limit flags ( #15439 )
...
* work
* also no more no-color
* reorder
* update llama
* sqtt readme
* itertools
* rm that
* signals back
2026-03-25 09:52:27 +09:00
wozeparrot and GitHub
da2031266a
llama: correct 8b init ( #15397 )
2026-03-24 13:41:41 -07:00
qazal and GitHub
652bab8aad
viz: support nested track_rewrites ( #15454 )
...
* simple test
* stack active groups
2026-03-25 05:01:30 +09:00
qazal and GitHub
41eb2cc41b
viz: preserve zoom between re renders ( #15451 )
2026-03-25 03:11:10 +09:00
84049fdc07
Upgrade GitHub Actions to latest versions ( #15446 )
...
Signed-off-by: Salman Muin Kayser Chishti <[email protected] >
Co-authored-by: chenyu <[email protected] >
2026-03-24 10:28:49 -04:00
9567075e20
Upgrade GitHub Actions for Node 24 compatibility ( #15445 )
...
Signed-off-by: Salman Muin Kayser Chishti <[email protected] >
Co-authored-by: chenyu <[email protected] >
2026-03-24 10:28:19 -04:00
chenyu and GitHub
b7960841af
support shape broadcast in UOp.alu ( #15442 )
...
i think it can integrate tighter, but now Tensor also does ufix from UOp and implicit dtype upcast
2026-03-24 10:14:57 -04:00
George Hotz and GitHub
a33ac869aa
llm server: temperature + test client ( #15444 )
...
* improvements to the llm server
* eval script
* eval llm
* better eval gets 58.71
* cleanups
* add temperature, but multinomial is absurdly slow
* claude is so smart
* lint
* remove slop
* no more stop
2026-03-24 21:07:15 +08:00
nimlgen and GitHub
9db5d677c7
jit in viz ( #15447 )
2026-03-24 18:23:53 +08:00
sirhcm and GitHub
2e4fbbcc9c
ir3: fix texture mapping and benchmark ( #15443 )
2026-03-24 04:52:54 -04:00
sirhcm and GitHub
d5320a9ddf
QCOM cleanups ( #15435 )
2026-03-23 22:18:38 -04:00
George Hotz and GitHub
85dee83f5d
amd flash attention cleanups + emulator fixes ( #15431 )
...
* amd flash attention cleanups
* simpler
* params
* fix emulator bugs
* fix idiv bug
* remove that test
* more emu fixes
2026-03-24 10:10:46 +08:00
chenyu and GitHub
018a9e2d3c
remove match_dtype arg in Tensor._broadcasted ( #15440 )
...
reworked Tensor.where to not need it, also updated dtypes.from_py to use isinstance because ConstFloat issues
2026-03-23 22:10:39 -04:00
qazal and GitHub
a590eded87
sqtt: rdna4 decoder work ( #15434 )
...
* sqtt: rdna4 decoder work
* diff cleanup
* more diff
* test
* work
* works
* TS_DELTA_SHORT
2026-03-24 03:49:32 +09:00
qazal and GitHub
109472c37e
sqtt: new s_barrier pickles, handle rdna4 barriers in emulator ( #15437 )
2026-03-24 03:25:28 +09:00
nimlgen and GitHub
fa4cdb422e
memplan on linears ( #15422 )
...
* memplan
* test
* x
* arenas
* correct
* set any size
* ugh
* make hevc happy
* x
* x
* held
* rm old
* del
* x
* fu
* f
* cl
* cl
* ok
2026-03-23 19:50:16 +08:00
nimlgen and GitHub
2da008ae3b
jit: rm replan ( #15433 )
2026-03-23 19:31:51 +08:00
qazal and GitHub
c4c53418f8
sqtt: comment out flaky rocprof timestamp assert ( #15432 )
...
* comment out rocprof assert, add new assert
* better than > 0 assert
* string
2026-03-23 19:24:04 +09:00
chenyu and GitHub
66a86f88a0
simpler Tensor._broadcasted inferred dtype ( #15430 )
2026-03-23 05:20:11 -04:00
c89576921d
Updated the APIs of mnist_gan ( #15429 )
...
Co-authored-by: [email protected] <Hung Pham>
2026-03-23 17:04:00 +08:00
c62dea6881
ai slop flash attention (it works) ( #15401 )
...
* ai slop flash attention (it works)
* speed up, 2 TFLOPS + 7 GB/s
* simpler
* simpler
* optimize
* faster
* warp shuffle
* sqtt: link dispatch to exec (#15396 )
* sqtt packet linking infra
python
* javascript
* ~doubly linked list
* ui works
* work
* exec can also highlight the pc, coloring work
* more work
* rm sqtt/model.py, doesn't need to be upstreamed
* viz: no context enters in cli, update llama profile (#15404 )
* removed unused named arg in rules [pr] (#15414 )
* viz: sqtt printer in viz/cli.py (#15411 )
* work
* sqtt timeline in CLI
* format all printers nicely
* s/Showed/Printed
* ansistrip
* sys.exit
* keep colors in list
* work from amd_copy_matmul
* has_more always gets returned
* linter
* don't print colors
* more colors
* wow this is so deep
* work
* minor details
* selected
* improve progress bar
* remove it
* 22, global_load_vaddr is so long
* remove *0 hack in sign, gradient materializes zeros for unconnected nodes (#15416 )
Amp-Thread-ID: https://ampcode.com/threads/T-019d1612-6322-706b-a94d-a812400a55cb
Co-authored-by: Amp <[email protected] >
* works
* cnt=20
* revert that
* uop slice tests
* simpler
---------
Co-authored-by: qazal <[email protected] >
Co-authored-by: chenyu <[email protected] >
Co-authored-by: gg <[email protected] >
Co-authored-by: Amp <[email protected] >
2026-03-23 16:15:10 +08:00
qazal and GitHub
1568a5ed07
viz: show dispatch to exec delay in sidebar ( #15428 )
2026-03-23 16:59:59 +09:00
sirhcm and GitHub
ddaeebb500
nir: add shift support ( #15426 )
2026-03-23 03:37:44 -04:00
nimlgen and GitHub
c74fa9bbe1
fix jitbeam not triggered ( #15424 )
...
* um
* beam
* x
* f
2026-03-23 15:34:59 +08:00
qazal and GitHub
fd3559103b
viz/cli: better error message for empty itrace ( #15425 )
2026-03-23 15:50:20 +09:00
nimlgen and GitHub
395aacd77d
jit: prune on linear ( #15423 )
...
* jit: prune on linear
* x
* this is from the future
2026-03-23 14:10:34 +08:00
chenyu and GitHub
248cd9b39f
make Tensor init the only caller of Tensor.from_uop ( #15421 )
...
* make Tensor init the only caller of Tensor.from_uop
prep broadcast cleanups
* type
2026-03-23 00:29:08 -04:00
chenyu and GitHub
67dcc79fdd
push Tensor(symbolic) logic to Tensor.from_uop ( #15420 )
2026-03-22 23:49:35 -04:00
2087df814f
remove *0 hack in sign, gradient materializes zeros for unconnected nodes ( #15416 )
...
Amp-Thread-ID: https://ampcode.com/threads/T-019d1612-6322-706b-a94d-a812400a55cb
Co-authored-by: Amp <[email protected] >
2026-03-22 12:49:26 -04:00
qazal and GitHub
c7b18e6108
viz: sqtt printer in viz/cli.py ( #15411 )
...
* work
* sqtt timeline in CLI
* format all printers nicely
* s/Showed/Printed
* ansistrip
* sys.exit
* keep colors in list
* work from amd_copy_matmul
* has_more always gets returned
* linter
* don't print colors
* more colors
* wow this is so deep
* work
* minor details
* selected
* improve progress bar
* remove it
* 22, global_load_vaddr is so long
2026-03-23 00:17:05 +09:00
chenyu and GitHub
bcc08307da
removed unused named arg in rules [pr] ( #15414 )
2026-03-22 09:25:46 -04:00
qazal and GitHub
2363bceb47
viz: no context enters in cli, update llama profile ( #15404 )
2026-03-22 05:47:02 +09:00
qazal and GitHub
a9ceaf3c5f
sqtt: link dispatch to exec ( #15396 )
...
* sqtt packet linking infra
python
* javascript
* ~doubly linked list
* ui works
* work
* exec can also highlight the pc, coloring work
* more work
* rm sqtt/model.py, doesn't need to be upstreamed
2026-03-21 23:48:58 +09:00
nimlgen and GitHub
9656d97d97
jit: captures linears, not execitems ( #15399 )
...
* jit: captures linears, not execitems
* x
* um
* etsts
* mockcuda
2026-03-21 16:32:12 +08:00
George Hotz and GitHub
c13d9d29ff
add SHAPED_WMMA ( #15400 )
...
* add SHAPED_WMMA
* shaped wmma
* less bad
2026-03-21 16:16:03 +08:00
George Hotz and GitHub
41a9b09683
minimal vec in amd_copy_matmul ( #15398 )
...
* minimal vec in amd_copy_matmul
* unified
* unify
* reshape/permute
* cleanups
* simpler
* move index
* cleanups
* more shared
2026-03-21 14:57:21 +08:00
qazal and GitHub
30b3054fd5
whitespace cleanups in viz and sqtt.py ( #15395 )
2026-03-21 04:46:19 +09:00
qazal and GitHub
71ccc69c52
FP8=1 llama works again, hipcc can run on macos ( #15394 )
...
* hipcc macos shim
* is_dtype_supported opens devices less
2026-03-20 23:43:15 +09:00
sirhcm and GitHub
9470d5193a
deterministic decomp apply order ( #15393 )
2026-03-20 08:10:45 -04:00
sirhcm and GitHub
376585b003
use should_emulate for target dtype in decomp ( #15392 )
2026-03-20 07:44:57 -04:00
sirhcm and GitHub
a12d3951de
fix test_export_model imports ( #15389 )
2026-03-20 07:27:01 -04:00
George Hotz and GitHub
1a2a203f48
add wmma support to amd_copy_matmul ( #15384 )
...
* add wmma support to amd_copy_matmul
* 15 TFLOPS and merged
* unify
* simpler
* simpler
* simpler
* cleanups
* TM/TN is the full regs
* comments
* WAVES_PER_SH + SQTT_EVENT
* Add WAVERDY support
* no split warp
* 3 range
2026-03-20 19:02:19 +08:00
sirhcm and GitHub
1560b534a5
remove IMAGE=2 ( #15312 )
2026-03-20 06:26:52 -04:00
sirhcm and GitHub
30d609432f
ci: only xcode-select for gpuocelot on macos ( #15387 )
2026-03-20 05:58:16 -04:00
chenyu and GitHub
d1b4e37dfa
remove InvalidType branch in Tensor.__init__ ( #15386 )
...
it's handled by `elif isinstance(data, get_args(ConstType)):` already
2026-03-20 05:32:33 -04:00
chenyu and GitHub
c491345766
pass device into Tensor._frompy ( #15385 )
...
* pass device into Tensor._frompy
with this, canonicalize_device is the only usage of Device in tensor.py
* export_model.py
2026-03-20 05:09:01 -04:00
George Hotz and GitHub
3b75d8a7a2
fix double after bug in rangeify ( #15381 )
2026-03-20 14:53:46 +08:00
sirhcm and GitHub
0c89340a1e
automatically emulate unsupported (tiny) floats [skip_process_replay] ( #15366 )
2026-03-20 02:31:44 -04:00
George Hotz and GitHub
78ad089817
make precompile the default for llm ( #15376 )
...
* make precompile the default for llm
* works
* empty is okay for kvcache
* fix cache misses
* more tests
2026-03-20 14:08:55 +08:00
chenyu and GitHub
459ef41ea0
don't exclude weakint in is_dtype_supported [pr] ( #15378 )
2026-03-20 02:08:29 -04:00
qazal and GitHub
cf6a429aaa
mypy emulator pre-commit passing ( #15379 )
...
* fix dict stuff
* add type: ignores
* fix pcode to put uops not ints
2026-03-20 14:44:09 +09:00
wozeparrot and GitHub
87c4ec1724
llama: use flat llama ( #15353 )
2026-03-19 22:12:38 -07:00
chenyu and GitHub
da1700e16b
dtypes.index -> dtypes.weakint ( #15377 )
2026-03-20 01:08:46 -04:00
nimlgen and GitHub
3b04e3ea28
no gmmu mappings with GMMU=0 ( #15369 )
...
* usb
* free
* simple gmmu=0
* x
* x
* vram
* init tests
* ppg
* x
2026-03-20 12:18:34 +08:00
c1183b8872
remove dead code in pyrender ( #15115 )
...
* remove dead code in pyrender
* retrig CI
* retrig CI
---------
Co-authored-by: chenyu <[email protected] >
2026-03-19 23:59:56 -04:00
chenyu and GitHub
bf33c5f796
remove gradient materialize_grads ( #15367 )
...
effectively default to True
and removed *0 hack in Tensor.copysign. now dy/dx=0 if y does not depend on x
remove
2026-03-19 23:36:03 -04:00
chenyu and GitHub
45baf3ff3f
pin ci xcode version ( #15375 )
2026-03-19 23:13:16 -04:00
George Hotz and GitHub
4091d37e8e
flat llama step work ( #15355 )
...
* flat llama step work
* fp8 support
* blacklisted matmul
* chestertons fence
2026-03-20 09:06:12 +08:00
176ad47d7d
cdna4 emulator testing ASM_GEMM in CI ( #15373 )
...
* cdna emulator work
* accvgprs
* cdna passes most tests
* ruff
* add cdna4 to tests
* cdna emu
* crash
* pass?
* work
* gen
* clean up wave_size access
* asm_gemm passes
* remove acc from dsl.py, emulator can keep its different reg file
it's purely an encoding here, the ASM_GEMM already encodes acc srcs with v[], this can
be cleaned up later, but not functionally required for emulator.
* split asm_gemm tests to ones fast on the emulator
* don't do that
* 124 stays null on rdna
* the segfault was because of hw regs, not this
* Revert "clean up wave_size access", it's explicitly tested
This reverts commit 1202ff5787 .
* nullcopyout
---------
Co-authored-by: George Hotz <[email protected] >
Co-authored-by: George Hotz <[email protected] >
2026-03-20 05:51:30 +09:00
nimlgen and GitHub
16daffc042
remote connection timeout ( #15370 )
2026-03-19 19:44:16 +08:00
sirhcm and GitHub
68d7a6b7be
PYTHONREMU: fix vop3p literals ( #15372 )
2026-03-19 07:05:01 -04:00
George Hotz and GitHub
70dad9d642
add PING to RemoteCmd ( #15371 )
...
* add PING to RemoteCmd
* cleanup
2026-03-19 18:57:40 +08:00
nimlgen and GitHub
1c978aeedb
amd: fix aql remote ( #15368 )
2026-03-19 18:11:03 +08:00
qazal and GitHub
337c684047
viz: cycle time relative to kernel start in sidebar ( #15352 )
2026-03-19 18:41:29 +09:00
chenyu and GitHub
d81b03cff4
pad_to to mixin [pr] ( #15365 )
2026-03-19 05:02:01 -04:00
chenyu and GitHub
1abb6297f6
more Tensor(UOp) cleanups ( #15364 )
...
* more Tensor(UOp) cleanups
* function too
2026-03-19 03:34:30 -04:00
nimlgen and GitHub
cf50ca23c3
better oom msg ( #15362 )
...
* better oom msg
* s
2026-03-19 14:07:01 +08:00
nimlgen and GitHub
1a53393512
remote in ci benchmark ( #15344 )
...
* remote in ci benchmark
* move to the end
* move
* ports
* own this
2026-03-19 13:49:09 +08:00
chenyu and GitHub
92dfef8060
Tensor(uop) does not need explicit device ( #15361 )
2026-03-19 00:44:33 -04:00
nimlgen and GitHub
f32c2e43a7
memory: use pfree ( #15360 )
2026-03-19 12:39:23 +08:00
nimlgen and GitHub
86eec01f97
limit gl*lc ( #15359 )
2026-03-19 12:38:55 +08:00
chenyu and GitHub
b39816e998
failed test case for Tensor(np, "bf16") ( #15358 )
2026-03-18 23:40:14 -04:00
chenyu and GitHub
e407ee410c
cosmetic Tensor._do_reduction cleanups ( #15357 )
2026-03-18 22:27:50 -04:00
chenyu and GitHub
6aebf95dac
move neg and invert to mixin ( #15356 )
2026-03-18 22:03:41 -04:00
wozeparrot and GitHub
f6687d1ffc
feat: sd seed0 update ( #15354 )
2026-03-18 18:42:00 -07:00
wozeparrot and GitHub
c45a606750
feat: no if in rand ( #15333 )
2026-03-18 15:09:51 -07:00
qazal and GitHub
23e0431848
viz: switch sqtt sidebar to a simple asm list ( #15350 )
...
* work
* something like this
* Revert "something like this"
This reverts commit 6c45098d2b .
* less
* path includes
* scroll only jumps up and down
* it's only pc and line now
2026-03-19 01:40:25 +09:00
qazal and GitHub
709fc52d7b
viz: fix auto zoom range in sqtt, include endpgm packet ( #15349 )
...
* viz: fix automatic zoom range in sqtt packets
* it's x+width
* include s_endpgm
* endpgm also doesn't have exec
2026-03-18 22:52:32 +09:00
nimlgen and GitHub
d4836ddbb0
canonicalize device from tuple ( #15348 )
...
* will it ifx ci?
* test
* um
2026-03-18 20:35:52 +08:00
George Hotz and GitHub
5524916e39
llama compute gradients explicitly + 243 GB of RAM on MP=8 ( #15343 )
...
* llama compute gradients explicitly
* apply grads
* fix multi issue
* multi BUFFER_VIEW support
* simpler
* skip the flaky test
2026-03-18 19:54:40 +08:00
nimlgen and GitHub
ff004d2114
remote: fix mmio ( #15347 )
2026-03-18 18:20:39 +08:00
nimlgen and GitHub
f853371c83
fix compilers autoselect ( #15346 )
2026-03-18 18:19:53 +08:00
chenyu and GitHub
761ce8c0d3
fix Invalid combine rules ( #15345 )
...
* fix Invalid combine rules
wrong conditions broke setiem into invalids
* fix
2026-03-18 04:58:02 -04:00
nimlgen and GitHub
c0499ca3e8
nv: use mmio iface ( #15342 )
...
* nv: use mmio iface
* nv: use mmio iface
* revert
* f
2026-03-18 16:53:09 +08:00
sirhcm and GitHub
499ad9a356
benchmark openpilot 0.11.0 ( #15341 )
2026-03-18 03:28:43 -04:00
George Hotz and GitHub
6e196195d8
add test for flat llama ( #15327 )
...
* add test for flat llama
* simpler
* back to split w1/w3
* env
* still too much ram
* invalid
2026-03-18 15:16:33 +08:00
chenyu and GitHub
fceb21c315
Tensor(uop) uses device from uop ( #15340 )
2026-03-18 02:56:06 -04:00
George Hotz and GitHub
6109117af1
anonymous buffers are Invalid ( #15336 )
...
* anonymous buffers are Invalid
* unique_const
* work
* remove invalid writes
* test_anonymous_buffers_in_function
2026-03-18 14:52:56 +08:00
chenyu and GitHub
e644e1cb6a
less Tensor(...).uop indirection in Tensor.__init__ ( #15339 )
2026-03-18 02:17:38 -04:00
nimlgen and GitHub
0315faf938
remote bench ( #15331 )
2026-03-18 14:03:51 +08:00
nimlgen and GitHub
d720d50e12
memory: traverse all valid ranges only ( #15338 )
...
* memory: traverse all valid ranges only
* x
2026-03-18 14:03:39 +08:00
chenyu and GitHub
ac7a348d06
dtypes.as_const -> DType.const ( #15337 )
...
does not need to be a staticmethod
2026-03-18 00:48:41 -04:00
sirhcm and GitHub
864d3917d5
add openpilot onnx parser test ( #15334 )
2026-03-18 00:12:02 -04:00
sirhcm and GitHub
0222bfdf69
Revert "don't use intermediate dict in onnx parse" ( #15332 )
2026-03-17 23:46:30 -04:00
chenyu and GitHub
94926d00d8
fix rand > uint32.max ( #15330 )
...
need to keep low and high as 1D tensor.
`PYTHONPATH=. LLAMA3_SIZE=405B python3 examples/mlperf/models/flat_llama.py` works now
2026-03-17 22:00:01 -04:00
wozeparrot and GitHub
b45edeb965
fix: rand supports large tensors ( #15329 )
2026-03-17 15:45:41 -07:00
qazal and GitHub
00817cf65e
viz: all tests can run on the NULL device ( #15328 )
...
* remove that
* move to test_viz
* get_cfg
* do not use os.environ
* hm
* it's always on NULL
* import renderer
* no import *
2026-03-18 04:14:20 +09:00
George Hotz and GitHub
2605840ee2
flat llama ( #15324 )
...
* FlatTransformer
* works
* pass in buffer views
* print stuff
* print
* bugfixes
2026-03-17 19:39:55 +08:00
nimlgen and GitHub
0a641ce17d
system: remote ( #15318 )
...
* system: remote
* listen
* print
* fix
* minor
2026-03-17 19:25:37 +08:00
sirhcm and GitHub
69eefdca20
images with height=1 have less strict width rules ( #15325 )
2026-03-17 07:07:22 -04:00
chenyu and GitHub
14eb8170e4
skip TestRunAsModule if libclang is loaded ( #15323 )
...
reverse rule of TestAutogen skip, otherwise `NULL=1 python -m pytest test/null/test_autogen.py test/null/test_device.py` crashes for me
2026-03-17 06:02:53 -04:00
qazal and GitHub
e7c26b6319
viz: rename to Start Cycle for the sqtt graph ( #15320 )
2026-03-17 18:53:06 +09:00
nimlgen and GitHub
e89a103984
remove dmaref ( #15321 )
...
* remove dmaref
* imports
2026-03-17 17:52:09 +08:00
chenyu and GitHub
3090d4a6e0
disallow reshape from None shape [pr] ( #15322 )
...
test_multigpu_clip_score works without it now
2026-03-17 05:46:53 -04:00
nimlgen and GitHub
a50fdb0528
nvcc macos ( #15308 )
...
* fix nvcc install macos
* um
* arm
* per
* tm
2026-03-17 17:25:33 +08:00
George Hotz and GitHub
9d95321be3
set allow_implicit=False by default ( #15319 )
...
* set allow_implicit=False by default
* modernize beautiful mnist
2026-03-17 17:14:38 +08:00
nimlgen and GitHub
e1c2d09720
system: rebar to remote devs ( #15316 )
2026-03-17 16:09:12 +08:00
chenyu and GitHub
79d2e83853
tighter ALU/variable min==max -> CONST rule [pr] ( #15317 )
...
only check Ops that can be simplified through this rule. halved the time for that rule in `PYTHONPATH=. TRACK_MATCH_STATS=2 python3 -O test/external/external_benchmark_schedule.py`
2026-03-17 03:44:24 -04:00
George Hotz and GitHub
584ec75aa2
precompile backward ( #15311 )
...
* add precompile backward support
* cleanups
* fix
* compact grad
* split v not split
* simpler
* no NOOPT
2026-03-17 15:28:40 +08:00
chenyu and GitHub
6b6d1814ca
update no_vectorized_index [pr] ( #15313 )
...
combine no_vectorized_index and no_vectorized_index_broadcast
2026-03-17 03:05:23 -04:00
b1tg and GitHub
856a839efc
llm: fix qwen3 moe topk renormalization ( #15201 )
2026-03-17 12:57:33 +08:00
chenyu and GitHub
1283b57b4e
update fix_store_after_hazard ( #15309 )
...
actual gate is just not CONTIGUOUS, also don't need to check against full backward_slice
2026-03-16 23:55:59 -04:00
sirhcm and GitHub
575b40b93a
determine image shapes before index devectorization ( #15304 )
2026-03-16 23:16:33 -04:00
George Hotz and GitHub
3ff03be413
call always has tuple ( #15297 )
...
* call always has tuple
* fix pre-commit and simplify
* update
* fix
* move that assert
* tuple
* fix multi
* cleanups
* fix merge
2026-03-17 10:58:46 +08:00
chenyu and GitHub
1b8b151195
simpler Tensor.assign ( #15302 )
2026-03-16 22:37:25 -04:00
wozeparrot and GitHub
674c760974
embedded bwd vocab shard ( #15001 )
...
* fix: remove more multi from call
* feat: embedding bwd vocab sharding
* clean: unused import
* clean: don't actually need this pattern
2026-03-16 19:37:16 -07:00
sirhcm and GitHub
62bfd48d95
smarter padding in image_conv2d ( #15289 )
2026-03-16 22:17:48 -04:00
chenyu and GitHub
e1fab4d2a9
UOp.store is always void [pr] ( #15301 )
2026-03-16 21:58:05 -04:00
chenyu and GitHub
02afb45f29
remove UOp.assign [pr] ( #15300 )
...
* remove UOp.assign [pr]
it's all store and after, UOp is immutable
* fix test
2026-03-16 21:45:41 -04:00
qazal and GitHub
33bd33e783
sqtt: add CDNA ops enum, show in viz ( #15140 )
2026-03-17 09:38:42 +09:00
chenyu and GitHub
3e2b7803e6
view assign replaces at buffer identity ( #15298 )
...
matches what functions capture
2026-03-16 19:58:38 -04:00
qazal and GitHub
346596cdce
viz: nanoseconds time axis in sqtt ( #15299 )
...
* ui
* secondaryTick is optional
* shader markers data
* instSt infra
* path forward
* details
2026-03-17 07:20:18 +09:00
nimlgen and GitHub
1bc4cb254c
signed tinygpu as default ( #15296 )
...
* signed tinygpu as default
* f
* no sip
2026-03-16 19:29:41 +08:00
sirhcm and GitHub
0de519c7c2
[pr] fewer simplify calls in image_fixup ( #15283 )
2026-03-16 06:57:52 -04:00
nimlgen and GitHub
27e29127b5
system: remote prereqs ( #15290 )
...
* x
* new format for apl
* this
* typing
* rpc
* tuple
* linter+new tinygpu
2026-03-16 18:45:41 +08:00
chenyu and GitHub
837b06c609
style cleanups in allocations.py [pr] ( #15295 )
2026-03-16 05:45:24 -04:00
George Hotz and GitHub
476276f4b4
support grads on tuples ( #15287 )
...
* support grads on tuples
* simpler
* grad_fxn works
* cleanups
* unused
2026-03-16 17:39:34 +08:00
chenyu and GitHub
20799df10b
remove Ops.ASSIGN [pr] ( #15294 )
...
goodbye
2026-03-16 05:22:21 -04:00
chenyu and GitHub
b3378e7022
UOp.assign is store+after [pr] ( #15292 )
2026-03-16 04:51:50 -04:00
George Hotz and GitHub
2e1c81c23f
allow_implicit to disable implicit params ( #15291 )
...
* allow_implicit to disable implicit params
* get both Tensor and UOp
* no implicits in llm
2026-03-16 16:40:14 +08:00
chenyu and GitHub
a0d1444790
Tensor.assign is store+after [pr] ( #15288 )
...
* Tensor.assign is store+after [pr]
* put that back
2026-03-16 04:04:55 -04:00
George Hotz and GitHub
08662bc4ab
add TUPLE/GETTUPLE, simple tests pass ( #15286 )
...
* simple tuple stuff passes
* resolved
2026-03-16 15:06:02 +08:00
nimlgen and GitHub
e7705fe311
system: pcidev doesn't care about bars ( #15284 )
2026-03-16 14:45:43 +08:00
nimlgen and GitHub
ff0bcc8de0
system: iface p1 changes ( #15278 )
2026-03-16 10:48:25 +08:00
qazal and GitHub
4445f50356
viz: variable duration rdna barriers ( #15277 )
...
* viz: variable length rdna barriers
* work
* tiny changes
* simple wave simd test
* small wave sync test
* good multi barrier bug find
* simple fix
* wave_sync asserts
* rdna4 work
* more rdna4
* find more bugs in my model
* it's so much simpler
* wave_sync tests duration
* r4
* should just call this rdna4
2026-03-16 06:06:19 +09:00
qazal and GitHub
5cd1daa3bc
cdna asm_gemm in one file, remove old rdna3 asm ( #15281 )
2026-03-16 04:32:30 +09:00
chenyu and GitHub
cd14e8e64b
allocations contiguous is store+after ( #15280 )
2026-03-15 11:58:40 -04:00
qazal and GitHub
7b6211fdd7
sqtt: remove discover_ops script ( #15279 )
2026-03-15 22:17:06 +09:00
wozeparrot and GitHub
473e5e4368
feat: make USE_ATOMICS embedding bwd faster ( #15151 )
2026-03-14 21:21:10 -07:00
qazal and GitHub
3858bfc83d
sqtt: CDNA inst decodes ( #15274 )
...
* sqtt: CDNA inst decodes
* JUMP packets other way
* cdna insts
* r3
* r4
* lds from simd1 and simd2
2026-03-14 21:03:46 +09:00
sirhcm and GitHub
d753c5d7e5
IMAGE=1 image_conv2d pads for bank conflicts ( #15252 )
2026-03-14 07:59:16 -04:00
sirhcm and GitHub
9047249a7c
m.where(x.pad_to(m.shape), Invalid) ranges shrink ( #15275 )
2026-03-14 07:26:36 -04:00
nimlgen and GitHub
f392c53c66
system: merge remote into pciiface ( #15273 )
...
* system: merge remote into pciiface
* clenaer
* move
* mypy
* fix
2026-03-14 18:44:20 +08:00
chenyu and GitHub
13eec8fbe8
remove unused assign rules [pr] ( #15268 )
2026-03-14 05:37:49 -04:00
sirhcm and GitHub
dabdc986df
shrink guarded ranges, try 2 ( #15272 )
2026-03-14 04:24:05 -04:00
sirhcm and GitHub
7cf4b16c91
Revert "shrink guarded ranges" ( #15271 )
2026-03-14 03:44:38 -04:00
sirhcm and GitHub
d9951e2f8e
shrink guarded ranges ( #15263 )
2026-03-14 03:38:48 -04:00
qazal and GitHub
43ffd66fda
viz: oneline inst list ( #15269 )
...
* viz: oneline inst list
* save 5 chars
* gradual padding
2026-03-14 15:37:18 +09:00
George Hotz and GitHub
86f17468ed
store in spec + USB BOT fix ( #15265 )
...
* move spec to store
* usb bot flag
* Revert "usb bot flag"
This reverts commit 7b8b7824f0 .
* fix assert
2026-03-14 13:25:05 +08:00
George Hotz and GitHub
06d7cddb33
amd_copy_matmul is cleaner ( #15248 )
...
* amd_copy_matmul is cleaner
* it runs
* replicated stuff
* add tid there
* it runs
* cleanup
* x.src[1]
* flatten
* move that
* keep that assert
2026-03-14 12:56:09 +08:00
chenyu and GitHub
b3600e4774
don't emit assign in transform_precompiled_call [pr] ( #15262 )
2026-03-13 22:42:35 -04:00
qazal and GitHub
4d60312f7f
viz: asm python dsl syntax highlighting ( #15259 )
2026-03-14 06:37:43 +09:00
qazal and GitHub
6209ddfc90
viz: improve disasm of s_code_end ( #15258 )
...
* viz: improve amd disasm of s_code_end
* better tests
* order was good
2026-03-14 03:31:14 +09:00
wozeparrot and GitHub
a191ac0566
llama: use mlperf model ( #15257 )
2026-03-13 08:08:32 -07:00
Sieds Lykles and GitHub
4b59083d7c
assign into empty works ( #15256 )
2026-03-13 10:24:29 -04:00
qazal and GitHub
60b1b908c6
sqtt: CDNA layout header packet is the same size ( #15255 )
2026-03-13 22:28:24 +09:00
nimlgen and GitHub
4e21735f31
system: update tinygpu app ( #15247 )
2026-03-13 20:36:57 +08:00
nimlgen and GitHub
1fbe1fef2c
move write_configs to drivers ( #15253 )
2026-03-13 19:02:34 +08:00
chenyu and GitHub
018c01508d
test case for call precompile multi ( #15254 )
2026-03-13 06:28:43 -04:00
nimlgen and GitHub
bc16f80b50
am: remove dma_regions param ( #15251 )
...
* am: remove dma_regions param
* linter
2026-03-13 18:12:48 +08:00
chenyu and GitHub
576e7f985f
remove handle_assign_mops [pr] ( #15249 )
2026-03-13 01:53:21 -04:00
sirhcm and GitHub
c251fc67c5
ci: consider arch in venv and apt caches and go back to 3.12 ( #15250 )
2026-03-13 00:36:49 -04:00
sirhcm and GitHub
d4b947ea9a
ci: explicitly request python 3.12.10 instead of 3.12 ( #15246 )
...
3.12.10 is the most recent 3.12 version that has toolcache builds for linux, macos, and windows
2026-03-12 23:00:46 -04:00
George Hotz and GitHub
a7d2429c21
amd_uop_matmul more cleanups ( #15240 )
2026-03-13 10:24:43 +08:00
qazal and GitHub
d893b14193
sqtt: update cdna packet names ( #15243 )
...
* sqtt: update cdna packet names
* change
* order
2026-03-13 08:49:09 +09:00
wozeparrot and GitHub
749162bd2f
llama memory tweaks ( #15223 )
2026-03-12 12:36:23 -07:00
qazal and GitHub
9a7173b7a0
viz: visualize full range of shader clock frequency, auto zoom to kernel range ( #15225 )
...
* start this
* work
* rm those
* relative to start cycle
* cleanup
* cover the full range of packets
* correct event type
* start the ui change
* fit=true
* better
* always the zoom identity
* diff cleanup
* shader engine itrace can be turned off
2026-03-13 00:07:31 +09:00
chenyu and GitHub
d9c09397c0
Ops.STORE is shapeless [pr] ( #15239 )
2026-03-12 09:05:30 -04:00
nimlgen and GitHub
d746ccb791
system: fix vfio ( #15235 )
2026-03-12 18:31:00 +08:00
nimlgen and GitHub
d104a903f8
system: print output when err ( #15230 )
2026-03-12 18:30:49 +08:00
George Hotz and GitHub
e560a46f59
update amd_uop_matmul ( #15236 )
...
* update amd_uop_matmul
* use custom kernel
* simpler
* ignore
2026-03-12 17:33:12 +08:00
chenyu and GitHub
90b7f4341d
failed two level divmod recombine case ( #15233 )
2026-03-12 04:04:36 -04:00
chenyu and GitHub
8b8d9a443c
remove unused invalid rules [pr] ( #15231 )
2026-03-12 03:10:34 -04:00
George Hotz and GitHub
bdd62fd484
remove unneeded realize map entries ( #15229 )
...
* remove unneeded realize map entries
* not that
2026-03-12 14:23:19 +08:00
chenyu and GitHub
842c978df3
remove staticmethod dtypes.max/min ( #15227 )
...
always use x.dtype.max/min
2026-03-11 23:11:24 -04:00
18dc77ccab
add fp8 fnuz dtypes with PYTHON backend support ( #14945 )
...
* add fp8 fnuz dtypes with PYTHON backend support
* rm emu related change
* clarify fp8 fnuz zero handling
* Revert "rm emu related change"
This reverts commit efa4763c22 .
---------
Co-authored-by: b1tg <[email protected] >
Co-authored-by: chenyu <[email protected] >
2026-03-11 22:30:18 -04:00
George Hotz and GitHub
4f3f55328b
do not patch on invalid tensor tests ( #15226 )
...
* do not patch on invalid tensor tests
* cleanup
2026-03-12 09:35:20 +08:00
wozeparrot and GitHub
4fab320abe
llama: clean ( #15224 )
2026-03-11 13:33:59 -07:00
wozeparrot and GitHub
05d6d9120a
llama offload null ( #15222 )
2026-03-11 10:04:31 -07:00
qazal and GitHub
d3eef70162
viz: render shader clock frequency graph ( #15197 )
2026-03-12 01:32:49 +09:00
chenyu and GitHub
39b0f4bcc1
remove Ops.THREEFRY in remove_bufferize [pr] ( #15220 )
2026-03-11 05:30:33 -04:00
chenyu and GitHub
6489a6f212
Revert "remove mop_cleanup [pr] ( #15217 )" ( #15218 )
...
This reverts commit 6b50df940a .
2026-03-11 04:17:56 -04:00
chenyu and GitHub
6b50df940a
remove mop_cleanup [pr] ( #15217 )
...
no kernel diff, i think this was needed due to force_reshape?
test/external/external_benchmark_schedule.py is about the same speed
2026-03-11 03:54:42 -04:00
sirhcm and GitHub
2fb8a7f60f
fix test_invalid_tensor when before values are nan ( #15215 )
2026-03-10 23:51:19 -04:00
chenyu and GitHub
fce87f19a8
better fold_add_divmod_recombine ( #15214 )
2026-03-10 23:24:22 -04:00
chenyu and GitHub
df8deec949
test for nest_by_factor selection ( #15213 )
2026-03-10 22:41:31 -04:00
chenyu and GitHub
be6b0bce1f
variations of (x%c)+(x//c)*c ( #15212 )
...
put those into one function
2026-03-10 22:41:14 -04:00
qazal and GitHub
a408d90f4f
viz: always detect sqtt packet overlaps, add timeline tests ( #15211 )
...
* test
* work
* it's called CALL, better assert
* qol
* row_ends
2026-03-11 05:32:38 +09:00
nimlgen and GitHub
d9c7290eb0
nv: nvdec as NVDEC:0 device ( #15209 )
2026-03-10 14:44:50 +03:00
sirhcm and GitHub
25d86ec9e1
start using Invalid in image_conv2d ( #15208 )
2026-03-10 07:11:06 -04:00
chenyu and GitHub
ecbddfcffe
clean up gcd_with_remainder [pr] ( #15207 )
...
this can operate with int gcd directly and not through UOp
2026-03-10 06:13:20 -04:00
chenyu and GitHub
bb7888b281
cleanup (x%(k*c))//c and (x%(k*c))%c ( #15206 )
...
these two are in the same family
2026-03-10 05:21:32 -04:00
chenyu and GitHub
8389a8d7c5
remove_nested_mod can work with negative ( #15205 )
2026-03-10 03:10:08 -04:00
sirhcm and GitHub
ffaafd391a
Invalid in Tensor ( #15154 )
2026-03-10 02:49:54 -04:00
chenyu and GitHub
68c7c3ca84
divmod test_gcd_with_remainder ( #15204 )
...
test cases for gcd_with_remainder
2026-03-09 23:51:47 -04:00
chenyu and GitHub
a53187eef7
fix TestPartialAssignToSharedBuffer ( #15202 )
...
bufferize_to_store issue with assign
2026-03-09 23:14:23 -04:00
wozeparrot and GitHub
525a178966
llama: jit more ( #15199 )
2026-03-10 11:04:59 +08:00
315ad50a1a
make late allreduce the default ( #15125 )
...
Co-authored-by: wozeparrot <[email protected] >
2026-03-09 17:42:57 -07:00
chenyu and GitHub
6b354b906d
fold_divmod_general cleanups [pr] ( #15196 )
2026-03-09 19:43:16 -04:00
qazal and GitHub
02ceeab3a7
viz: ui cleanups from the sqtt real time branch ( #15195 )
...
* label location for packets
* work
* OTHER_* packets always get filtered out
* less
2026-03-10 05:33:53 +09:00
qazal and GitHub
a615ed8ebe
sqtt: update RDNA timestamp marker fields ( #15194 )
...
* rt:realtime field name, correct RDNA4
* share rdna4 and rdna3
2026-03-10 05:18:47 +09:00
nimlgen and GitHub
8bd6d270c5
rm ops.encdec ( #15193 )
...
* rm ops.encdec
* x
2026-03-09 18:52:48 +03:00
qazal and GitHub
81ab499b4b
viz: small ui code cleanups ( #15192 )
...
* less
* more work
* tabulate returns node like colored
2026-03-09 21:17:33 +09:00
chenyu and GitHub
60215deb60
tiebreak in fold_divmod_congruence ( #15190 )
...
need to try both direction
2026-03-09 03:40:39 -04:00
chenyu and GitHub
a8d8351e5a
match IDIV and MOD in nest_by_factor ( #15188 )
2026-03-09 00:50:38 -04:00
sirhcm and GitHub
7592622562
fix QCOMCLRenderer pickle ( #15189 )
2026-03-09 00:36:16 -04:00
sirhcm and GitHub
2bb0970512
QCOM CL compiler prints LLVMIR when DEBUG>=8 ( #15187 )
2026-03-09 00:15:20 -04:00
chenyu and GitHub
83b80da8f3
even more divmod recombine ( #15163 )
2026-03-08 23:52:26 -04:00
chenyu and GitHub
82f7734501
use backward_slice in reduce_mul_chain [pr] ( #15186 )
2026-03-08 21:44:53 -04:00
qazal and GitHub
25e82a9aca
viz: exclude redundant traceback from SDMA ( #15185 )
...
* viz: exclude redundant traceback from SDMA
* ctx
* cpu_profile
2026-03-09 05:12:14 +09:00
nimlgen and GitHub
6ac99fd4c9
memplanner opt copy bufs ( #15110 )
...
* mtp
* x
* tests
* ss
* simp
* less slop
* x
* cleaner
* rm
* m
* c
* x
* f
2026-03-08 22:28:01 +03:00
nimlgen and GitHub
633264feae
am: flush sdma pipeline ( #15184 )
...
* am: flush sdma pipeline
* f
* f
* fix
2026-03-08 20:27:56 +03:00
891a73befc
llm: fix chunked prefill ( #15182 )
...
* llm: fix chunked prefill
* less lines
---------
Co-authored-by: b1tg <[email protected] >
2026-03-07 22:08:31 +08:00
chenyu and GitHub
5d58b1c396
don't use intermediate dict in onnx parse ( #15181 )
...
also don't parse fields that are never used
2026-03-07 00:08:03 -05:00
nimlgen and GitHub
086081e35b
tbgpu: add stapler to the script ( #15180 )
2026-03-07 00:07:27 +03:00
qazal and GitHub
a03f512147
viz: clean up old / unused paths in sidebar rendering ( #15179 )
...
* src is unused
* less
2026-03-07 05:36:10 +09:00
chenyu and GitHub
605b37c03f
use backward_slice in count_divmod [pr] ( #15178 )
2026-03-06 14:03:53 -05:00
Ananta Ranganathan and GitHub
5bdad8ee41
update mxfp4 tests to use the same patterns as the others ( #15177 )
...
* update mxfp4 tests to use the same patterns as the others
* fix typo in test call not sure how it committed
2026-03-06 13:21:40 -05:00
qazal and GitHub
d85109f9f7
viz: walk PROGRAM UOp back to source and binary only ( #15174 )
...
* work
* simpler
2026-03-07 01:39:07 +09:00
Ananta Ranganathan and GitHub
5c50035e0d
avoid using arithmetic for mxfp4 ( #15172 )
...
* avoid using arithmetic for mxfp4
* update tests to use assert equal
* no longer todo
2026-03-06 11:17:56 -05:00
qazal and GitHub
f064db0ac6
viz: later tooltip rendering ( #15170 )
2026-03-06 23:00:15 +09:00
Roelof van Dijk and GitHub
4ed8bb7445
tie break for divmod ( #15169 )
2026-03-06 08:05:38 -05:00
qazal and GitHub
83f1faa142
sqtt: update CDNA wave packet field, start unskipping tests ( #15168 )
...
* correct field names
* packet types
* packet 5 is regc
* test skips
2026-03-06 21:37:44 +09:00
7810be8d3c
compile QCOM without opening device ( #15165 )
...
Co-authored-by: Comma Device <[email protected] >
2026-03-06 06:24:27 -05:00
George Hotz and GitHub
6fd18ef875
rename CAT to VCAT ( #15167 )
2026-03-06 18:46:28 +08:00
Roelof van Dijk and GitHub
059c6326c0
metal uint32 icb offset overflow ( #15156 )
...
* metal uint32 icb offset overflow
fix: diff
supports_exec_item
GraphRunner.supports_exec_item
tests
fix: can't import on non-metal
stricter
* also test the non-metal buffer case
* imports on non-mac
2026-03-06 00:54:39 +03:00
chenyu and GitHub
da61088ca4
more divmod recombine ( #15162 )
2026-03-05 12:53:22 -05:00
chenyu and GitHub
167a1d56a6
improve divmod folding ( #15148 )
...
canonicalize to div than mod which enables more simplifcation
2026-03-05 10:07:36 -05:00
sirhcm and GitHub
b824579e4d
simplify image_conv2d pitch alignment hacks ( #15158 )
2026-03-05 07:17:34 -05:00
qazal and GitHub
5bf542469d
viz: python traceback for USER device ( #15160 )
...
* start
* ux
* unittests
2026-03-05 20:22:09 +09:00
Roelof van Dijk and GitHub
d65923bda5
tensor.py: add normalize function ( #15159 )
...
* tensor.py: add normalize function
* p==0 should match torch
2026-03-05 18:55:53 +08:00
wozeparrot and GitHub
4544da1c54
llama3 fixes part3 ( #15152 )
2026-03-05 01:17:54 -08:00
Roelof van Dijk and GitHub
fc0534910c
q5k is like q4k ( #15155 )
2026-03-05 17:02:49 +08:00
Ananta Ranganathan and GitHub
8ef656324e
FIXED TEST Q5_K GGUF dequant ( #15147 )
...
* q5_k gguf support as separate pr
* fix the problematic gemv test for q5_k
* add assert to make sure the gemv test cant fail with warning instead of error
2026-03-05 16:32:36 +08:00
George Hotz and GitHub
e97922a57c
LLM speedup with two jits, prefill/rollout ( #15153 )
...
* START_TIME
* print cleanup
* fix tests
2026-03-05 16:21:09 +08:00
wozeparrot and GitHub
be23772d43
llama3 fixes part2 ( #15150 )
2026-03-04 23:43:50 -08:00
wozeparrot and GitHub
0c769289eb
llama3: more scripts ( #15107 )
2026-03-04 22:18:03 -08:00
George Hotz and GitHub
fb43b415f9
fix symbolic shape call + chunked prefill ( #15149 )
...
* fix precompile for symbolic shape
* chunked prefill
* cleaner
* test that
2026-03-05 14:02:26 +08:00
George Hotz and GitHub
8a82b26522
llm: print the prefill cache size ( #15146 )
...
* print the llm prefill cache size
* mock that too
2026-03-05 12:13:28 +08:00
chenyu and GitHub
b5370fd52d
use copy_multi in alu_multi [pr] ( #15143 )
...
* use copy_multi in alu_multi [pr]
* copy to anything
2026-03-04 22:53:00 -05:00
George Hotz and GitHub
72a9ed6e23
fix render depth bug + add warmup to serve + no realize default ( #15144 )
...
* fix render depth bug + add warmup to serve
* make realize not the default
2026-03-05 11:21:16 +08:00
George Hotz and GitHub
ac1847cbf7
fully symbolic llm ( #15097 )
...
* work
* llm symbolic (almost)
* work
* revert that
* llm sym
* works
* cleanups
* cache tokens with the kv cache
* cleanups
* cleanups
2026-03-05 10:22:11 +08:00
qazal and GitHub
33a1970045
sqtt: simplify inst mapping, validate JUMP processing in CI ( #15139 )
...
* jump cleanup
* assert there's a JUMP
* new example for JUMP
* regenerate examples
* rdna4 work
* new packets
* work
* less for branch handling
* less verbose
* fix err message
2026-03-05 09:53:12 +09:00
chenyu and GitHub
04da527a7a
minor div_and_mod_symbolic cleanups ( #15138 )
2026-03-04 19:05:44 -05:00
chenyu and GitHub
106d18b792
use UOp methods in allreduce.py [pr] ( #15137 )
...
except the one line with Ops.BUFFER and Ops.NOOP, not sure what that's for
2026-03-04 17:15:33 -05:00
chenyu and GitHub
34594bcaaf
Revert "bug in metal: offset is stored as uint32, overflow ( #15129 )" ( #15136 )
...
This reverts commit 9c58db16fa .
2026-03-04 16:54:42 -05:00
Roelof van Dijk and GitHub
9c58db16fa
bug in metal: offset is stored as uint32, overflow ( #15129 )
...
* metal uint32 icb offset overflow
* fix: diff
* supports_exec_item
* GraphRunner.supports_exec_item
* tests
* fix: can't import on non-metal
2026-03-04 22:52:12 +03:00
chenyu and GitHub
4cce283790
relax test_tqdm_perf ( #15134 )
2026-03-04 12:58:47 -05:00
chenyu and GitHub
fae400d300
update assign tests to also test the expected behavior ( #15132 )
2026-03-04 11:34:43 -05:00
chenyu and GitHub
1f96cc2b51
update non-contiguous buffer error message [pr] ( #15131 )
...
* update non-contiguous buffer error message [pr]
also cleaned up the tests
* order
2026-03-04 11:13:26 -05:00
nimlgen and GitHub
563d5c3211
more graph tests ( #15130 )
2026-03-04 19:01:12 +03:00
nimlgen and GitHub
cdc48da9cd
hevc: assert and speed ( #15122 )
...
* hevc: assert and speed
* simpler
2026-03-04 19:01:02 +03:00
wozeparrot and GitHub
4e9b85ecfd
fa: pull inputs out of call ( #15127 )
2026-03-04 03:15:49 -08:00
geohot
47faa2d7b4
hotfix: llm kv cache uses clone instead of realize to avoid many realize
2026-03-04 19:07:03 +08:00
8ebd24637b
fix fa forward building with clang 22 ( #15124 )
...
* fix fa forward building with clang 22
* fix: override rocm path
---------
Co-authored-by: Woze Parrot <[email protected] >
2026-03-04 02:32:25 -08:00
sirhcm and GitHub
592f9bf6c6
set OPENPILOT_HACKS=1 to enable replace assign ( #15123 )
2026-03-04 05:26:04 -05:00
wozeparrot and GitHub
df23057984
fa: change bwd grid dim + unshuffle using mops ( #15068 )
2026-03-04 01:23:40 -08:00
sirhcm and GitHub
5623cea7b1
move openpilot contiguous hacks to schedule ( #15120 )
2026-03-04 03:04:06 -05:00
wozeparrot and GitHub
759c7fc81c
failing test for allreduce memory usage ( #15106 )
2026-03-03 23:38:38 -08:00
George Hotz and GitHub
5ecfe549e7
allreduce is a function with LATE_ALLREDUCE=1 ( #15119 )
...
* allreduce as a function
* allreduce function
* support allreduce function
* LATE_ALLREDUCE
2026-03-04 15:17:58 +08:00
sirhcm and GitHub
e7e70a3c95
simplify idx before counting backward_slice ( #15117 )
2026-03-03 23:53:50 -05:00