geohot
a8d13380f9
simpler, but not inverse
2026-06-25 10:24:01 -07:00
geohot
afb0463f10
fix bitcast
2026-06-25 10:11:13 -07:00
geohot
947d6a3c69
enforce a cast for bitcast
2026-06-25 10:00:14 -07:00
George Hotz and GitHub
dc57efc3a3
move down dtype decomps (try 2) ( #16746 )
...
* move down dtype decomps (try 2)
* gpt fixes
* fixes
* that did need reindex
* valid.where
* upd to master
* reindex
2026-06-25 09:49:43 -07:00
George Hotz and GitHub
b5e0bca764
move the load/store gate back to gater ( #16747 )
...
* move the load/store gate back to gater
* order
2026-06-25 09:29:32 -07:00
geohot
fa60fa96a6
hotfix: decomp in pyproject
2026-06-25 08:56:34 -07:00
George Hotz and GitHub
e72ecd101f
split decomp into files ( #16745 )
...
* split decomp into files
* that's in op
2026-06-25 08:40:02 -07:00
George Hotz and GitHub
54887cbbdf
move decomp files into codegen ( #16744 )
2026-06-25 08:19:02 -07:00
chenyu and GitHub
96c9a68205
imrpove some type casts ( #16743 )
2026-06-25 10:48:28 -04:00
chenyu and GitHub
db2257ad09
don't run tinyboxbenchmark on fork ( #16741 )
2026-06-25 09:12:56 -04:00
qazal and GitHub
daf8c8f509
viz: simpler test_link_sched_codegen, merge with the other codegen test ( #16739 )
...
* simpler test_link_sched_codegen
* merge test_codegen_tracing in the other test
* include BEAM.value
2026-06-25 15:02:00 +09:00
qazal and GitHub
695ffb3a08
viz: fix rendering custom Ops.PROGRAM source ( #16738 )
...
* failing test
* fix
* simplify test
2026-06-25 14:21:31 +09:00
George Hotz and GitHub
2f91a401a1
move late decomp after new style ( #16734 )
2026-06-24 22:04:59 -07:00
qazal and GitHub
cb9df8bd33
fix profile.sh BENCHMARK=3 exit status ( #16736 )
2026-06-25 13:41:03 +09:00
sirhcm and GitHub
63f0e08593
start benchmarks cleanup ( #16729 )
2026-06-24 23:33:46 -04:00
wozeparrot and GitHub
e0c69d7a12
llama: fused grad quantize ( #16731 )
2026-06-24 23:25:39 -04:00
chenyu and GitHub
65dd099b63
support Invalid in _pad_constant [PR] ( #16733 )
...
and simplified image_conv2d
2026-06-24 21:03:36 -04:00
George Hotz and GitHub
9d5d2253b3
refactor to image_valid_dims ( #16730 )
2026-06-24 16:53:09 -07:00
nimlgen and GitHub
b99b9e1875
do not assert index in mem coalesing ( #16723 )
2026-06-24 14:28:49 +03:00
f38836d14d
cuda: pass kernel dynamic shared memory in the graph runner ( #16699 )
...
The CUDA graph runner hardcoded sharedMemBytes=0 in the kernel node params, so a custom_kernel
using dynamic shared memory (extern __shared__) failed with CUDA error 700 on graph replay
while the eager path worked. Pass runtime.smem (0 for normal kernels, which use static shared).
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected] >
2026-06-24 14:20:10 +03:00
qazal and GitHub
535c806c9f
llama: profile.sh BENCHMARK=3 ( #16722 )
2026-06-24 19:20:51 +09:00
chenyu and GitHub
857a435af2
remove dead added_ox ( #16721 )
2026-06-23 23:59:17 -04:00
chenyu and GitHub
687ade119e
IMAGE hand_coded_optimizations update ( #16720 )
2026-06-23 21:55:28 -04:00
George Hotz and GitHub
0a8e61d0c5
switch to the new memory coaleser [pr] ( #16716 )
...
* switch to the new memory coalese
* move that stuff
* copy in allowed length logic
* mulitple buffers
* new coalese is better
* fine
* earlier
* fixes
* work
* work
* valid
* stack on index const
2026-06-23 18:03:48 -07:00
wozeparrot and GitHub
dfea9e7994
llama: fused silu mul quantize mxfp8 ( #16704 )
2026-06-23 16:59:50 -07:00
chenyu and GitHub
ce87d80911
better _drop_valid_stmts [pr] ( #16719 )
...
also dropped the unused is_increasing
2026-06-23 19:35:01 -04:00
George Hotz and GitHub
5a2b3b7b06
early dtype decomp ( #16718 )
...
* early dtype decomp
* simplify
* cleanup
* that goes there
* doing too much
* stupid symbolic rules
2026-06-23 16:07:20 -07:00
sirhcm and GitHub
116045cc8e
ci: remove tensorflow from testoptim ( #16717 )
2026-06-23 18:11:48 -04:00
nimlgen and GitHub
7c1d0b6d9a
hcq2: use shrink(bitcast) ( #16713 )
...
* hcq2: use shrink(bitcast)
* x
2026-06-23 18:11:39 +03:00
George Hotz and GitHub
c9dc1d63cc
small changes from new codegen ( #16712 )
...
* small changes from new codegen
* shrink/flatten
2026-06-22 17:44:15 -07:00
sirhcm and GitHub
da98fae9e1
ci: try parallelizing tc tests ( #16710 )
2026-06-22 20:43:32 -04:00
chenyu and GitHub
15988b5941
contiguous to mixin and cleanups [PR] ( #16711 )
2026-06-22 20:18:18 -04:00
sirhcm and GitHub
cbfcf36e44
ci: remove generate_dataset and CL misc ( #16709 )
2026-06-22 18:01:07 -04:00
nimlgen and GitHub
f9c8c697d6
hcq2: drop args after inner deps ( #16708 )
2026-06-22 23:26:11 +03:00
chenyu and GitHub
0138480910
dropout and scaled_dot_product_attention to mixin ( #16707 )
2026-06-22 16:17:45 -04:00
chenyu and GitHub
33b635d23a
Tensor.train -> TRAINING [PR] ( #16705 )
...
* Tensor.train -> TRAINING [PR]
* doc
2026-06-22 15:13:22 -04:00
chenyu and GitHub
625d8bbd0d
TRAINING ContextVar ( #16703 )
2026-06-22 13:03:08 -04:00
wozeparrot and GitHub
fe9b19b12d
llama: more mp mem fixes ( #16701 )
...
* llama: more mp mem fixes
* clean: unused
* fix: batch
2026-06-22 10:54:35 -04:00
chenyu and GitHub
267af9c601
full_like to CreationMixin [PR] ( #16702 )
2026-06-22 09:33:23 -04:00
chenyu and GitHub
97da54b9d6
more method to CreationMixin [PR] ( #16698 )
2026-06-22 00:01:22 -04:00
chenyu and GitHub
fd0dc40689
clean up CreationMixin and DTypeMixin [PR] ( #16697 )
2026-06-21 21:13:40 -04:00
chenyu and GitHub
2d8b802958
contiguous in wino conv ( #16696 )
...
also fixed test_counters
2026-06-21 17:11:46 -04:00
chenyu and GitHub
ba1d3baae8
masked_select and nonzero to mixin [PR] ( #16695 )
...
with a .data stub
2026-06-21 15:10:44 -04:00
chenyu and GitHub
d80a41d559
some rand method to RandMixin [PR] ( #16693 )
2026-06-21 12:16:51 -04:00
wozeparrot and GitHub
5164c21b44
gemm: keep shape thru mxfp8 quantize ( #16692 )
2026-06-20 22:28:53 -07:00
chenyu and GitHub
58ff75272e
const_like and invalids to mixin [PR] ( #16690 )
...
* const_like and invalids to mixin [PR]
* empty_like
* einsum
* type
2026-06-21 00:02:29 -04:00
chenyu and GitHub
b50da5c205
move Tensor.__getitem__ to mixin [PR] ( #16689 )
2026-06-20 22:01:45 -04:00
chenyu and GitHub
4618d27129
final const cleanups [PR] ( #16688 )
2026-06-20 21:38:16 -04:00
chenyu and GitHub
9ae0a93d0e
more const cleanups [PR] ( #16682 )
2026-06-20 20:41:43 -04:00
George Hotz and GitHub
30830850a9
small changes from new codegen ( #16681 )
...
* small changes from new codegen
* revert that
2026-06-19 18:29:01 -07:00
chenyu and GitHub
8b07cca9f7
invalid clone try 3+ [PR] ( #16679 )
2026-06-19 20:13:52 -04:00
sirhcm and GitHub
b2199c54a3
ci: update actions/cache/restore to suppress warnings ( #16680 )
2026-06-19 18:27:52 -04:00
sirhcm and GitHub
1822eed8d3
ci: only test models on cpu ( #16678 )
2026-06-19 18:16:59 -04:00
wozeparrot and GitHub
bba611bb59
gemm: fix mxfp8 on more shapes ( #16677 )
2026-06-19 13:28:53 -07:00
chenyu and GitHub
67c3e589a1
invalid clone tests and prereq [PR] ( #16675 )
2026-06-19 13:20:43 -04:00
George Hotz and GitHub
649971f02a
remove DEFINE_LOCAL and DEFINE_REG (gpt) ( #16673 )
...
* remove define_local and define_reg (gpt)
* fix precommit
* cleanups
* regalloc fix
* cleanups 2
2026-06-19 10:07:50 -07:00
George Hotz and GitHub
b05bea81ce
x86 cleanups (fable) [pr] ( #16591 )
...
* x86 cleanups (fable)
* support shrink
* remove ptr dtype
* move that
* is_lane helper
* Revert "is_lane helper"
This reverts commit ea4571254d .
2026-06-19 09:04:51 -07:00
nimlgen and GitHub
97c2e7a3d9
spec: add getaddr ( #16674 )
2026-06-19 15:37:33 +03:00
George Hotz and GitHub
d7b10c69bc
update placeholder to not create DEFINE_LOCAL/DEFINE_REG ( #16671 )
...
* update placeholder to not create DEFINE_LOCAL/DEFINE_REG
* simpler
* define_local
2026-06-18 21:21:06 -07:00
sirhcm and GitHub
091ec8d10d
use tinygrad.llm in benchmarks ( #16670 )
2026-06-19 00:03:57 -04:00
George Hotz and GitHub
925c49ce99
use placeholder in tests ( #16672 )
2026-06-18 20:51:44 -07:00
wozeparrot and GitHub
05249466ed
llama: fused quantize mxfp8 ( #16667 )
2026-06-18 16:02:28 -07:00
George Hotz and GitHub
4a4b6956df
remove DEFINE_VAR from codebase (gpt) ( #16666 )
...
* remove DEFINE_VAR from codebase
* junk
* remove junk
2026-06-18 15:33:50 -07:00
nimlgen and GitHub
eda0a402d1
hcq2: fix multi ( #16661 )
2026-06-18 22:56:49 +03:00
George Hotz and GitHub
5989d0b150
remove DEFINE_VAR try 2 ( #16651 )
...
* remove DEFINE_VAR try 2
* param
* null index
* fix fuzzing
* fixes
* no gather neg params
* param is just Irreducible
* fixes
* skip stack
* need to filter slots there
2026-06-18 12:34:25 -07:00
wozeparrot and GitHub
d37248c3ec
gemm: fix mxfp8 on odd shapes ( #16664 )
2026-06-18 12:03:59 -07:00
chenyu and GitHub
d74f488376
clean up _function.depth properly [PR] ( #16663 )
2026-06-18 14:10:22 -04:00
chenyu and GitHub
d7a1022188
minor function.py cleanups [PR] ( #16662 )
2026-06-18 13:36:48 -04:00
qazal and GitHub
924bece1d5
remove some old scheduler tests ( #16660 )
2026-06-18 22:15:00 +09:00
qazal and GitHub
b753fb5e4c
viz: view source working even if compile failed ( #16657 )
...
* failing test
* hard
* ret_dict
* switch to _data for tests too
* update sqtt
* start work
* Ops.LINEAR looks good
* baseline with depth works
* support depth
* types
* @needs_tracked_pm
* update, marg can error too
* unwrap_or goes to many more places
* move things to soft_err
* soft_err everywhere needed
* diff cleanup
* use list
* rewrite it
* change
* update depth number
* small comment change
2026-06-18 17:34:53 +09:00
qazal and GitHub
31094a794f
viz: data not sent to client side starts with _ ( #16659 )
...
* ret_dict
* switch to _data for tests too
* update sqtt
* rename to filter_keys
* not cfg
2026-06-18 15:25:22 +09:00
qazal and GitHub
1720987dc7
include exception name in Ops.REWRITE_ERROR ( #16658 )
2026-06-18 14:52:48 +09:00
wozeparrot and GitHub
bed0c343a3
faster mxfp8 gemm ( #16656 )
2026-06-17 22:35:36 -07:00
sirhcm and GitHub
e0fe6e542e
ci: fewer pydeps ( #16654 )
2026-06-17 22:52:14 -04:00
chenyu and GitHub
a74b7130b4
Revert "invalid clone try 2 [PR] ( #16648 )" ( #16653 )
...
This reverts commit 1bd4551ee1 .
2026-06-17 22:05:30 -04:00
chenyu and GitHub
df015ad541
remove many type ignores [PR] ( #16652 )
2026-06-17 21:38:45 -04:00
chenyu and GitHub
1bd4551ee1
invalid clone try 2 [PR] ( #16648 )
2026-06-17 19:44:35 -04:00
George Hotz and GitHub
53a1226a49
STACK 0 is dtype void ( #16650 )
...
* STACK 0 is dtype void
* spec for stack
* fix gemm group + END shape
* bump
2026-06-17 16:28:32 -07:00
George Hotz and GitHub
aef85ddc4d
addrspace special/range ( #16647 )
...
* addrspace special/range
* just include indexing
* define var is alu
* bring old ignore indexing back
* mults to fix
* fixes
* ALU
* fixes
2026-06-17 15:57:37 -07:00
chenyu and GitHub
1e08c0a07c
remove NOOP from AFTER with multiple srcs ( #16646 )
2026-06-17 14:35:02 -04:00
chenyu and GitHub
1acc40600d
indexing an after with all fully invalid stores is invalid ( #16643 )
...
* indexing an after with all fully invalid stores is invalid
* typing cast
2026-06-17 11:06:36 -04:00
nimlgen and GitHub
0f0c622086
hcq2: multi folders ( #16642 )
2026-06-17 15:20:25 +03:00
George Hotz and GitHub
be9b570cb2
late numbering of var params ( #16640 )
...
* do_number_param
* fix sort order in x86
* we don't want this
2026-06-17 00:36:08 -07:00
qazal and GitHub
c7055d658f
viz: only store kernel info ( #16641 )
2026-06-17 16:21:57 +09:00
George Hotz and GitHub
d631716858
remove const without STACK ( #16639 )
...
* remove const without STACK
* fix GEP rewrite
* fix null tests
* fix openpilot regression
* it's 10 in CI
2026-06-16 21:25:42 -07:00
wozeparrot and GitHub
36f6d1b064
gemm: fix bf16 atb for mp sharding ( #16637 )
2026-06-16 15:58:47 -07:00
qazal and GitHub
1cb6b88d37
viz: show contents of vconst ( #16636 )
...
* failing test
* render vconst
* simpler test
* reorder
2026-06-17 02:31:03 +09:00
nimlgen and GitHub
5644605d92
hcq2: pack bufs ( #16635 )
...
* hcq2: pack bufs
* x
2026-06-16 18:58:16 +03:00
chenyu and GitHub
d5d59a2be6
remove dead rangeify rules [PR] ( #16634 )
2026-06-16 10:03:08 -04:00
chenyu and GitHub
f0998e9bba
Revert "invalid clone is anonymous buffer" ( #16613 ) ( #16633 )
2026-06-16 08:27:48 -04:00
qazal and GitHub
7d2b0b697d
simple failing test for invalid extra E kernel ( #16632 )
...
* simple failing test for invalid extra E kernel
* 6 kernels
2026-06-16 17:57:44 +09:00
wozeparrot and GitHub
70cac72781
llama: realize weight init ( #16623 )
2026-06-15 23:00:19 -07:00
sirhcm and GitHub
443f976305
fix buffer overrun in dcache_flush ( #16630 )
2026-06-15 23:26:32 -04:00
chenyu and GitHub
aa2bef24a8
no_vectorized_alu in cstyle does nothing now [PR] ( #16631 )
2026-06-15 23:07:20 -04:00
chenyu and GitHub
efd03d7153
invalid clone is anonymous buffer [PR] ( #16613 )
2026-06-15 20:14:26 -04:00
nimlgen and GitHub
4a0488ae97
hcq2: optims ( #16624 )
...
* hcq2: optims
* x
2026-06-15 23:58:28 +03:00
George Hotz and GitHub
41aa2fe119
test_gemm needs .clone() on eye ( #16629 )
2026-06-15 12:48:27 -07:00
qazal and GitHub
10bdb9c9d0
viz: check node exists before anchoring zoom ( #16627 )
2026-06-15 21:03:24 +09:00
qazal and GitHub
f998b9930a
fp8 gemm inv_scale in epilogue ( #16625 )
...
* fuse scale
* remove python inv_scale
* more inv_scale removal
* more cleanups
* cleaner
* diff polish
* work
* rename
* simpler
* simpler
* compute
* c
* Revert "c"
This reverts commit 8941fec7ca .
* Revert "compute"
This reverts commit 9db573a6d3 .
* Revert "simpler"
This reverts commit 910ad33f87 .
* Revert "simpler"
This reverts commit bf75d235a1 .
* s_g
* update types
* less diff noise
* remove
2026-06-15 18:44:41 +09:00
nimlgen and GitHub
4dc51aff6e
hcq2: jit ( #16621 )
...
* hcq2: jit
* x
* x
* minor
2026-06-15 06:35:35 +07:00
chenyu and GitHub
2adedf5ccb
clean up fold_divmod_general [pr] ( #16622 )
...
genralized fold_binary_numerator in fold_divmod_congruence
2026-06-14 17:15:52 -04:00
George Hotz and GitHub
a6d7fb9d4d
only SHRINK for non scalar access ( #16619 )
2026-06-14 10:08:37 -07:00
geohot
b1fb39502d
delete that test
2026-06-14 09:42:58 -07:00
chenyu and GitHub
2e181f4259
simpler cancel_divmod [PR] ( #16616 )
2026-06-14 11:41:31 -04:00
chenyu and GitHub
5d5ead78da
inline unique_const in invalids [PR] ( #16612 )
2026-06-13 10:14:32 -04:00
Sieds Lykles and GitHub
b00dd754a9
Remove if-condition from nested div rule [pr] ( #16611 )
...
* add rules and test
* trigger [pr]
2026-06-13 15:47:21 +02:00
nimlgen and GitHub
5a9227b30a
hcq2: rebind var params ( #16610 )
2026-06-13 14:55:52 +03:00
nimlgen and GitHub
8efc8d064f
unique based on opaque in from_buffer ( #16609 )
2026-06-13 14:31:58 +03:00
nimlgen and GitHub
c43091a464
fix missing cast in cstyle ( #16608 )
...
* fix missing cast in cstyle
* x
* x
2026-06-13 10:04:06 +03:00
qazal and GitHub
2e77bd01db
fp8 gemm cleanup ( #16607 )
2026-06-13 13:17:32 +09:00
sirhcm and GitHub
bcdb988df0
split comma benchmark, dsp on c4 [PR] ( #16598 )
2026-06-12 23:26:05 -04:00
George Hotz and GitHub
6b8fdfe4ca
alu addrspace is where the math happens ( #16606 )
...
* alu addrspace
* fix cstyle/llvm
* on ptx, reg+alu are the same thing
2026-06-12 20:01:28 -07:00
wozeparrot and GitHub
67a4f129c2
llama: fix bf16 gemm oob ( #16603 )
2026-06-12 19:43:05 -07:00
sirhcm and GitHub
8862c7549c
new-style dcache_flush ( #16602 )
2026-06-12 22:25:08 -04:00
chenyu and GitHub
9e72a6b376
more indexing cleanup [PR] ( #16600 )
2026-06-12 21:33:47 -04:00
chenyu and GitHub
aa32d309db
fix rangeify indexing for pad/reduce ( #16599 )
2026-06-12 20:26:15 -04:00
George Hotz and GitHub
96b86aad7b
move new style transform up more ( #16593 )
...
* move new style transform up more
* pm_move_gates_from_index works on new style
2026-06-12 17:20:12 -07:00
chenyu and GitHub
a35964493e
UPat method cleanups [PR] ( #16596 )
2026-06-12 17:22:54 -04:00
chenyu and GitHub
3036b15ed9
remove Tensor.ufix [PR] ( #16594 )
...
* remove Tensor.ufix [PR]
* inline _ufix_keep_dtype
2026-06-12 14:40:28 -04:00
qazal and GitHub
b2e95b2db3
rangeify: no copies for write+read of same slice ( #16585 )
...
* failing test
* cleaner failing tests
* assign and read of same slice shouldn't create copies
* err in the changes
* shrink with no overlapping regions in dest is fine
2026-06-13 02:19:47 +09:00
George Hotz and GitHub
833cb37574
move up new style transform ( #16592 )
...
* simpler names
* move up new style transform
* fix that rule
2026-06-12 10:13:37 -07:00
George Hotz and GitHub
51100d2c5c
new style cleanups ( #16584 )
...
* spec tighten
* revert
* lin fix
* lin fix
* needed for x86
* revert
2026-06-12 08:10:38 -07:00
Philip Sinitsin and GitHub
76c10cd635
jit: don't memplan buffers reachable from live tensors ( #16588 )
...
The memory planner was suballocating BUFFERs created during JIT capture that are still referenced by external lazy tensor graphs, like the .grad tensors assigned by backward(). The replay then only writes the arena slices, so realizing such a tensor after the call reads freshly allocated memory and silently returns zeros. Hold every BUFFER reachable from a live Tensor instead of only the parameters of the return value; true internals are still planned. Fixes #16571 .
2026-06-12 17:51:54 +03:00
nimlgen and GitHub
2bfdf85f87
hcq2: move pre bufferize ( #16589 )
...
* hcq2: move pre bufferize
* x
2026-06-12 16:11:59 +03:00
nimlgen and GitHub
fb74f75485
var params sort after global params ( #16590 )
2026-06-12 14:33:15 +03:00
qazal and GitHub
4d34590b7d
llama: less E kernels ( #16517 )
2026-06-12 19:49:25 +09:00
qazal and GitHub
12f4cf0e49
rename amd/test_custom_kernel.py to test_asm_kernel ( #16586 )
...
* rename amd/test_custom_kernel.py to test_asm_kernel
* update
2026-06-12 16:11:01 +09:00
wozeparrot and GitHub
e770805d21
llama: mxfp8 ( #16574 )
2026-06-11 22:15:24 -07:00
George Hotz and GitHub
b8aec4cce7
port x86 to new_style (fable slop) and now everything is new style ( #16581 )
...
* port x86 to new_style (fable slop)
* don't change ops
* port NIR to new_style (fable)
* lil cleanup
* fix tests, and remove new_style
2026-06-11 21:09:34 -07:00
chenyu and GitHub
762f50bd52
move gradient.py to mixin/ [PR] ( #16583 )
2026-06-11 23:58:21 -04:00
chenyu and GitHub
a2cec397f3
UOp cast and bitcast takes DTypeLike [PR] ( #16582 )
...
* UOp cast and bitcast takes DTypeLike [PR]
match Tensor
* fix type
2026-06-11 22:38:54 -04:00
George Hotz and GitHub
b97e3e01e3
port NIR to new_style (fable) ( #16580 )
...
* port NIR to new_style (fable)
* lil cleanup
2026-06-11 18:47:30 -07:00
sirhcm and GitHub
4d893f626a
move a bunch of test_schedule to null ( #16578 )
2026-06-11 20:26:34 -04:00
George Hotz and GitHub
b57639a6cc
port python to new_style (fable) ( #16579 )
...
* port python to new_style (fable)
* doesn't have to be const in python
2026-06-11 17:26:05 -07:00
George Hotz and GitHub
a04d2fa4eb
port ptx to new_style (fable) ( #16577 )
...
* port ptx to new_style (fable)
* simplify
* simpler
2026-06-11 17:05:03 -07:00
George Hotz and GitHub
587333fddb
replace DEFINE_VAR with PARAM ( #16576 )
...
* replace DEFINE_VAR with PARAM
* cleanups
* cleanups
2026-06-11 15:03:20 -07:00
chenyu and GitHub
5f1e2d3900
PADTO pads Invalids ( #16562 )
2026-06-11 16:54:26 -04:00
George Hotz and GitHub
434a8ffc38
move llvm to new style ( #16573 )
...
* move llvm to new style
* fix wmma
* buffer is early
2026-06-11 12:59:02 -07:00
George Hotz and GitHub
347608a523
put loads back on reg ( #16572 )
...
* put loads back on reg
* fix dsp
2026-06-11 11:24:50 -07:00
nimlgen and GitHub
e5f498de3b
hcq2: debug=2 info ( #16569 )
...
* hcq2: debug=2 info
* t
* x
* hcq2: debug=2 info
* x
2026-06-11 19:52:01 +03:00
qazal and GitHub
a83710396c
support mselect input to CALL, less kernels in allreduce ( #16567 )
...
* support mselect input to CALL, less kernels in allreduce
* resolve mstack
2026-06-11 18:10:47 +09:00
qazal and GitHub
7d4a77dce4
relax comma benchmark timeout ( #16568 )
2026-06-11 18:03:37 +09:00
qazal and GitHub
21f1101691
add allreduce kernel count test ( #16566 )
2026-06-11 15:54:12 +09:00
wozeparrot and GitHub
c38d6a7e3a
mxfp8 part 2 ( #16561 )
2026-06-10 23:36:11 -07:00
sirhcm and GitHub
83971860d8
ci: simplify webgpu install ( #16557 )
2026-06-10 22:57:19 -04:00
sirhcm and GitHub
6e1b61f16f
cleanup some amd deps ( #16563 )
...
don't load hsa runtime, remove ib autogen
2026-06-10 19:01:56 -04:00
George Hotz and GitHub
7e6d617935
addrspace cleanups ( #16565 )
...
* addrspace cleanups
* bumps
* eh, relax a little
2026-06-10 15:57:18 -07:00
nimlgen and GitHub
2c9d2c0d31
jit: memplan before compile ( #16560 )
2026-06-10 15:05:15 +03:00
qazal and GitHub
34481830f1
rangeify: fix cost function for AFTER(out, CALL) ( #16559 )
...
* simple failing test
* fix rangeify cost function
* new ops count
2026-06-10 17:30:50 +09:00
chenyu and GitHub
623b66e0e4
more tensor and mixin cleanups [PR] ( #16558 )
2026-06-10 00:39:33 -04:00
chenyu and GitHub
7366d32247
getitem cleanups [PR] ( #16556 )
2026-06-09 22:48:58 -04:00
George Hotz and GitHub
fd76ac992e
cstyle renderer is new style [pr] ( #16484 )
...
* cstyle new style
* switch cstyle renderer to new style
* fix hip
* fixes
* fix webgpu
* correct webgpu is_packed
* fix dsp
* fixes
* fix Ops.RANGE must be CONST
* old style render access
* this is correct
* fix cstyle to good
* dl/dr
* as array
* fix spec
* remove define_local/define_reg
* buffer in shrink
* fix test_tiny
* all tests fix
* param args aren't realized
* wgsl fix
* work
* new gate
* fix opencl qcom
* process replay
* sort order
* fix render index
2026-06-09 18:36:01 -07:00
sirhcm and GitHub
97d483350c
ci: download prebuilt ocelot ( #16554 )
2026-06-09 19:51:33 -04:00
sirhcm and GitHub
f9d88d3c3a
fix race in test_quantize_onnx ( #16555 )
2026-06-09 18:39:48 -04:00
wozeparrot and GitHub
2bdc360606
gemm: mxfp8 hipkittens gemm ( #16541 )
...
* gemm: mxfp8 hipkittens gemm
* feat: update hipkittens
* feat: kernel signature
* clean: just kernel
* feat: from tinygrad
* feat: test
* fix: add back utils
* clean: no diff
* clean: no diff
2026-06-09 15:20:05 -07:00
chenyu and GitHub
12addee14f
tesnor and mixin cleanups [PR] ( #16553 )
2026-06-09 15:33:13 -04:00
nimlgen and GitHub
2ab2d51099
hcq2: fix repeated calls ( #16552 )
2026-06-09 19:11:42 +03:00
chenyu and GitHub
3f053a3370
move functional part of rand to RandMixin ( #16551 )
2026-06-09 09:40:48 -04:00
nimlgen and GitHub
fa31c744b9
hcq2: cleaner ( #16550 )
2026-06-09 16:33:05 +03:00
qazal and GitHub
598cc13ad2
more readable null graph profile in VIZ ( #16548 )
...
* more readable null graph profile in VIZ
* change
* fix flaky test
2026-06-09 18:35:05 +09:00
qazal and GitHub
d18ad49f20
fix flaky test_disktensor ( #16549 )
2026-06-09 18:23:22 +09:00
qazal and GitHub
fa400f9790
less E kernels in all2all ( #16546 )
2026-06-09 13:51:57 +09:00
qazal and GitHub
b8931440ae
add all2all schedule test ( #16545 )
2026-06-09 12:41:35 +09:00
wozeparrot and GitHub
5ef30005fa
update hipkittens ( #16544 )
2026-06-08 18:53:25 -07:00
sirhcm and GitHub
4e2e2e9956
ocelot: use c.DLL ( #16540 )
2026-06-08 21:27:28 -04:00
chenyu and GitHub
11fee53527
RandMixin [PR] ( #16543 )
2026-06-08 19:11:28 -04:00
chenyu and GitHub
e2ef5cf5c9
no args and kwargs for _multi_like [PR] ( #16539 )
2026-06-08 17:35:15 -04:00
chenyu and GitHub
12764161c9
UOp.shard support axis=None [PR] ( #16538 )
...
match Tensor
2026-06-08 11:36:50 -04:00
chenyu and GitHub
ebc5390c9a
advance indexing to mixin [PR] ( #16532 )
2026-06-08 09:24:49 -04:00
nimlgen and GitHub
95d63d6c07
hcq2: lower to ins ( #16535 )
...
* hcq2: lower to ins
* pm4
* f
2026-06-08 16:15:30 +03:00
nimlgen and GitHub
8baca185d5
hcq2: add kfd ( #16537 )
2026-06-08 13:48:27 +03:00
chenyu and GitHub
03943cd1a0
use more _uop for cleanup [PR] ( #16531 )
...
`t.uop if isinstance(t, Tensor) else t` -> `t._uop`
2026-06-07 17:41:36 -04:00
chenyu and GitHub
937aeaec60
remove device= from UPat.const [PR] ( #16530 )
2026-06-07 16:38:43 -04:00
George Hotz and GitHub
eb1238436a
more prereqs for DL/DR -> BUFFER ( #16529 )
2026-06-07 12:25:11 -07:00
George Hotz and GitHub
0336ba8eb1
buffer param arg + dsp fixups ( #16528 )
2026-06-07 12:07:00 -07:00
Dmitriy Strunin and GitHub
75e903d533
remove unused device arg from _get_winograd_matcols ( #16527 )
2026-06-07 08:15:09 -04:00
chenyu and GitHub
90b556ca48
move gradient to mixin [PR] ( #16526 )
2026-06-07 00:05:02 -04:00
chenyu and GitHub
4e7c6260b0
clean up test_tesnor_uop_mixin ( #16525 )
...
most of those don't have UNIQUE anymore
2026-06-06 23:25:44 -04:00
George Hotz and GitHub
2a2f81dd3d
remove ANON from addrspace, refactor marg ( #16523 )
...
* remove ANON from addrspace, refactor marg
* as_shape
* as_shape is cached
2026-06-06 09:49:09 -07:00
qazal and GitHub
e69b4189b0
viz: hide STACK on PARAM by default ( #16522 )
2026-06-06 16:41:15 +09:00
sirhcm and GitHub
857b1f5399
ci: more parallelism, less duplication ( #16509 )
2026-06-05 21:26:19 -04:00
wozeparrot and GitHub
a1ec32cfd2
llama: current grad scaling ( #16518 )
2026-06-05 15:39:41 -07:00
sirhcm and GitHub
8c0ba1da5c
cleanup more from test/backend ( #16521 )
2026-06-05 18:38:46 -04:00
chenyu and GitHub
9982185b14
remove unused AFTER rules in pm_add_buffers[PR] ( #16519 )
2026-06-05 14:58:34 -04:00
nimlgen and GitHub
5ebd44aa12
hcq2: merge queues ( #16514 )
...
* hcq2: mergw queues
* cleaner
2026-06-05 21:20:25 +03:00
chenyu and GitHub
a51b5ba424
remove early fixup const copy [PR] ( #16516 )
2026-06-05 11:35:34 -04:00
Nueramarcos and GitHub
8274140134
uop/ops: fix ~bool deprecation warning on Python 3.12+ (ORANGE Grok helped with the patch) ( #16512 )
2026-06-05 10:54:30 -04:00
chenyu and GitHub
588c759a3d
remove unused GroupOp.Buffer [PR] ( #16515 )
2026-06-05 10:38:52 -04:00
qazal and GitHub
79a13310b3
viz: kernel_graph.txt unique is per schedule ( #16511 )
2026-06-05 16:17:28 +09:00
sirhcm and GitHub
9b0f75622c
many jit tests belong in unit ( #16508 )
2026-06-04 21:36:53 -04:00
chenyu and GitHub
bb407d8b3c
fix transform_precompiled_call for MULTI ( #16510 )
...
based on my understanding for https://github.com/tinygrad/tinygrad/pull/16084
2026-06-04 20:09:58 -04:00
wozeparrot and GitHub
f11f63007d
llama: immediate scaling on flag ( #16494 )
2026-06-04 10:30:00 -07:00
George Hotz and GitHub
4fb8ce1831
update buffer in spec ( #16507 )
2026-06-04 10:12:31 -07:00
chenyu and GitHub
4a8bf07a87
remove CONST(DEVICE) ( #16506 )
2026-06-04 11:29:46 -04:00
nimlgen and GitHub
3838c8df1b
hcq2: move global sync ( #16504 )
2026-06-04 17:32:40 +03:00
chenyu and GitHub
0faaf6df26
remove kwargs from arange and linspace [PR] ( #16505 )
...
it used to have requires_grad and device, now both are removed
2026-06-04 10:32:37 -04:00
qazal and GitHub
3b1a5f9770
llama: a_bT and aT_b bf16 gemms ( #16487 )
...
* hk_bf16_gemm
* enable in 8b
* cleanups
* rename to USE_HK_BF16_GEMM
* work
* work
* work
* work
* change the gemms
* work
* work
* set as default
* work
* change
2026-06-04 23:30:21 +09:00
chenyu and GitHub
5fad87252d
no device= into arange and eye ( #16503 )
2026-06-04 09:21:50 -04:00
nimlgen and GitHub
11af81f96f
hcq2: cleaner ( #16502 )
2026-06-04 15:26:37 +03:00
chenyu and GitHub
2c915c61ed
no CONST(DEVICE) in torch_backend ( #16499 )
2026-06-04 00:26:47 -04:00
wozeparrot and GitHub
fd13080636
deviceless const skip axis check ( #16496 )
2026-06-03 19:13:20 -07:00
qazal and GitHub
f7f03bd7e5
viz: better name for src id in kernel_graph.txt ( #16495 )
...
* viz: better name for src id in kernel_graph.txt
* better order
* cleanup
2026-06-04 11:09:29 +09:00
sirhcm and GitHub
9dac781e45
ci: use uv ( #16492 )
2026-06-03 21:38:50 -04:00
George Hotz and GitHub
9fdeaa402b
no anon addrspace, don't write hacks ( #16491 )
...
* no anon addrspace, don't write hacks
* revert that
* no reg there
2026-06-03 16:19:30 -07:00
chenyu and GitHub
2f83d01ccf
fix deviceless materialize device ( #16493 )
...
symbolic arange currently does not fuse, which creates a deviceless UOp post rangeify that needs a device to bufferize
2026-06-03 19:13:21 -04:00
chenyu and GitHub
19eb72ff60
remove use of full with buffer=False and non-None device= ( #16489 )
2026-06-03 16:21:24 -04:00
nimlgen and GitHub
6f2a2857c8
hcq2: refactor deps ( #16490 )
2026-06-03 23:20:24 +03:00
chenyu and GitHub
243446b44f
remove CONST(DEVICE) from const_like ( #16488 )
2026-06-03 14:04:51 -04:00
George Hotz and GitHub
cee472a0ef
renderer Estimates uses maxel ( #16485 )
2026-06-03 10:55:00 -07:00
chenyu and GitHub
8a4203638a
make full with buffer=False deviceless ( #16483 )
...
affects arange and eye
2026-06-03 12:35:59 -04:00
qazal and GitHub
405866f2b7
viz: improve kernel_graph.py usability ( #16486 )
...
* better default
* always format kernel output
* also show ref
* sched num
2026-06-03 21:12:44 +09:00
sirhcm and GitHub
f43cba5765
ci: native python where possible ( #16473 )
...
linters stays at 3.11
2026-06-02 22:40:12 -04:00
wozeparrot and GitHub
7dcfd144b6
llama: columnwise fp8 scaling ( #16480 )
2026-06-02 18:55:45 -07:00
George Hotz and GitHub
ffadd7a315
remove intel and amx support ( #16482 )
2026-06-02 18:53:05 -07:00
George Hotz and GitHub
5f439e3b7c
refactor cstyle to avoid dtype [PR] ( #16478 )
...
* refactor cstyle to avoid dtype
* clean up rules
* add new style option
2026-06-02 18:27:12 -07:00
sirhcm and GitHub
80eeb4dd21
mockgpu: use autogen.libc ( #16479 )
2026-06-02 19:59:36 -04:00
chenyu and GitHub
a43b55d480
deviceless const folding schedule test ( #16477 )
2026-06-02 18:46:30 -04:00
George Hotz and GitHub
14f843737b
renderer cleanups (pt 3) [PR] ( #16475 )
...
* renderer cleanups (pt 3)
* point refactors
* fix bugs
* fix PR
2026-06-02 14:24:24 -07:00
nimlgen and GitHub
99e37b1ee3
hcq2: deps ( #16459 )
...
* start
* sin
* f
2026-06-02 22:34:25 +03:00
George Hotz and GitHub
82f1c983d4
clean renderer migrations [pr] ( #16472 )
...
* clean renderer migrations
* minor webgpu
* use PARAM UOp as API
* make linter happy
2026-06-02 11:19:00 -07:00
sirhcm and GitHub
9897658895
ci: fix ocelot compilation on macos ( #16471 )
2026-06-02 12:43:31 -04:00
chenyu and GitHub
6b7d2b91df
update test_uop_graph ( #16470 )
...
use UOp methods instead of constructing UOp directly, some of it violated spec
2026-06-02 08:53:54 -04:00
qazal and GitHub
854eac09c6
llama: no E_ copy after bf16 GEMM ( #16458 )
2026-06-02 14:14:13 +09:00
George Hotz and GitHub
7d8ed8d4d7
add store to buffer's addrspace ( #16468 )
2026-06-01 22:07:43 -07:00
George Hotz and GitHub
20242fdf1d
update test + spec from shrink_in_render ( #16467 )
...
* update test + spec from shrink_in_render
* cast
2026-06-01 19:24:43 -07:00
sirhcm and GitHub
c6cad1ad67
ci: standardize runs-on ( #16466 )
...
* ci: use macos 26
* ugh github
* stick with github for arm
2026-06-01 21:39:58 -04:00
sirhcm and GitHub
b0ecbb34d9
ci: cleanup python backend tests ( #16465 )
2026-06-01 20:08:05 -04:00
sirhcm and GitHub
2d0f132a3b
ci: cleanup more duplicate tests ( #16462 )
2026-06-01 18:56:29 -04:00
wozeparrot and GitHub
aab9a5a8a3
llama: allow specifying layer count ( #16464 )
2026-06-01 15:36:04 -07:00
chenyu and GitHub
0167401fa2
minor hcopt WHERE cleanup [PR] ( #16463 )
2026-06-01 17:58:38 -04:00
George Hotz and GitHub
124d2f8227
anon addrspace from new renderer ( #16461 )
...
* anon addrspace from new renderer
* use max_numel in python renderer
* add sizes to ptrs in tests
* more
* correct fix
2026-06-01 14:42:02 -07:00
chenyu and GitHub
517eea5985
no CONST(DEVICE) in create_allreduce_function ( #16460 )
2026-06-01 17:12:34 -04:00
chenyu and GitHub
7e7b481ba7
less CONST(DEVICE) ( #16452 )
...
* less CONST(DEVICE)
no DEVICE for single device in const_like, multi has other issues
* maybe
* that?
2026-06-01 15:55:12 -04:00
George Hotz and GitHub
556defa0f7
minor updates from vec removal ( #16456 )
2026-05-31 09:48:51 -07:00
Javier De Jesus and GitHub
989f713c1b
support negative pads in circular pad mode ( #16448 )
2026-05-31 09:28:45 -07:00
nimlgen and GitHub
2c2cb339e0
fix word wrap ( #16450 )
2026-05-30 23:21:24 +03:00
qazal and GitHub
29b47a0057
llama: update local amax implementation after ParamArgs change ( #16446 )
...
* local amax failing test
* update _local_abs_max_fxn
2026-05-30 16:55:43 +09:00
wozeparrot and GitHub
6795c2d5c9
llama: zero grad this way ( #16445 )
2026-05-29 20:25:21 -07:00
George Hotz and GitHub
cf55aaf01f
python prg is pkl uops ( #16443 )
...
* python prg is pkl uops
* refactor to use uop
* refactor to u.
2026-05-29 19:13:51 -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