George Hotz and GitHub
4909868a2b
Merge branch 'master' into simple_rangeify
2026-08-04 11:01:27 -07:00
b1tg and GitHub
0796853845
support symbolic shapes in allreduce ( #17364 )
2026-08-04 07:53:12 -07:00
qazal and GitHub
c9cd44b751
more custom kernel contig input edge case tests ( #17387 )
2026-08-04 18:20:50 +09:00
George Hotz and GitHub
c21a552f3d
llm: bugfixes + warmup ( #17384 )
2026-08-03 18:23:14 -07:00
George Hotz and GitHub
3cb786f447
llm: update test_llm_server tests ( #17382 )
2026-08-03 16:06:17 -07:00
geohot
87289a7410
hotfix: revert test_scalar_alu_index, violates spec
2026-08-03 15:25:51 -07:00
George Hotz and GitHub
c2625c78cb
scalar ALU index fix + llm: preserve_thinking ( #17381 )
...
* cstyle: scalar ALU index fix, serve: preserve_thinking, test: fix Handler import
- cstyle.py: return scalar directly when ALU buffer has 1 element
- cli.py: add preserve_thinking param to FallbackTemplate.render
- serve.py: pass preserve_thinking=True when rendering chat completions
- test_llm_server.py: fix import to use Handler from llm.serve
* real fix
2026-08-03 15:10:21 -07:00
chenyu and GitHub
314df72b5f
deflake test_hcq with MOCKGPU ( #17370 )
...
for MOCKGPU we compare with e2e wall time which would be device agnostic
2026-08-03 13:22:59 +03:00
George Hotz and GitHub
05bc7c6994
fix llm reasoning and Linear import ( #17372 )
2026-08-02 12:31:52 -07:00
chenyu and GitHub
59df317b12
use UOp.const to create new consts [PR] ( #17368 )
...
replace arg won't work with ConstArg
2026-08-02 13:31:55 -04:00
chenyu and GitHub
8e524ca467
CONST related cleanups [pr] ( #17352 )
...
ConstFloat(nan) != nan should be False, and some Invalid bool cleanups
2026-08-01 09:54:28 -04:00
chenyu and GitHub
6c0ec39279
UOp.is_invalid [PR] ( #17351 )
...
helper to prep ConstArg
2026-08-01 02:36:32 -04:00
chenyu and GitHub
b502fc1367
more const arg -> val ( #17350 )
2026-08-01 02:18:10 -04:00
qazal and GitHub
161783d8f7
add _device_num back to ast.variables (kimi) ( #17327 )
2026-08-01 14:56:50 +09:00
George Hotz and GitHub
a88f832f0c
remove UOp.val ( #17345 )
2026-07-31 18:58:38 -07:00
chenyu and GitHub
850989115d
__int__ and __float__ work for weak ( #17342 )
2026-07-31 19:56:37 -04:00
sirhcm and GitHub
85ced44db6
tc: don't allow reduce over output dims ( #17340 )
2026-07-31 16:48:51 -04:00
chenyu and GitHub
277433259e
fix sym_infer for CAST ( #17338 )
2026-07-31 14:38:38 -04:00
geohot
85a1e25004
pad issues
2026-07-31 11:30:44 -07:00
chenyu and GitHub
ad24750487
const(value, dtype) -> const(value).cast(dtype) in tests ( #17335 )
2026-07-31 13:24:31 -04:00
chenyu and GitHub
7f4dbb8090
remove shape= from UOp.const [PR] ( #17331 )
...
inlined to const_like
2026-07-31 11:18:59 -04:00
chenyu and GitHub
8e2f175542
const(dtype, b) -> const(b, dtype) [PR] ( #17328 )
...
prep for dtype removal
2026-07-31 09:46:37 -04:00
nimlgen and GitHub
0c4bfaeb48
coalesce ints ( #17323 )
...
* merge ints
* fix z3 validation of coalesced loads
* fix uint vector names in CUDA and Metal
2026-07-31 15:49:56 +03:00
qazal and GitHub
6d2700f0b7
failing test for unbound _device_num err in BEAM ( #17326 )
...
* min failing test
* switch to cpu
* err
2026-07-31 20:24:44 +09:00
qazal and GitHub
0a3325f9c2
add mxfp4 quantize and layout kernels ( #17320 )
2026-07-31 14:50:18 +09:00
qazal and GitHub
a8c1e89500
fp4 asm gemm 6+ pflops ( #17315 )
...
* fp4 gemm
* better kernargs structure
* move to .s files
* work
* work
* p2
* style
* use .py
* move to dsl
* cleanup
* add MFMA_SCALE_X2_ENCODING
* cleanup mfma
* fma docs
* gemm_mxfp4
* more cleanup
* move
* move to cdna_asm_gemm
* change
* rm
* change
* mx
2026-07-31 14:25:23 +09:00
George Hotz and GitHub
d65ea465ed
cleanup gemm fragment + add store unshard ( #17313 )
...
* cleanup gemm fragment + add store unshard
* multi
* fix
2026-07-30 20:53:28 -07:00
Noah Schiro and GitHub
f2c2f4456b
Add softmin ( #17292 )
...
* Add softmin
* Remove extra tests
2026-07-30 20:05:11 -04:00
chenyu and GitHub
fe8ece7efa
fix weak for image gate fusion [pr] ( #17310 )
2026-07-30 19:47:47 -04:00
chenyu and GitHub
ce500c1946
broadcast doesn't cast CONST [pr] ( #17308 )
...
* broadcast doesn't cast CONST [pr]
it might change arg from python int to python float, but not cast the CONST, so we don't need or_casted in symbolic. we lower the weak dtype right before decomp
* fix
2026-07-30 18:51:59 -04:00
chenyu and GitHub
b488cc7df2
update dtype_from_uop for SHR/SHL ( #17307 )
...
certain backend cast the distance, and we should not re-broadcast it
2026-07-30 13:57:58 -04:00
b1tg and GitHub
e25bf77ce9
kimi delta attention ( #17281 )
...
* kimi delta attention
* config
* test
2026-07-30 08:23:56 -07:00
qazal and GitHub
7b7b9c1ae0
spec tests for movement ops before custom_kernel ( #17299 )
...
* spec
* fixing
* xfail
* remove
* update tests
* add back
* change to max_kernels
* split and cleanup
2026-07-30 19:20:24 +09:00
chenyu and GitHub
d52ef3077c
fix do_devectorize dtype ( #17295 )
...
each one derives its dtype from src, not shared
2026-07-29 23:04:25 -04:00
chenyu and GitHub
fd912b348c
generic c0*x<c1 [pr] ( #17291 )
2026-07-29 18:45:23 -04:00
George Hotz and GitHub
138676ab81
improve fragment example + index unshard (kimi) ( #17288 )
...
* fix dtypes in fragment example
* match tilelang
* flip locals
* fix index on unshard
* test fixes
* kimi needs more taste
2026-07-29 15:38:38 -07:00
chenyu and GitHub
027907a544
fix c0*x<c1 symbolic [pr] ( #17290 )
...
use `//` and not math.ceil
2026-07-29 18:32:31 -04:00
George Hotz and GitHub
b30c7e00d4
support 2d on UNSHARD (kimi) ( #17285 )
...
* support 2d on UNSHARD
* fixes
* Fix test and spec
* single barrier
* 2d sharding works for devices too
* cleanups
* no _rewrap
2026-07-29 12:01:59 -07:00
sirhcm and GitHub
aab51fb7b6
64-bit UOp.variable support, try 2 ( #17256 )
2026-07-29 14:39:36 -04:00
chenyu and GitHub
dd86a30798
test case for weakfloat cast to weakint INDEX ( #17287 )
2026-07-29 14:15:52 -04:00
George Hotz and GitHub
52c9e5a99e
rename LOOP -> WEAK and STRONGLOOP -> LOOP ( #17283 )
2026-07-29 10:38:36 -07:00
chenyu and GitHub
3803f1583b
fix add_raw_barrier [pr] ( #17278 )
...
* fix add_raw_barrier [pr]
a kernel might need multiple barriers
* smaller?
2026-07-29 09:30:00 -07:00
qazal and GitHub
6ea7d366fa
test permuted input in custom Ops.PROGRAM test ( #17279 )
...
* test permuted input in custom Ops.PROGRAM test
* dtype
2026-07-29 18:29:05 +09:00
qazal and GitHub
e684fcc689
pm_reduce_collapse fix for re enabling stack for cat of same shape (codex) ( #17251 )
...
* change
* stack cat
* remove nop
* change
2026-07-29 14:47:28 +09:00
George Hotz and GitHub
57ae1bc7a7
rename MULTI to UNSHARD ( #17267 )
...
* rename MULTI to UNSHARD
* comment updates (glm)
* rename method to unshard
2026-07-28 16:51:41 -07:00
George Hotz and GitHub
1757067fa6
add device range as src[1] to multi (kimi) ( #17264 )
...
* add device range as src[1] to multi (kimi)
* cleanup
* fix tests
2026-07-28 16:39:34 -07:00
chenyu and GitHub
23e9e76e8c
DEFAULT_FLOAT/DEFAULT_INT ContextVar [pr] ( #17265 )
2026-07-28 19:08:18 -04:00
chenyu and GitHub
fde3a8faff
CAPTURE_PROCESS_REPLAY=0 default chaging test [PR] ( #17261 )
...
* CAPTURE_PROCESS_REPLAY=0 default chaging test [PR]
quick patch before making default dtype context vars, which is quite annoying
* few more
2026-07-28 17:32:35 -04:00
drk and GitHub
d1c3ae0f91
preserve typed ranges through reshape ( #17259 )
2026-07-28 16:51:06 -04:00
qazal and GitHub
05e4727feb
arange stack regression test ( #17250 )
...
* simple failing test
* commend out stack
* a little smaller
* work
2026-07-28 20:00:22 +09:00