makepad/libs/ai/metal
Admin 525ba1c2f4 metal: a device-resident two-way decoder layer, and the body decoder rides it
One backend call per SAM-style decoder layer (PE norms, token
self-attention, token-to-image cross-attention, erf-GELU feed-forward,
final norm) inside one command buffer, with the layer's f32 weights cached
on the device under their content identity and pooled transients.
gpu_two_way_layer_resident in the common backend; CUDA declines and the
per-op path stays. Body decoder loop on the M3 Max: layers 100 -> 9 ms,
frame 405 -> 266 ms, oracle parity unchanged (kp3d 1.5 mm).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-02 00:25:59 +02:00
..
shaders metal: a device-resident ViT stack, and the body backbone rides it 2026-09-02 00:16:31 +02:00
src metal: a device-resident two-way decoder layer, and the body decoder rides it 2026-09-02 00:25:59 +02:00
build.rs metal: a device-resident ViT stack, and the body backbone rides it 2026-09-02 00:16:31 +02:00
Cargo.toml libs/ai: one AI stack, replacing libs/ggml, llama, mlx, cuda, tts, voice2 and pbr_paint 2026-08-23 01:34:35 +02:00