Commit graph

34 commits

Author SHA1 Message Date
Admin
723b7928bb Route assistant: mmap LLM weights, fix batched-attention corruption, kokoro voice out
- ggml: read-only mmap module (unix-gated) + two-region Context (mapped
  weights / dirty caches) + segmented Metal buffer binding; llama loads
  GGUF weights as file-backed clean pages (jetsam-exempt) with owned-arena
  fallback (MAKEPAD_LLAMA_NO_MMAP=1). Route app dirty footprint 12GB -> 4-7GB;
  model load becomes lazy page-in; A/B byte-identical on 4B + 9B.
- llama: fix graph-cache keying corruption — a graph keyed wider than the
  KV cache corrupted attention for any prefill batch >= 2 (flash op reads
  permute-node dims baked at build; view reconfigure never reached the
  kernel; masks were written cache-narrow). Masks now always fill the full
  graph key width and graphs key by 1024-buckets; reconfigure path removed.
  Verified byte-exact vs per-length reference across batch 1/2/8/64/512,
  short+long prompts, mmap on/off, plus a two-session concurrency probe.
- voice: passive VoiceWaves no longer register the global audio-input
  callback (the invisible caption-bar wave stole mic audio — last
  registrant wins — and spawned duplicate whisper workers); whisper back
  to F16 default (voice Metal library has no quantized kernels; q5_0
  failed every GPU matmul); raw transcripts render immediately.
- route: kokoro TTS voice output (speaker toggle; streams reply sentences,
  announces nav maneuvers + arrival) with barge-in — voice activity on the
  mic stops playback instantly; dispatcher context 8k -> 32k (hybrid KV is
  12/48 layers, ~48KB/token); window caption bar suppressed under studio.
- llama-generate: --max-context/--prefill-batch-size + state fingerprints;
  new llama_concurrent_probe bin.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 12:13:31 +02:00
Admin
4c8247cd01 ggml/llama: fix non-flat unary metal dispatch truncating rows past 1024 floats
Grid width for the non-flat unary path was ne01 while the kernel decomposes
tgpig.x into (ne0-chunk, row) — rows past ntg were silently dropped, masked
below the 32768-element flat-path threshold; silu on [8192, n] crossed it at
prefill batch 4 and corrupted qwen35 batched prefill. Grid is now
ne01 * ceil(ne0/nth). Adds metal unary/gated-delta-net/ssm_conv regression
tests, the llama-batch-probe bisect harness, prefill batch default 32, and
keeps the graph cache until a reserve-retry actually needs eviction.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-28 13:46:57 +02:00
Admin
59b7d2712f gamemaker: full engine round — chase camera rig, racing-game APIs, script stdlib math, real error line numbers
Engine (examples/gamemaker): chase camera rig (camera({chase}) — ease-behind
with mouse-wins/recenter authority), writable camera + look deltas, spatial
queries (raycast/overlap_sphere/ground_normal), save/load, sustained tones,
rot_y + collide:false spawnables, HUD slots/bars, terrain noise shaping +
height bands, per-shape instanced render batching with static slabs (3.2x),
error push-loop into the agent chat, unknown-verb/option diagnostics with
game.splash:line:col positions, streaming tail-statement finalization, quiet
toolbar UI, Shh voice hush, fable voice.

Platform: runtime vector methods (.length/.normalized/.dot/.cross), scalar+
vector lerp, TAU; ScriptVm error capture sink; window frame capture API; four
headless-JIT fixes (scalar casts, mat4 mul, Id-arg expansion, commuted
scalar-vec ops) with regression test stages. Widgets: single-line TextInput
baseline centering, TextFlow inline-code baseline alignment, glass button
corner_radius uniform. Voice/ggml Metal backends: debug logs behind
GGML_METAL_TRACE. splashgame.md: the runtime-loaded game API contract.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-10 14:20:03 +02:00
Admin
432ae0f8d7 aimgr 2026-04-27 14:51:24 +02:00
Admin
b04d47592b Batch Qwen CUDA prefill MoE 2026-04-20 13:48:29 +02:00
Admin
bbcfe50745 Optimize Qwen CUDA routing and exact decode 2026-04-20 13:48:29 +02:00
Admin
ca56cf3d23 Optimize Qwen CUDA MoE decode path 2026-04-20 13:48:29 +02:00
Admin
d750a764c7 Checkpoint Qwen CUDA exact progress 2026-04-20 13:48:29 +02:00
Admin
8f611181bd Add Qwen runtime and Windows CUDA build support 2026-04-17 11:44:43 +02:00
Admin
4b27bbaac4 Add CUDA multimodal exact path 2026-04-15 21:33:39 +02:00
Admin
0c1aa42156 Add CUDA exact chat windowing and kernels 2026-04-15 21:33:39 +02:00
Admin
6cffd711c7 cuda otw 2026-04-13 11:09:08 +02:00
Admin
9809128567 cuda exact chat reuse and decode tuning 2026-04-13 11:09:08 +02:00
Admin
b5e31a352a wip cuda long-context profiling 2026-04-13 11:05:49 +02:00
Admin
77904dec0d cuda prefill metrics and chunked kernels 2026-04-13 11:05:49 +02:00
Admin
90ae117d84 cuda exact prefill to ~87 tok/s 2026-04-13 11:05:49 +02:00
Admin
33261dcfc7 flux 1 works 2026-04-13 11:01:13 +02:00
Admin
43ac724e91 rotor quant for metal 2026-04-13 11:01:13 +02:00
Admin
f79724af4f Add optional Rotor-style K-cache compression for Gemma 4 2026-04-13 11:01:13 +02:00
Admin
b50c05dfe7 Add CUDA NVFP4 backend and GPU decode path 2026-04-11 11:44:04 +02:00
Admin
4d0a4c44f0 mlx image opt 2026-04-11 09:51:37 +02:00
Admin
bff75eb694 fix 2026-04-10 21:14:32 +02:00
Admin
1d1e91dae7 cleanup 2026-04-10 14:48:17 +02:00
Admin
e19a79d5a4 mlx otw 2026-04-10 14:48:17 +02:00
Admin
69aa615947 mlx 5x->2x 2026-04-10 14:46:22 +02:00
Admin
3d0171c8d6 mlx 2026-04-10 14:46:22 +02:00
Admin
00eed2e268 mlx otw 2026-04-10 14:46:22 +02:00
Admin
f6c32eae92 stdin 2026-04-05 11:30:53 +02:00
Admin
357a0bd51b drivable 2026-04-05 11:28:47 +02:00
Admin
6cf21b67bd iterating 2026-04-05 11:28:47 +02:00
Admin
0a0652cfb0 otw 2026-04-05 11:28:47 +02:00
Admin
d134df9f06 xr llama and slug 2026-04-01 12:19:03 +02:00
Admin
1b9906f144 llama + xr 2026-04-01 12:19:03 +02:00
Admin
6836d3ac07 fixup 2026-04-01 12:19:03 +02:00