Commit Graph

  • 277be72a7f Foresight swap: an exchange holds the experts whose bytes it moves, so no slot is served with another expert's bytes (#2134) Niko1221andradoslawsz 2026-10-13 00:31:21 +02:00
  • ad8f53fa7a HIP gfx12: the bitwise grouped K-quant decode experts (STRATA_EXPERT_V2K) on by default (R9700 UD-Q4_K_XL +0.2..1.2%, the same text) Niko1221 2026-10-13 00:30:33 +02:00
  • dd5f09a50e docs: QUANTS.md speed, bound, CPU pool, dense GEMV, HC and images; MODELS.md one table for Unsloth's five files (old anchors kept); UNSLOTH_Q4/Q6 status; README Niko1221 2026-10-13 00:30:02 +02:00
  • 6339e8610d serve: the stdin reader shares its state with main instead of borrowing main's locals (QUIT race) Niko1221 2026-10-13 00:28:26 +02:00
  • f5082f41a6 Sources: no raw NUL bytes (expert_source.cpp, pinned.cu) + a test that scans for them Niko1221 2026-10-13 00:26:51 +02:00
  • 12be1059df setup: images on by default for Unsloth's files where the encoder has room (NVIDIA 16 GB and more: the GPU encoder; AMD Linux with every expert in RAM: the CPU encoder); UD-Q4_K_XL's images no longer untested (run end to end on an RTX A4000 and an R9700); the yardstick keeps a config's --resident-budget-gib Niko1221 2026-10-13 00:08:31 +02:00
  • 3e11f786af Merge f-quants (945fee23) into f-qwen36: the K-quant CPU pool rows, libstrata_kq, the K-quant GEMV work Niko1221 2026-10-12 23:48:28 +02:00
  • f29e74c721 strata-q36: FP16 prompt attention and a column-split GDN chunk kernel Niko1221 2026-10-12 23:48:13 +02:00
  • 3a639f7357 Merge branch 'f-quants' into f-intel-quants Niko1221 2026-10-12 23:43:12 +02:00
  • ae02e7db17 metal: vision - image rows in the prompt, M-RoPE (qsa_prep constant 24), setup's --vision Niko1221 2026-10-12 23:36:13 +02:00
  • 38436f2a44 strata-q36: decode always on the per-token GDN kernels Niko1221 2026-10-12 23:30:40 +02:00
  • 58515d2b9c SYCL prompt path: the 32-value block dequantizers (Q5_1, Q8_0, Q4_0, Q4_1, Q5_0) write neighbouring values from neighbouring lanes, as vector stores Niko1221 2026-10-12 23:29:06 +02:00
  • 13ed803334 metal: the M4's expert tiles for the Unsloth formats (mac-kern 513fc615): decode down Q5_1 4,1,4 and Q8_0 8,1,4 without the M5 layout; v2 prompt K-quant gate/up 16_16_128_2 Niko1221 2026-10-12 23:19:58 +02:00
  • e65858f84f SYCL: Unsloth's expert formats decode each weight word once per grouped call (KqSplit), bitwise Niko1221 2026-10-12 23:19:46 +02:00
  • b55684708e strata-q36: MTP speculative decode from the GGUF nextn block Niko1221 2026-10-12 23:19:34 +02:00
  • e3cd071c21 Merge f-mac-kern 513fc615 (M-RoPE in qsa_prep, faster Unsloth prompt experts, M4 tile notes) Niko1221 2026-10-12 23:19:10 +02:00
  • 513fc615bb metal: W8<Q6_K> with ushort-pair code loads and vector field math (prompt Q6_K gate/up 14.0 -> 11.0 ms a layer at T 2048; same values) Niko1221 2026-10-12 23:11:57 +02:00
  • 009dc6c1dc STRATA_DRAFT_TIMING=1: where a draft round's time goes (cudaEvent pairs around the round graph and every step, host wall) Niko1221 2026-10-11 00:16:25 +02:00
  • 29724e5ea9 metal: K-quant / Q5_1 paired-run prompt decoders (W8) and paired mm_down3; qsa_prep M-RoPE (function constant 24) Niko1221 2026-10-12 23:10:47 +02:00
  • b1b133e55f metal: Unsloth formats in the window - the file's Q8_0 HC read in place (F32 inject: gr_down_q8f), F32 router/alpha/beta/shexp gate through gemv_0, the v2/v3 expert tile names per format; strata-vision builds on macOS Niko1221 2026-10-12 23:08:35 +02:00
  • 945fee2365 Dense Q8_0 GEMV: one row per block where measured faster (gfx1201: n_in <= 4096 with n_out >= 4096; sm_86: n_out >= 2048), the same bits as two rows Niko1221 2026-10-12 23:08:31 +02:00
  • 209de26e53 Merge f-mac-kern 945c0d24 (Unsloth formats: Q4_K/Q5_K/Q6_K/Q8_0 experts, Q5_1 down, F32 GEMV, HC down with F32 inject) Niko1221 2026-10-12 23:02:32 +02:00
  • 5ef9f4c812 q8_gemv_bench: the dense Q8_0 GEMVs at the engine's shapes, 1-6 columns, against the memory bandwidth Niko1221 2026-10-12 22:59:31 +02:00
  • 23250b5da6 setup: Unsloth's files keep every expert in RAM where they fit with 16 GiB more (the RAM budget below that); UD-Q5_K_XL, UD-Q6_K_XL and Q8_0 in the unsloth family; UD-Q4_K_XL no longer experimental or NVIDIA-only Niko1221andsergiywith 2026-10-12 22:57:14 +02:00
  • 945c0d2424 metal: the Unsloth UD-Q4/5/6_K_XL formats - K-quant / Q8_0 / Q5_1 routed experts, F32 GEMV + router, Q8_0 HC read with F32 inject Niko1221 2026-10-12 22:56:44 +02:00
  • 1176eb3c5b strata-q36: the engine path for Qwen3.6-35B-A3B (serve protocol, prompt chunks, decode graph) Niko1221 2026-10-12 22:50:52 +02:00
  • 1269d5fa97 setup on macOS: Unsloth UD-Q4/Q5/Q6_K_XL (not offered until their expert kernels land); the stream rule by size Niko1221 2026-10-12 22:49:27 +02:00
  • 81fefbe953 SYCL native_grouped_parity --kqbench: grouped expert calls per format pair at the model's shapes, us per call and GB/s of expert bytes Niko1221 2026-10-12 22:48:38 +02:00
  • a57fa9990e metal/tools/metal_repack.py: a multi-shard GGUF as one 16 KiB-aligned GGUF for the Metal engine Niko1221 2026-10-12 22:45:02 +02:00
  • 74a78869eb nvfp4_decode_bench: NVFP4_BENCH_FILE times real blobs (an experts.bin or its head) instead of random ones Niko1221 2026-10-12 22:39:47 +02:00
  • faf6c1c955 Images: Vulkan decodes in 256-pixel tiles at a quarter's overlap (the 780M's 1024x1024 VAE: 23 s instead of 45 s); docs/IMAGES.md speed table Niko1221 2026-10-12 21:54:20 +02:00
  • b63e38b1ae docs/QUANTS.md: Unsloth's K-quant files and Q8_0 per role, the kernels per format and backend, the quality yardstick; UNSLOTH_Q4/Q6 notes for the Phase 1 build Niko1221 2026-10-12 21:48:34 +02:00
  • 5629161b14 mmq_expert_bench: the prompt path's routed-expert products timed at the engine's shapes, NVFP4 beside UD-IQ4_XS's IQ3_S / IQ4_NL Niko1221andsergiywith 2026-10-12 21:26:37 +02:00
  • 6e6d4faf5b decode: NVFP4 down on 8-lane rows (4 a warp, 32 a block) - bitwise warp_sum's tree, the whole expert at 89% of the 3060's DRAM peak Niko1221 2026-10-12 21:25:17 +02:00
  • bcc2a84454 metal engine: the routed gate/up's i-quant grids from constant memory (function constant 23 on moe_gu_*; STRATA_METAL_CTAB=0 off) - IQ3_S spec 2 decode +0.7-1.0%, greedy tokens unchanged Niko1221 2026-10-12 21:17:53 +02:00
  • af6738eb74 metal: MM_PROBE 7 - a repacked i-quant layout's cost (one aligned 16-byte load a lane a row a 32-group): IQ3_S prompt gate/up 9.5-10.9 -> 6.8-6.9 ms a layer Niko1221 2026-10-12 21:17:53 +02:00
  • c7070a72cf kq_cpu_bench: the CPU pool's expert rows per format on T threads in GB/s of weights; tools/quant_bound.py: decode bounds from the per-layer formats; setup copies libstrata_kq next to a compiled engine Niko1221 2026-10-12 21:16:33 +02:00
  • 546d767543 decode: NVFP4 experts decode each weight part once per call for every token of the window (Split<40>), its UE4M3 scales from bits, down on 16-lane rows - bitwise the same, 1.14-2.5x Niko1221 2026-10-12 21:13:50 +02:00
  • 8cc41f3ac6 nvfp4_decode_bench: the decode experts' weight bandwidth on random blobs of any format pair, with an output hash Niko1221 2026-10-12 21:13:50 +02:00
  • de81ac91f4 Qwen3.6 T1: SiLU-gated GDN step and a 256/8 router in the native kernels; q36ref runs on them Niko1221 2026-10-12 21:11:03 +02:00
  • c43c9ac948 Merge commit '450c82f5' into f-mac-iq3s Niko1221 2026-10-12 21:07:47 +02:00
  • 465cd61dfb Formats cost nothing unless used: Q6_K gate/up experts in the normal build; the K-quant MMQ prompt kernels on by default, on CUDA as their own library (strata_kq) opened only for a model with these experts and STRATA_MMQ_KQ=1 Niko1221 2026-10-12 21:04:17 +02:00
  • 450c82f5e2 metal: IQ3_S pack work - QUANT_CTAB (constant-memory i-quant grids, function constant 23), mm_gu4 / mm_gu5 probes Niko1221 2026-10-12 21:03:58 +02:00
  • fab8c10547 setup: the NVFP4 family - sergqwer's ready-made packs (GPTQ default, NVIDIA's checkpoint second), pinned and SHA-256-checked Niko1221andsergiywith 2026-10-12 20:53:31 +02:00
  • 0d3553fc8f Quant yardstick: tools/quant_quality.py (teacher-forced top-1 agreement and KL against Q8_0 on a fixed 5x1000-token set) and tools/quant_formats.py (per-role tensor formats from GGUF headers, local or HF range requests) Niko1221 2026-10-12 20:48:37 +02:00
  • 5c6bdf6175 NVFP4 port: the SYCL tree takes the new defaulted args (no NVFP4 there); the 12x -> 12xa rewrite works on CMake < 3.29 Niko1221 2026-10-12 20:43:44 +02:00
  • 3a020d58c7 Qwen3.6 T1: strata-q36ref, the reference path, and its llama.cpp parity tools Niko1221 2026-10-12 20:41:17 +02:00
  • e000fe5d9c Expert arena: say at once that huge pages were skipped (#2126) Niko1221 2026-10-12 20:23:20 +02:00
  • 6b395578a2 Expert arena: MADV_HUGEPAGE is not requested when free 2 MiB blocks cover less than half of it (direct compaction stalled a 62 GB box's load at 100% system time); STRATA_ARENA_THP=1 asks anyway (#2126) Niko1221 2026-10-12 18:20:48 +02:00
  • 8e2c57be78 NVFP4 port: the SYCL build compiles the NVFP4 CPU rows (native_expert.cpp calls them); mmq_nvfp4_parity gets -mf16c on GCC/Clang Niko1221 2026-10-12 20:35:14 +02:00
  • 55e2072c99 serve: the route tail skip is not a default with NVFP4 experts (STRATA_ROUTE_TAIL_SKIP=7 opts in) Niko1221andsergiywith 2026-10-12 20:30:47 +02:00
  • b766cde631 cpu: NVFP4 expert rows in 256-bit lanes for CPUs without AVX-512 sergiywith 2026-10-06 06:24:29 +03:00
  • f72f203d91 prefill: the CPU rows' row_sd ones sized on their own - 0.1.42 takes the rows buffer once at its largest, which left them unallocated sergiywith 2026-10-10 20:14:51 +03:00
  • 77c6991d18 prefill: the CPU share on NVFP4 experts - the CPU's rows take row_sd 1 (upstream's CPU share is the base) sergiywith 2026-10-06 05:37:46 +03:00
  • f235e394c1 Mixed expert formats: an NVFP4 projection beside another format in the same expert (e.g. NVFP4 gate/up + Q8_0 down) sergiywith 2026-10-02 01:06:15 +03:00
  • 37216b6e52 Prompt path: the MMQ group gather (upstream since 0.1.38) carries NVFP4 tails and zeroes the MMQ tail sergiywith 2026-10-01 15:58:58 +03:00
  • e51b4379dc NVFP4 routed experts: converter, pack, decode, prompt path, AVX-512 CPU rows sergiywith 2026-09-30 22:25:39 +03:00
  • 0601072dfc test_setup_strix_halo: gfx1103 is in the gfx11 WMMA list since the 780M change Niko1221 2026-10-12 20:19:49 +02:00
  • a5b3b6c27b Image generation: Qwen-Image-2.1-Turbo through stable-diffusion.cpp (POST /v1/images/generations) Niko1221 2026-10-12 20:18:33 +02:00
  • 852e0657c6 setup on macOS: rebuild the engine when its sources change (a digest of the source files, not the git commit: an unzipped copy has none); the Mac's own words for the sizes Niko1221 2026-10-12 20:06:02 +02:00
  • ceab2ce2b4 docs/MAC.md: Strata on a Mac - what it needs, memory per pack, setup, the measured numbers (M5 Max resident, M4 32 GB streaming), quality, limits, switches Niko1221 2026-10-12 20:03:23 +02:00
  • 93d7ceb91d setup on macOS: IQ3_S offered (recommended from 110 GB), streaming Macs configured without MTP Niko1221 2026-10-12 20:02:39 +02:00
  • ff0546db26 metal: serve - a new conversation resets the decode window; conversation checkpoints hold the window's state Niko1221 2026-10-12 20:02:39 +02:00
  • 14ba7a627a Model families: Qwen3.6-35B-A3B (qwen35moe) recognised, geometry and layout from the GGUF, no engine path yet Niko1221 2026-10-12 19:58:28 +02:00
  • f5914a1818 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) Niko1221 2026-10-12 19:45:09 +02:00
  • b6a2dacd86 Merge f-mac-kern b6480437 (IQ4_XS expert kernels: IQ3_S on Metal) Niko1221 2026-10-12 19:42:48 +02:00
  • 93e582d087 Merge f-mac-ssd f0609f40 (expert streaming from the SSD for Macs whose memory cannot hold the pack) Niko1221 2026-10-12 19:42:48 +02:00
  • b6480437d2 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 Niko1221 2026-10-12 19:41:13 +02:00
  • 5565a347de metal: M4 window GEMV probes - gemv_x (x staged in threadgroup memory), GEMV_PROBE (function constant 9) Niko1221 2026-10-12 19:38:29 +02:00
  • 37c3b38c26 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) Niko1221 2026-10-12 19:38:09 +02:00
  • a9edff4f80 setup on macOS: metal/setup_mac.py (Apple Silicon, the Metal engine built from source) Niko1221 2026-10-12 19:37:54 +02:00
  • a5d17ab0e3 metal: the draft vocabulary beside the draft layer (<mtp>/rt/draft_vocab.bin, setup's --draft-vocab) Niko1221 2026-10-12 19:37:54 +02:00
  • b66c61984b metal: serve ends cleanly after QUIT (Metal-only _Exit) Niko1221 2026-10-12 19:37:53 +02:00
  • 818845ea10 Merge commit 'a0116b27' into f-144-int Niko1221 2026-10-12 19:34:25 +02:00
  • e30cffb8f8 metal: stubs.cpp regenerated without cvec() (now in missing.cpp) Niko1221 2026-10-12 19:15:57 +02:00
  • f33434836a metal: serve - the empty control vector on Metal; a call stack on terminate Niko1221 2026-10-12 19:15:16 +02:00
  • 389c24eebd metal: router_route (mac-kern 3f9ca996) in the window, opt-in STRATA_METAL_ROUTE=1 Niko1221 2026-10-12 19:15:11 +02:00
  • be49de3e34 Merge f-mac-kern 3f9ca996 (router_route, gemv_cat, gr_norm_comb, Q3_K packed loads) Niko1221 2026-10-12 18:56:48 +02:00
  • 3f9ca99632 metal: decode T=2 items - router GEMV + moe_route in one dispatch (router_route), gemv_cat, gr_norm_comb, Q3_K packed loads Niko1221 2026-10-12 18:51:19 +02:00
  • 38cb85a8c3 metal: gdn_step's partial commit in the window (opt-in STRATA_METAL_PARTIAL=1) Niko1221 2026-10-12 18:45:58 +02:00
  • 3bbfa9e6e1 Merge f-mac-kern 56526aed (gdn_step partial commit) Niko1221 2026-10-12 18:40:05 +02:00
  • 56526aedc2 metal: gdn_step partial commit (commit = 0x100 | k): the state and conv history after the first k window tokens Niko1221 2026-10-12 18:39:03 +02:00
  • 39acb889cd metal: test tooling - STRATA_METAL_KPROF=T (the GPU time of each kernel class of a T-token window, alone) Niko1221 2026-10-12 18:31:58 +02:00
  • 4eca56f46a metal: --spec defaults to 2 on Metal builds (an explicit --spec N wins) Niko1221 2026-10-12 18:30:51 +02:00
  • f0609f40d4 Merge f-mac-kern 272bbbbd Niko1221 2026-10-12 18:26:09 +02:00
  • 54405425e0 metal: token_chain's --fuse in the decode window (GDN y prep in the step, no QSA selection within the budget) Niko1221 2026-10-12 18:24:20 +02:00
  • a26122339f Merge f-mac-kern 272bbbbd (M4 QSA prompt attention, mm_gu3 paired-run decode, chunked GDN scan) Niko1221 2026-10-12 18:20:49 +02:00
  • f159858146 metal: the prompt through mac-kern's prompt kernels (prefill hook) Niko1221 2026-10-12 18:20:40 +02:00
  • b174c71f86 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 Niko1221 2026-10-12 18:04:19 +02:00
  • 8b91c64483 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) Niko1221 2026-10-12 17:46:30 +02:00
  • 272bbbbd4a metal: chunked GDN scan (WY form, chunks of 32) - correct, slower in scalar fp32 than gdn_scan_r; kept, not used Niko1221 2026-10-12 17:32:53 +02:00
  • 072c19f60f 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 Niko1221 2026-10-12 17:23:39 +02:00
  • 41ffe3eef6 metal: prompts on the matrix units in the engine (prompt_chain's chunk on the window's state), SSD-streamed Niko1221 2026-10-12 17:18:46 +02:00
  • d9f4b16006 Merge f-mac-kern dbc2e2fd (M4 QSA prompt fixes) Niko1221 2026-10-12 16:58:49 +02:00
  • e00b29862b metal stream: read-ahead two layers ahead (STRATA_METAL_PREFETCH2), most likely first; leave-one-class-out timing (STRATA_METAL_SKIP), window timings per T, STRATA_METAL_GEMV_NR, runtime allocation log Niko1221 2026-10-12 16:58:49 +02:00
  • dbc2e2fd8f metal: QSA prompt attention correct on the M4 (K = 32 runs, threadgroup-staged store, fresh per-chunk accumulator) Niko1221 2026-10-12 16:57:55 +02:00
  • 6294f3468f Merge f-mac-compat 68387f1a Niko1221 2026-10-12 16:51:03 +02:00
  • a6e55d062e metal: SSD-streaming expert arena for Macs whose memory cannot hold the model (the M4 32 GB) Niko1221 2026-10-12 16:50:18 +02:00
  • 68387f1a08 Merge f-mac-kern 6f6c555b (prompt experts / QSA on matrix-unit operands, COOP_K4) Niko1221 2026-10-12 16:45:43 +02:00
  • 6f6c555b17 metal: COOP_K4 (function constant 7) - per-element right-input decode for GPUs without the M5's layout (the M4) Niko1221 2026-10-12 16:36:08 +02:00