Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
Commits on main
metal: IQ3_XXS prompt decode probes (MM_PROBE 3: no table lookups, 4: computed signs) - the grid/sign threadgroup lookups are 2.5 of 6.6 ms a layer; computed signs are slower (7.0-7.6 -> 7.7-8.3)
f5914a1 Niko1221 committed 1 month ago
Merge f-mac-kern b6480437 (IQ4_XS expert kernels: IQ3_S on Metal)
b6a2dac Niko1221 committed 1 month ago
Merge f-mac-ssd f0609f40 (expert streaming from the SSD for Macs whose memory cannot hold the pack)
93e582d Niko1221 committed 1 month ago
metal: IQ4_XS routed-expert gate/up for decode (moe_gu_23_*) and prompt (mm_gu3 W4<IQ4_XS>, mm_gu2 TK >= 32 tiles) - the IQ3_S pack's one IQ4_XS layer; parity on the M5 and the M4
b648043 Niko1221 committed 1 month ago
metal: M4 window GEMV probes - gemv_x (x staged in threadgroup memory), GEMV_PROBE (function constant 9)
5565a34 Niko1221 committed 1 month ago
setup on macOS: --mmap-experts in the config (what the Metal engine does; the server's start text then says the experts are mapped, not loaded)
37c3b38 Niko1221 committed 1 month ago
setup on macOS: metal/setup_mac.py (Apple Silicon, the Metal engine built from source)
a9edff4 Niko1221 committed 1 month ago
metal: the draft vocabulary beside the draft layer (<mtp>/rt/draft_vocab.bin, setup's --draft-vocab)
a5d17ab Niko1221 committed 1 month ago
metal: stubs.cpp regenerated without cvec() (now in missing.cpp)
e30cffb Niko1221 committed 1 month ago
metal: serve - the empty control vector on Metal; a call stack on terminate
f334348 Niko1221 committed 1 month ago
metal: router_route (mac-kern 3f9ca996) in the window, opt-in STRATA_METAL_ROUTE=1
389c24e Niko1221 committed 1 month ago
Merge f-mac-kern 3f9ca996 (router_route, gemv_cat, gr_norm_comb, Q3_K packed loads)
be49de3 Niko1221 committed 1 month ago
metal: decode T=2 items - router GEMV + moe_route in one dispatch (router_route), gemv_cat, gr_norm_comb, Q3_K packed loads
3f9ca99 Niko1221 committed 1 month ago
metal: gdn_step's partial commit in the window (opt-in STRATA_METAL_PARTIAL=1)
38cb85a Niko1221 committed 1 month ago
metal: gdn_step partial commit (commit = 0x100 | k): the state and conv history after the first k window tokens
56526ae Niko1221 committed 1 month ago
metal: test tooling - STRATA_METAL_KPROF=T (the GPU time of each kernel class of a T-token window, alone)
39acb88 Niko1221 committed 1 month ago
metal: --spec defaults to 2 on Metal builds (an explicit --spec N wins)
4eca56f Niko1221 committed 1 month ago
metal: token_chain's --fuse in the decode window (GDN y prep in the step, no QSA selection within the budget)
5440542 Niko1221 committed 1 month ago
Merge f-mac-kern 272bbbbd (M4 QSA prompt attention, mm_gu3 paired-run decode, chunked GDN scan)
a261223 Niko1221 committed 1 month ago
metal: the prompt through mac-kern's prompt kernels (prefill hook)
f159858 Niko1221 committed 1 month ago
metal stream: a prompt's buffers live in a region of the expert arena (held only while a prompt runs; the arena is anonymous memory wrapped no-copy); 7 GB kept for macOS
b174c71 Niko1221 committed 1 month ago
metal stream: size classes merged (<= 15% slot waste; 3 for the IQ3_XXS mix), each holding a prompt layer; misses never evict a wanted slot (pinned first); read-ahead depth / LRU place by expert size (measured)
8b91c64 Niko1221 committed 1 month ago
metal: chunked GDN scan (WY form, chunks of 32) - correct, slower in scalar fp32 than gdn_scan_r; kept, not used
272bbbb Niko1221 committed 1 month ago
metal: mm_gu3 paired-run decode without the runtime layout check (Q2_0 gate/up 4.9 -> 3.5 ms a layer); SLC prefetch probe
072c19f Niko1221 committed 1 month ago
metal: prompts on the matrix units in the engine (prompt_chain's chunk on the window's state), SSD-streamed
41ffe3e Niko1221 committed 1 month ago