0
Fork 0
mirror of https://github.com/zml/zml.git synced 2026-11-16 19:11:09 +00:00

Compare commits

...

6 commits

Author SHA1 Message Date
Corentin Godeau
7283f5ce02 zml: remove obsolete code related to custom calls
It will come back under a better abstraction if required
2026-11-09 17:56:56 +00:00
Corentin Godeau
d7debcb3ff zml/kernels/moe: break cycle between flashinfer_cutlass and platform
* Stopped using `zml.ops.CustomCall` because it creates cycles
  impossible to break.
* renamed some `cutlass_flashinfer` to `flashinfer_cutlass` for
  consistency

I didn't replace `CustomCall` because flashinfer_cutlass is the last
user and will be removed soon.
2026-11-09 17:56:46 +00:00
Corentin Godeau
fe752fcba2 zml/kernels/moe: break cycle
`zml/kernels/moe.zig` is not imported by backend implementation anymore.

I introduced `options.zig` to contain the shared options.
I also introduced `weights.zig` to expose the unpacking helpers.
2026-11-09 17:56:35 +00:00
Corentin Godeau
224f65d046 changed my mind
Declare AttentionOptions in another file that will become a module.

Argument is that with the multiplication of backend it's going to be a
pain to have many copies of the same struct.
2026-11-09 17:54:57 +00:00
Corentin Godeau
dc71ba0e34 zml: break direct cycle in paged_attention
Redeclare `AttentionOptions` and `AttentionMask` in backend
implementation and add convenience function to convert.

Another solution would have been to make `AttentionOptions` and
`AttentionMask` their own module.
2026-11-09 17:54:57 +00:00
Corentin Godeau
fa80087444 zml: break direct cycle
Between `zml/attention/attention.zig` and
`zml/kernels/flash_attention/flash_attention.zig`
2026-11-09 17:54:57 +00:00
39 changed files with 1276 additions and 1267 deletions