Skip to content

Releases

XeonLLM 0.2.7 (no-AVX2, AVX1 engine)

Choose a tag to compare

@SamerKharboush SamerKharboush released this 02 Dec 14:14

XeonLLM 0.2.7 (no-AVX2, AVX1 engine)

Summary

0.2.7 is a decode-and-app release for the 64-lane FirePro D700 (GCN, wave64) cards: with a q8_0 KV cache (opt-in), head-128 flash-attention decode on wave64 at a KV length of 3072 or more takes the four-way split that f16 already takes, the app's DFlash "Auto" no longer turns the draft on for a MoE whose experts run on the host (--n-cpu-moe), and the engine log now records free and inactive memory at each launch and the exit reason, with a silent startup exit relaunched once. The default KV cache stays f16; q8_0 is for fitting a longer context. A fork of ToshLLM by Engelbert Delgado, maintained by Samer Kharboush at https://github.com/SamerKharboush/xeonllm. Site: https://samerkharboush.github.io/xeonllm-site/. Built and measured on a Mac Pro 6,1: Xeon E5-2697 v2 (AVX, no AVX2/FMA), 64 GB, 2x FirePro D700, macOS 15.8. The llama.cpp series is 146 patches on the pin d81235049; the new one is metal/0135.

Changed

Decode on a wave64 card at a KV length of 3072 or more, head-128 flash attention, q8_0 K/V (opt-in), the 0135 engine against the 0.2.6 engine: Qwen3-4B Q4_K_M (q8_0 KV) 12.880/12.893 against 12.616/12.616 t/s and Qwen3-8B Q4_K_M (q8_0 KV) 11.540/11.534 against 11.389/11.378 t/s at context depth 4096. Method: dev build, engine v0.2.6-q8rows-avx1 (the 0135 tree, pin d81235049), card 1, XEON_FA_AMD=1, llama-bench -ngl 99 -fa 1 -ub 128 -r 2, 2 rounds reversed, t/s r1/r2; SHIP is the shipped 0.2.6 engine. On the shipped 0.2.7 engine (pin d81235049 + 146 patches, AVX1), Qwen3-4B Q4_K_M with -ctk q8_0 -ctv q8_0, llama-bench -ngl 99 -p 0 -n 128 -r 2 -fa 1 -d 4096 -ub 128, alternating, 2 rounds: default 12.891/12.897 against 12.621/12.618 t/s with XEON_FA_VEC_NWG=1 (gates-v027/R2-RESULT.md, gates-v027/gates-proofs13.log). The q8_0 term applies only at ne11 >= 3072; below 3072 nothing changes, because the plain two-row form read lower at d2048 on 4B and is not used (d2048 prints no _rows2/_g4 line). The q8_0 two-row kernel runs only under the exact conditions of the four-way split (one query row, no sinks, no shape switch that has no q8_0 twin); a first 0.2.7 build lacked the one-row condition, so DFlash draft verification batches (which always use a q8_0 cache) took the slow two-row form, and R3 caught it (flint with the draft 0.14-0.34 t/s). Fixed before release; R2 now also checks 16-row batches at depth 4096 (the draft verification shape): q8_0 16.788 t/s by default against 16.788 with XEON_FA_VEC_NWG=1, f16 17.204 against 17.200 (shipped 0.2.7 engine, card 1, Qwen3-4B Q4_K_M, llama-bench -ngl 99 -fa 1 -d 4096 -p 16 -n 0 -ub 16 -r 2). The default KV cache stays f16, because f16 decodes faster than q8_0 on these cards at both depths on both models: 4B 16.485/16.480 (d2048) and 15.350/15.359 (d4096), 8B 14.425/14.456 and 13.503/13.502 t/s (ticket 20's f16 numbers); q8_0 is for fitting a longer context.

  • The other decode defaults are unchanged since 0.2.6 (SMALLM, the fusions F1/F2/F3, Q4_K V3, the Q6_K repack, FA two-rows, the 0128 G=4), and R2 confirms each still takes effect.

DFlash "Auto" stays off for a MoE whose experts run on the host (ticket 22): Auto now requires a full-GPU plan (Sources/Hardware/DflashPolicy.swift autoEligible = !(isMoE && ncmoe > 0)), so a MoE launched with --n-cpu-moe or manual host experts leaves the draft off; "Forced" is unchanged and still drafts, and the Dynamic MoE plan already added a draft only on a full-GPU plan (Sources/Servers/Server.swift draftAllowed; Sources/Servers/Server.swift:463, per ticket 22). Why: flint with host experts, draft on vs off (ticket 17 / 0.2.6 notes): no draft 15.17 t/s (624-token prompt 77.17 t/s, 256 tokens 15.08 t/s, tools get_weather 15.73 t/s), DFlash draft the same answers and tool call 12.63 / 13.23 / 14.79 t/s (accepted 7/15, 55/99, 2/3); two observations, not a ratio: on this hardware the DFlash draft arm read lower than no draft for flint. Method: dev build, engine v0.2.6-rc-avx1 (pin d81235049 + 145 patches, AVX1), card 1, --jinja, -c 16384, --dynamic-moe on, one launch per arm, server timings, all reasoning at max_tokens 256.

Not changed, measured: the Dynamic MoE plan keeps f16 for flint (ticket 23): letting the plan use q8_0 KV gives the experts more card memory (arena 1473 MiB against 1003 MiB) but decodes lower (13.78/13.37/14.13 against 15.69/15.35/15.95 t/s); the planner keeps choosing f16 for flint. Method: engine v0.2.6-q8rows-avx1 (0135 in), card 1, flint-UD-Q5_K_XL, -c 32768, --dynamic-moe on, --jinja, one launch per arm, server timings, greedy. A first attempt passed -ctk q8_0, which the plan overrides; XEON_AUTO_KV=q8_0 is the switch that takes effect.

Added

No new architecture, kernel or app feature this release; the q8_0 KV candidate for the Dynamic MoE plan was measured and left unchanged (ticket 23, under Changed).

Fixed

  • The engine log now records the launch memory and the exit reason, and a silent early exit is retried once (ticket 21): at each launch the log records free and inactive memory (engine launch: free … MiB, inactive … MiB), and when the engine exits it records whether it exited or died on a signal, the status, the uptime and the state (engine exited: reason …, status …, uptime … s, state …). An engine that exits silently (status 0) or dies on a signal (not a stop: not SIGTERM/SIGKILL) before it ever served is relaunched once (engine exited during startup; retrying once); ordinary load failures keep their existing handling (the projector retry, the layer-split fallback, the diagnosis). A user Stop is not retried. (Sources/Servers/Server.swift, Sources/Servers/Stats.swift.)

Known issues

  • F3 does not help on a tensor split. With XEON_MTL_FUSE_ADD_NORM on, a two-card tensor split folds the same residual adds as before but decodes no faster: Qwen3-14B Q4_K_M tensor split tg128 10.951/10.950 t/s default against 10.966/10.972 with F3 off (method in 0.2.3's notes, metal/0121). The armed adds are exactly the ones F3 now declines.
  • The fused-vs-unfused QVK text note. With XEON_QVK_Q4K_W64_FUSE=1 (the 0.2.1 fused path) the text is not identical on every prompt: on the 256-token BST prompt the default and the fused arm split after about 375 characters, both coherent (a near-tie flip, different summation order). The 0.2.1 shipped engine's text on the same request is byte-identical to the 0.2.2 default, so the shipped default keeps 0.2.1's text; the opt-out arm does not. Method: shipped 0.2.2 engine, Qwen3-4B Q4_K_M, card 1, server, 256-token greedy, gates-v022/R2-RESULT.md.
  • The Q4_K repack (XEON_Q4K_REPACK=1) loses decode and stays off by default; see 0.2.2's Added for the numbers. A per-phase choice (repack for prefill, canonical for decode) would need two copies of the weights, which doubles VRAM against the 5.9 GB per-card limit, so it is not pursued.
  • The first request after a launch can still differ with "Repeatable answers" on; its cause was not identified. The app's warm-up takes that request, so later prompts repeat. Two cards and contexts above 16384 were not measured with that setting. (Carried from 0.2.1; moe/0106 is unchanged, so both still hold.)
  • A larger Dynamic MoE expert arena slows the DFlash draft on the 35B (ticket 28). The plan sizes the arena from free VRAM at launch; with about 1 GB more free on card 0 it gave the experts 1757 instead of 723 MiB, and the 35B Q6_K two-card draft arm decoded 8.29/8.25/8.45 t/s against 13.25/13.63/13.46 in 0.2.6's R3. The 0.2.6 engine reads the same in that state (7.14/7.89/6.92 against 0.2.7's 7.89/7.14/6.84, back to back, one launch each), so it is not a 0.2.7 change. Without the draft the 35B is unchanged (about 18 t/s on one card). Under investigation; until then, the draft is off by default for host-expert MoE (ticket 22).
  • A rare silent server exit right after Metal init was seen twice on the 35B Q6_K (the app now logs free and inactive memory at each launch and, when the engine exits, whether it exited or died on a signal, the status, uptime and state, and retries once; ticket 21 stays on watch).
  • MCPStdioTransportTests.testAnswersRacingTheirDeadlinesResolveEachRequestOnce remains a known intermittent race (R1: 2 failures in that one test, both assertions the known race, 1 unexpected; R5).

Updating

0.2.6 users get 0.2.7 from the About page: in-app updates are on in this build, and the DMG carries no XEONUpdatesDisabled key. The installer checks the DMG checksum before swapping the app.

Gates

The gates ran once each, except where the draft regression required the fix to be re-gated (below). R1 and R2 passed on the final binaries: patch series 146/146 on d81235049, 0 AVX2/FMA mnemonics in every Mach-O, swift test 698 executed (18 skipped) with only the known MCPStdioTransportTests race, ops 14038/14038 on each card (FA 1999/1999 each), prefill bands rc=0 with the Bonsai tensor split handled at exit 86, test-engine OK, MCP cancel 20/20, the 0078 repro at 200 with no timeouts, and the 0.2.6 DMG unchanged (R1 dist-before/after.sha256, checksums.txt, checksums-v0.2.6.txt, v0.2.6-notes.md unchanged). The proofs12 expectations were met, and proofs13 met 0135's selection (_rows2_g4 0 at d2048, 1 at d4096, 0 at d4096 with XEON_FA_VEC_NWG=1; kernel not found 0 in all three runs) and the ticket-21 app strings ('engine launch: free' and 'engine exited during startup; retrying once'); the 0135 figure is the shipped one quoted in Changed. No new crash reports; R2's DiagnosticReports are unchanged.

R3 (the stress set on the app's launch): groups A and B rc=0 with only 0.2.6's text classes, 0 kernel not found, one engine launch: free line per app launch and 0 startup-exit retries. Group C found the draft regression above; after the fix and a full rebuild, R2's FA op tests (2000/...

Read more

XeonLLM 0.2.6 (no-AVX2, AVX1 engine)

Choose a tag to compare

@SamerKharboush SamerKharboush released this 01 Dec 20:49

XeonLLM 0.2.6 (no-AVX2, AVX1 engine)

Summary

0.2.6 is a model-architecture release for the 64-lane FirePro D700 (GCN, wave64) cards: it adds the Flint MoE architecture, which loads through the Dynamic MoE plan (the experts on the host, the rest on the card), and at a KV length of 3072 or more the head-128 flash-attention decode now takes the four-way KV split (0.2.5's G=4) instead of the wg32 form that 0.2.5 still picked for some models. It also adds the off-by-default wide-head (dk256/dk512) decode twins used for the sweep, fixes the flash-attention lookups of kernel variants that do not exist (wide heads, and q8_0/quantised KV such as a DFlash draft's q8_0 cache), and ports the ToshLLM 0.88.1-0.88.2 fixes (credit ToshLLM). A fork of ToshLLM by Engelbert Delgado, maintained by Samer Kharboush at https://github.com/SamerKharboush/xeonllm. Site: https://samerkharboush.github.io/xeonllm-site/. Built and measured on a Mac Pro 6,1: Xeon E5-2697 v2 (AVX, no AVX2/FMA), 64 GB, 2x FirePro D700, macOS 15.8. The llama.cpp series is 145 patches on the pin d81235049; the new ones are metal/0129, model/0130, metal/0131, moe/0132 and metal/0134.

Large MoE

ornith-1.0-35b Q6_K runs at a 131072 context across both cards (plan PLAN_FULL_HOST_DMOE; one card says PLAN_UNSUPPORTED at that context). 636-token prompt 61.92 t/s, 256 tokens 14.92 t/s. Method: XeonLLM 0.2.5 shipped server, both cards, -c 131072, --dynamic-moe on, one launch. Not a change in 0.2.6.

Changed

Decode on a wave64 card at a KV length of 3072 or more, head-128 flash attention, the new default against the 0.2.5 path on the same shipped engine: Qwen3-0.6B Q8_0 48.81/48.77 t/s by default against 40.25/40.25 t/s with XEON_FA_VEC_NWG=1 (the 0.2.5 wg32 form), tg128, at context depth 4096. When the 0128 four-way split would apply (ne11 >= 3072, head 128, f16 K/V) and the head-128 wg32 form was chosen only by the dk128 threshold, the host now looks up the four-way _rows2_g4 twin and takes it, where 0.2.5 still ran the wg32 form for some models (e.g. Qwen3-0.6B, whose head-shape wg32 threshold of 3584 for 16 heads / 8 KV heads sits below the 4096 depth measured); an explicit XEON_FA_WG_DK128_MIN_KV still wins, XEON_FA_VEC_ROWS=1 keeps wg32, and XEON_FA_VEC_NWG=1 restores the 0.2.5 behaviour exactly. Method: the shipped 0.2.6 engine (pin d81235049 + 145 patches, AVX1), card 1, XEON_FA_AMD=1, Qwen3-0.6B Q8_0, llama-bench -ngl 99 -p 0 -n 128 -r 2 -fa 1 -d 4096 -ub 128, 2 rounds, warmup discarded by llama-bench; the control is XEON_FA_VEC_NWG=1 on the same engine (gates-v026/R2-RESULT.md). Depths above 4096 were not measured.

  • The other decode defaults are unchanged since 0.2.5 (SMALLM, the fusions F1/F2/F3, Q4_K V3, the Q6_K repack, FA two-rows, the 0128 G=4), and R2 confirms each still takes effect.

Added

  • The Flint MoE architecture (model/0130, backport of upstream ggml-org/llama.cpp a37cc46104 "models : add Flint model (FlintForCausalLM) (#30928)" plus the jinja hex-escape fix 9febe63d5a, so flint's chat template parses with --jinja). Flint is a 49-layer MoE (256 experts x 512, 6 used, 2 shared, 2 leading dense blocks; 32 heads / 4 KV heads, head 128, SWA 513 on most layers). flint-UD-Q5_K_XL (29.9 GB) loads through the Dynamic MoE plan (experts on the host, the rest on the card). Dev build, engine v0.2.6-rc-avx1 (pin d81235049 + 145 patches, AVX1), card 1, --jinja, -c 16384, --dynamic-moe on, one launch per arm, server timings, all reasoning at max_tokens 256: no draft "The capital of France is Paris." 15.17 t/s, 624-token prompt 77.17 t/s, 256 tokens 15.08 t/s, tools get_weather 15.73 t/s; DFlash draft the same answers and tool call, 12.63 / 13.23 / 14.79 t/s (accepted 7/15, 55/99, 2/3). Two observations, not a ratio: on this hardware the DFlash draft arm read lower than no draft for flint. Tool calls work (XML tool-call format, get_weather). The app runs flint without the draft: on the Dynamic MoE plan it adds a draft model only to a full-GPU plan (Server.swift, draftAllowed), so the app's launch is the no-draft arm. Shipped 0.2.6 app, R3 (card 1, -c 32768, 64 tokens per band, server timings, one launch per arm), bands of 16/1100/4200 tokens: no draft decode 15.72/14.86/14.02 t/s (prompt 31.56/78.95/68.44); with the DFlash draft decode 12.05/11.65/11.06 t/s (prompt 21.82/65.44/58.54), draft acceptance 39/46, 26/36, 20/30.
  • Wide-head (dk256/dk512) flash-attention decode twins behind XEON_FA_WIDE_NWG=2/4/8, XEON_FA_WIDE_ROWS=1 and XEON_FA_WIDE_MIN_KV (metal/0131), off by default (the default stays wg32; XEON_FA_WIDE_MIN_KV defaults to 1024). For diagnosis. The 0131 header's sweep result (engine v0.2.5-wide-avx1, pin d81235049 + 142 patches, AVX1, card 1, XEON_FA_AMD=1, Ornith-1.5-9B IQ3_M, llama-bench -ngl 99 -p 0 -n 64 -r 2 -fa 1 -ub 128, 2 rounds, warmup discarded), in one sentence: "At d4096 no twin beats it; at d1024 G4/G8 read higher in both rounds, but d2048 and the crossover are unmeasured, the model's attention share is 8 of 33 layers, and dk512 has no model on hand, so the switches stay opt-in for diagnosis."

Fixed

  • The engine no longer looks up flash-attention kernel variants that do not exist (metal/0131 + metal/0134): the wide-head (dk256/dk512) and q8_0/quantised-KV (such as a DFlash draft's q8_0 cache) paths no longer ask for _rows2/_rows2_gG twins that are instantiated for f16 K/V only, so the "kernel not found in any metal library" error lines are gone from those loads. Selection is unchanged (f16 K/V behaves exactly as before; the default wide-head selection is still wg32).
  • Ported from ToshLLM 0.88.1-0.88.2 (credit ToshLLM; moe/0132 and the server changes): a Dynamic MoE layer whose expert banks the card has no batched multiply kernel for stays on the host instead of failing; the chat watchdog counts tool-call argument streaming as progress, so long tool calls are no longer cut off as stalled; the server log says which limit stopped the engine; the default reply length is now 8192 tokens (was 2048), which also raises the default for the web/API path — a value the user set is kept.

Known issues

  • F3 does not help on a tensor split. With XEON_MTL_FUSE_ADD_NORM on, a two-card tensor split folds the same residual adds as before but decodes no faster: Qwen3-14B Q4_K_M tensor split tg128 10.951/10.950 t/s default against 10.966/10.972 with F3 off (method in 0.2.3's notes, metal/0121). The armed adds are exactly the ones F3 now declines.
  • The fused-vs-unfused QVK text note. With XEON_QVK_Q4K_W64_FUSE=1 (the 0.2.1 fused path) the text is not identical on every prompt: on the 256-token BST prompt the default and the fused arm split after about 375 characters, both coherent (a near-tie flip, different summation order). The 0.2.1 shipped engine's text on the same request is byte-identical to the 0.2.2 default, so the shipped default keeps 0.2.1's text; the opt-out arm does not. Method: shipped 0.2.2 engine, Qwen3-4B Q4_K_M, card 1, server, 256-token greedy, gates-v022/R2-RESULT.md.
  • The Q4_K repack (XEON_Q4K_REPACK=1) loses decode and stays off by default; see 0.2.2's Added for the numbers. A per-phase choice (repack for prefill, canonical for decode) would need two copies of the weights, which doubles VRAM against the 5.9 GB per-card limit, so it is not pursued.
  • The first request after a launch can still differ with "Repeatable answers" on; its cause was not identified. The app's warm-up takes that request, so later prompts repeat. Two cards and contexts above 16384 were not measured with that setting. (Carried from 0.2.1: moe/0106 is unchanged in 0.2.6, so both still hold.)
  • A rare silent server exit right after Metal init was seen twice on the 35B Q6_K (relaunch works; under investigation).
  • MCPStdioTransportTests.testAnswersRacingTheirDeadlinesResolveEachRequestOnce remains a known intermittent race (R1: 2 assertion failures in one test, all the known race; R5).

Updating

0.2.5 users get 0.2.6 from the About page: in-app updates are on in this build, and the DMG carries no XEONUpdatesDisabled key. The installer checks the DMG checksum before swapping the app.

Gates

The gates ran once each, with no failures and no reruns. R1 and R2 passed on the final binaries: patch series 145/145 on d81235049, 0 AVX2/FMA mnemonics in every Mach-O, swift test 697 executed (18 skipped) with only the known MCPStdioTransportTests race, ops 14034/14034 on each card (FA 1995/1995 each), prefill bands rc=0 with the Ternary-Bonsai tensor split handled at exit 86, test-engine OK, MCP cancel 20/20, the 0078 repro at 200 with no timeouts, and the 0.2.5 DMG unchanged. The proofs12 expectations were met: 0129 tg128 default 48.81/48.77 against 40.25/40.25 t/s with XEON_FA_VEC_NWG=1, _rows2_g4 lines 2/0 and not found 0/0; 0131/0134 0 kernel not found on the wide-head and q8_0-KV loads, XEON_FA_WIDE_NWG=4 printing fa-vec-wide: nwg 4; the 0132 guard in the build tree; flint PLAN_FULL_HOST_DMOE, "Paris", tool_calls get_weather. No new crash reports.

R3 (the stress set on the app's launch, one run): groups A/B/C rc=0, no new crash reports, 0 kernel not found lines in every stress server log; text against 0.2.5 shows only the classes 0.2.5's R3 already had (two-card tensor-vs-layer near-tie flips, the 14B band8300 context cells, the 35B Dynamic MoE not being bit-reproducible); the new flint row passed all 12 cells on each of the app launch, the draft arm and the layer arm.

R5 (the app gates on the DMG, one run): the mounted DMG carries dev.xeonllm.app 0.2.6 with XEONNoAVX2 true and no XEONUpdatesDisabled key, codesign verifies, and its app is identical to the built one; the updater end-to-end tests ran 13 with 0 failures; a real chat in the built app answered "The capital of France is Paris." and the too...

Read more

XeonLLM 0.2.5 (no-AVX2, AVX1 engine)

Choose a tag to compare

@SamerKharboush SamerKharboush released this 01 Dec 04:06

XeonLLM 0.2.5 (no-AVX2, AVX1 engine)

Summary

0.2.5 is a deep-decode release for the 64-lane FirePro D700 (GCN, wave64) cards: at a KV length of 3072 or more the flash-attention decode kernel splits the KV cache four ways across workgroups and merges the partial results with the existing split-reduce path; below 3072 nothing changes (the same kernel as 0.2.4). It also adds the off-by-default shape switches used for the sweep and fixes a past-the-end V read in the two-rows loop. A fork of ToshLLM by Engelbert Delgado, maintained by Samer Kharboush at https://github.com/SamerKharboush/xeonllm. Site: https://samerkharboush.github.io/xeonllm-site/. Built and measured on a Mac Pro 6,1: Xeon E5-2697 v2 (AVX, no AVX2/FMA), 64 GB, 2x FirePro D700, macOS 15.8. The llama.cpp series is 140 patches on the pin d81235049; the new ones are metal/0126, 0127 and 0128.

Changed

Decode on a wave64 card at a KV length of 3072 or more, the new default against the 0.2.4 path on the same shipped engine: Qwen3-4B Q4_K_M 15.362-15.367 t/s by default against 14.983-14.990 t/s with XEON_FA_VEC_NWG=1 (the 0.2.4 path), at context depth 4096. The KV cache is split four ways across workgroups and the partial results are merged with the existing split-reduce path. Below 3072 nothing changes (the same kernel as 0.2.4). At depth 2048 the shipped default does not select the split (0 pipeline lines). Method: the shipped 0.2.5 engine (pin d81235049 + 140 patches, AVX1), card 1, XEON_FA_AMD=1, llama-bench -ngl 99 -p 0 -n 128 -r 3 -fa 1 -d 4096 -ub 128, 3 alternating rounds, warmup discarded by llama-bench, ranges across rounds; the control is XEON_FA_VEC_NWG=1 (the 0.2.4 path) on the same engine (gates-v025/R2-RESULT.md).

Method for every figure below: dev build, engine v0.2.4-0128-avx1 (pin d81235049 + 140 patches, AVX1), card 1, XEON_FA_AMD=1, llama-bench -ngl 99 -p 0 -n 128 -r 2 -fa 1 -d D -ub 128, 2 rounds with the arms rotated, warmup discarded by llama-bench, Qwen3-4B Q4_K_M unless stated (metal/0128 for the dev-build figures).

  • Four-way KV split for deep flash-attention decode on wave64 (metal/0128 + metal/0126; opt-out XEON_FA_VEC_NWG=1). At a KV length of 3072 or more the kernel splits the KV cache four ways across workgroups and merges the partial results with the existing split-reduce path; below 3072 the same kernel as 0.2.4 runs. It applies with the app's XEON_FA_AMD=1 path; these are environment switches on the same engine, not separate builds. Dev build, Qwen3-4B Q4_K_M, XEON_FA_VEC_NWG=1 against the default: d2048 16.514/16.511 against 16.501/16.509 t/s, d3072 15.706/15.708 against 15.948/15.952, d4096 14.991/14.991 against 15.367/15.363; Qwen3-8B Q4_K_M d4096 13.224/13.227 against 13.496/13.496. At d2048 the shipped default does not select the split (0 pipeline lines), and d2048 is the same kernel on both arms. Depths above 4096 were not measured.
  • The other decode defaults are unchanged since 0.2.4 (SMALLM, the fusions F1/F2/F3, Q4_K V3, the Q6_K repack, FA two-rows), and R2 confirms each still takes effect.

Added

  • XEON_FA_VEC_SUBW=16 and XEON_FA_VEC_NWG=2/4/8 (metal/0126), off by default. Shape switches for the same flash-attention vec_amd decode kernel, the sweep that found the metal/0128 default; they are for diagnosis. XEON_FA_VEC_SUBW=16 was slower at every depth; XEON_FA_VEC_NWG=2 was slower than XEON_FA_VEC_NWG=4.

Fixed

  • A past-the-end row in the two-rows decode loop read V from one row past the end of the KV range (metal/0127). Its weight was zero, but a NaN in that memory would have poisoned the sum: 0 x NaN = NaN. The read now goes to row 0. It was found by the FLASH_ATTN_EXT test at kv=113 during the metal/0126 sweep. The cost is at the edge of run noise (0.006-0.008 t/s, sd <= 0.007): dev build, engine v0.2.4-0127b-avx1 (pin d81235049 + 139 patches), card 1, XEON_FA_AMD=1, Qwen3-4B Q4_K_M, llama-bench -ngl 99 -p 0 -n 128 -r 2 -fa 1 -d D -ub 128, 2 rotated rounds, warmup discarded, control v0.2.4-0126c-avx1 (the 0.2.4 default kernel): d2048 16.511/16.512 against 16.517/16.518 t/s, d4096 14.990/14.989 against 14.997/14.998. The 256-token greedy texts were byte-identical.

Known issues

  • F3 does not help on a tensor split. With XEON_MTL_FUSE_ADD_NORM on, a two-card tensor split folds the same residual adds as before but decodes no faster: Qwen3-14B Q4_K_M tensor split tg128 10.951/10.950 t/s default against 10.966/10.972 with F3 off (method in 0.2.3's notes, metal/0121). The armed adds are exactly the ones F3 now declines.
  • The fused-vs-unfused QVK text note. With XEON_QVK_Q4K_W64_FUSE=1 (the 0.2.1 fused path) the text is not identical on every prompt: on the 256-token BST prompt the default and the fused arm split after about 375 characters, both coherent (a near-tie flip, different summation order). The 0.2.1 shipped engine's text on the same request is byte-identical to the 0.2.2 default, so the shipped default keeps 0.2.1's text; the opt-out arm does not. Method: shipped 0.2.2 engine, Qwen3-4B Q4_K_M, card 1, server, 256-token greedy, gates-v022/R2-RESULT.md.
  • The Q4_K repack (XEON_Q4K_REPACK=1) loses decode and stays off by default; see 0.2.2's Added for the numbers. A per-phase choice (repack for prefill, canonical for decode) would need two copies of the weights, which doubles VRAM against the 5.9 GB per-card limit, so it is not pursued.
  • The first request after a launch can still differ with "Repeatable answers" on; its cause was not identified. The app's warm-up takes that request, so later prompts repeat. Two cards and contexts above 16384 were not measured with that setting. (Carried from 0.2.1: moe/0106 is unchanged in 0.2.5, so both still hold.)
  • MCPStdioTransportTests.testAnswersRacingTheirDeadlinesResolveEachRequestOnce remains a known intermittent race (R1: 3 assertion failures in one test, all the known race; R5).

Updating

0.2.4 users get 0.2.5 from the About page: in-app updates are on in this build, and the DMG carries no XEONUpdatesDisabled key. The installer checks the DMG checksum before swapping the app.

Gates

The gates ran once each, with no failures and no reruns. R1 and R2 passed on the final binaries: patch series 140/140 on d81235049, 0 AVX2/FMA mnemonics in every Mach-O, swift test 695 executed with only the known MCPStdioTransportTests race, ops 14033/14033 on each card (FA 1994/1994 each, XEON_FA_AMD_DISABLE=1 0/0 as in 0.2.4: that filter selects no cases), 0 missing kernel names on both cards, prefill 18 rows rc=0 with the Ternary-Bonsai tensor split handled at exit 86, preflight with the drop-counter control reading 1, test-engine OK, MCP cancel 20/20, the 14B repro with no timeouts, and the 0.2.4 DMG unchanged.

R3 passed the stress set on the 0.2.5 app's own launch, both cards, on the final binaries. Every cell passed in tensor split, layer split and CPU-only for the eight dense models, except the 14B's 10683-token prompt, refused cleanly at its card-fit context of 10240 as in 0.2.0-0.2.4. Against 0.2.4, the compared answers of the dense models are byte-identical in every mode with two exceptions. The LFM3-1.7B tensor-split answer at the 8300 band differs, as it also did between 0.2.3 and 0.2.4. The Nemotron tensor-split answer at the 1100 band differs; one targeted rerun on a fresh 0.2.5 server with the app's flags (tensor split, draft model, cache reuse) and the same prompt sequence gave the 0.2.4 answer byte for byte, so this is run-to-run variation in that mode, not a change in the engine. The four-way split did not run in any stress cell: no prompt there sits between 3072 and the depth where the older 32-workgroup split takes over. Where that older split runs, 0.2.5 logs one harmless "kernel not found" line per server for a four-way variant that does not exist, and then runs the 0.2.4 kernel. The 35B (Dynamic MoE) is reported, not gated: all its cells passed except the tools cell in tensor split (no tool call in the answer; a draft-mode tools miss happened once before, in 0.2.3); its texts vary run to run as before. No new crash reports.

R5 passed the app gates on the final DMG: the mounted DMG's identity (dev.xeonllm.app 0.2.5, XEONNoAVX2 true, no XEONUpdatesDisabled), signature and layout, with its app identical to the gated dist/XeonLLM.app; the updater end-to-end suite (13/13); and one real chat in the built app on a test profile (LFM3-1.7B F16, both cards: "The capital of France is Paris.", plus a get_weather tool call; server log header "XeonLLM engine 0.2.5 (app 0.2.5)"). No new crash reports.

Checksums

DMG sha256: 1912b4042f870a659ee68f102d7b36fd5743abe9aa23f6446f305ab080ccbbe2.

XeonLLM 0.2.4 (no-AVX2, AVX1 engine)

Choose a tag to compare

@SamerKharboush SamerKharboush released this 30 Nov 09:33

XeonLLM 0.2.4 (no-AVX2, AVX1 engine)

Summary

0.2.4 is a decode-speed release for the 64-lane FirePro D700 (GCN, wave64) cards: the flash-attention decode kernel reads two KV-cache rows per lane per step, and the app's own launch (which sets XEON_FA_AMD=1) gets it without further environment variables. It also adds the per-piece ablation switch those measurements were taken with. A fork of ToshLLM by Engelbert Delgado, maintained by Samer Kharboush at https://github.com/SamerKharboush/xeonllm. Site: https://samerkharboush.github.io/xeonllm-site/. Built and measured on a Mac Pro 6,1: Xeon E5-2697 v2 (AVX, no AVX2/FMA), 64 GB, 2x FirePro D700, macOS 15.8. The llama.cpp series is 137 patches on the pin d81235049; the new ones are metal/0123, 0124 and 0125.

Changed

Decode on a wave64 card, the new default against the 0.2.3 decode path on the same shipped engine: Qwen3-4B Q4_K_M 16.420-16.424 t/s with XEON_FA_VEC_ROWS=1 (the 0.2.3 path) against 16.511-16.513 t/s by default, at context depth 2048. The shipped 0.2.3 engine itself was not re-run. Method: the shipped 0.2.4 engine (pin d81235049 + 137 patches, AVX1), card 1, XEON_FA_AMD=1, llama-bench -ngl 99 -p 0 -n 128 -r 3 -fa 1 -d 2048 -ub 128, 3 alternating rounds, warmup discarded by llama-bench, ranges across rounds; the control is XEON_FA_VEC_ROWS=1 (the 0.2.3 path) on the same engine. Text: 256-token greedy text identical with XEON_FA_VEC_ROWS=1.

Method for every figure below: dev build, engine v0.2.3-0124-avx1 (pin d81235049 + 136 patches, AVX1), card 1, XEON_FA_AMD=1, llama-bench -ngl 99 -p 0 -n 128 -r 2 -fa 1 -d D -ub 128, 2 rounds with the arms rotated, warmup discarded by llama-bench, Qwen3-4B Q4_K_M unless stated (gates-v024 R2 for the shipped figure, metal/0124 for the dev-build figures).

  • Two KV-cache rows per lane in the flash-attention decode kernel on wave64 (metal/0124, default by metal/0125; opt-out XEON_FA_VEC_ROWS=1). Each simdgroup iteration reads two KV-cache rows per lane, all K and V loads issued before any dot or FMA, so the two rows' memory latency overlaps; the rows a lane owns and the merge are unchanged, and the one batched online-softmax update is the only numerical difference (inside the FLASH_ATTN_EXT tolerance). It applies with the app's XEON_FA_AMD=1 path; any other shape keeps the plain pipeline. XEON_FA_VEC_ROWS=4 exists and is slower (register pressure). The gain grows with context length and is level at an empty context. Qwen3-4B Q4_K_M, XEON_FA_VEC_ROWS=1 against the default two rows: d0 18.311/18.329 against 18.301/18.305 t/s, d2048 16.423/16.421 against 16.532/16.529, d4096 14.814/14.817 against 15.018/15.019; Qwen3-8B Q4_K_M d2048 14.343/14.369 against 14.491/14.490. Depths above 4096 were not measured. 256-token greedy text identical both ways.
  • The other decode defaults are unchanged since 0.2.3 (SMALLM, the fusions F1/F2/F3, Q4_K V3, the Q6_K repack), and R2 confirms each still takes effect.

Added

  • XEON_FA_VEC_ABLATE=N (metal/0123), off by default. A diagnostic timing switch inside the flash-attention vec_amd decode kernel: N in 1..6 removes one piece of the per-row loop — 1 the Q.K dot, 2 the softmax exp/rescale, 3 the V accumulation, 4 the K and V loads, 5 the vec_reduce_dv dispatch, 6 the merge — each as its own pipeline variant, so a timing difference attributes the cost. Output is garbage while it is set, so only timing is read. One stderr line per name at pipeline creation; the twins exist for the dk128 f16 wave64 family only, any other shape keeps the plain pipeline. Unset or 0 is byte-identical to the default.

Known issues

  • F3 does not help on a tensor split. With XEON_MTL_FUSE_ADD_NORM on, a two-card tensor split folds the same residual adds as before but decodes no faster: Qwen3-14B Q4_K_M tensor split tg128 10.951/10.950 t/s default against 10.966/10.972 with F3 off (method in 0.2.3's notes, metal/0121). The armed adds are exactly the ones F3 now declines.
  • The fused-vs-unfused QVK text note. With XEON_QVK_Q4K_W64_FUSE=1 (the 0.2.1 fused path) the text is not identical on every prompt: on the 256-token BST prompt the default and the fused arm split after about 375 characters, both coherent (a near-tie flip, different summation order). The 0.2.1 shipped engine's text on the same request is byte-identical to the 0.2.2 default, so the shipped default keeps 0.2.1's text; the opt-out arm does not. Method: shipped 0.2.2 engine, Qwen3-4B Q4_K_M, card 1, server, 256-token greedy, gates-v022/R2-RESULT.md.
  • The Q4_K repack (XEON_Q4K_REPACK=1) loses decode and stays off by default; see 0.2.2's Added for the numbers. A per-phase choice (repack for prefill, canonical for decode) would need two copies of the weights, which doubles VRAM against the 5.9 GB per-card limit, so it is not pursued.
  • The first request after a launch can still differ with "Repeatable answers" on; its cause was not identified. The app's warm-up takes that request, so later prompts repeat. Two cards and contexts above 16384 were not measured with that setting. (Carried from 0.2.1: moe/0106 is unchanged in 0.2.4, so both still hold.)
  • MCPStdioTransportTests.testAnswersRacingTheirDeadlinesResolveEachRequestOnce remains a known intermittent race (R1: 3 assertion failures in one test, all the known race; R5).

Updating

0.2.3 users get 0.2.4 from the About page: in-app updates are on in this build, and the DMG carries no XEONUpdatesDisabled key. The installer checks the DMG checksum before swapping the app.

Gates

The gates ran once each, with no failures and no reruns. R1 and R2 passed on the final binaries: patch series 137/137 on d81235049, 0 AVX2/FMA mnemonics in every Mach-O, swift test 695 executed with only the known MCPStdioTransportTests race, ops 14032/14032 on each card (FA 1993/1993 each, XEON_FA_AMD_DISABLE=1 0/0 as in 0.2.3: that filter selects no cases), 0 missing kernel names on both cards, prefill bands 16..2048 every row rc=0 with the Ternary-Bonsai tensor split handled at exit 86, preflight with the drop-counter control reading 1, test-engine OK, MCP cancel 20/20, the 14B repro with no timeouts, and the 0.2.3 DMG unchanged.

R3 passed the stress set on the 0.2.4 app's own launch, both cards, on the final binaries. Every cell passed in tensor split, layer split and CPU-only for the eight dense models, except the 14B's 10683-token prompt, refused cleanly at its card-fit context of 10240 as in 0.2.0-0.2.3. Against 0.2.3, the compared answers (prompt bands 16, 300 and 1100) of all eight dense models are byte-identical in every mode, so the two-row default changed no answer in the set. Layer and tensor split still differ on the one Qwen3-0.6B band16 prompt traced in 0.2.3 (an F2 near tie). The 35B (Dynamic MoE) is reported, not gated: all its cells passed, including every tools cell (0.2.3's one draft-mode miss did not recur); its texts vary run to run as before. No new crash reports.

R5 passed the app gates on the final DMG: the mounted DMG's identity (dev.xeonllm.app 0.2.4, XEONNoAVX2 true, no XEONUpdatesDisabled), signature and layout, with its app identical to the gated dist/XeonLLM.app; the updater end-to-end suite (13/13) including a real install of this DMG into a temporary target; and one real chat in the built app on a test profile (LFM3-1.7B F16, both cards: "The capital of France is Paris.", plus a get_weather tool call; server log header "XeonLLM engine 0.2.4 (app 0.2.4)"). No new crash reports.

Checksums

DMG sha256: 3d65770e1e4188bc5c97508dd9d51bcef144f4826c6c4b7241fd65e1fb8cb660.

XeonLLM 0.2.3 (no-AVX2, AVX1 engine)

Choose a tag to compare

@SamerKharboush SamerKharboush released this 29 Nov 21:35

XeonLLM 0.2.3 (no-AVX2, AVX1 engine)

Summary

0.2.3 is a decode-speed release for the 64-lane FirePro D700 (GCN, wave64) cards: the small-m Q4_K decode path and three small-op decode fusions become the default, so a stock launch gets them without environment variables. It also adds the CPU-timed per-op decode profile and the op-ablation switch the measurements were taken with, and it fixes the two defects those measurements' own gates found before shipping. A fork of ToshLLM by Engelbert Delgado, maintained by Samer Kharboush at https://github.com/SamerKharboush/xeonllm. Site: https://samerkharboush.github.io/xeonllm-site/. Built and measured on a Mac Pro 6,1: Xeon E5-2697 v2 (AVX, no AVX2/FMA), 64 GB, 2x FirePro D700, macOS 15.8. The llama.cpp series is 134 patches on the pin d81235049; the new ones are metal/0114, 0115, 0117, 0118, 0119, 0120, 0121, 0122 and moe/0116.

Changed

Decode on a wave64 card, against the shipped 0.2.2 engine: Qwen3-8B Q4_K_M 14.731-14.734 -> 15.357-15.380 t/s, Qwen3-4B Q4_K_M 17.527-17.580 -> 18.285-18.349 t/s. Method: the shipped 0.2.2 engine (pin d81235049 + 125 patches) against the shipped 0.2.3 engine (+ 134 patches), both AVX1, card 1, llama-bench -ngl 99 -p 0 -n 128 -r 3 -fa 1, default context, 3 rounds alternating which engine runs first, warmup discarded by llama-bench; ranges are across rounds. Text: Qwen3-8B's stress-set answers are byte-identical to 0.2.2's in all 39 rows (R3), and its 256-token greedy text (5f866d60) is identical with XEON_MV_Q4K_V3_SMALLM=0 and with all three fusions off (R2).

Method for every figure below: shipped 0.2.3 engine (pin d81235049 + 134 patches, AVX1), llama-bench -ngl 99 -p 0 -n 128 -r 3 -fa 1, default context, card 1, 3 alternating rounds, warmup discarded by llama-bench, Qwen3-8B Q4_K_M (R2, gates-v023/R2-RESULT.md, third run).

  • The small-m Q4_K decode mat-vec on wave64 (metal/0115, default flipped by metal/0118; opt-out XEON_MV_Q4K_V3_SMALLM=0). Shapes with ne01 <= 2048 (the K projection 4096x1024 among them) take the four-row V3 kernel kernel_mul_mv_q4_K_f32_L8r4_v3ns_w64; large shapes keep the XEON_MV_Q4K_V3 resolution. Qwen3-8B Q4_K_M 15.377-15.383 t/s default against 15.064-15.067 with XEON_MV_Q4K_V3_SMALLM=0; 256-token greedy text identical.
  • Three small-op decode fusions on wave64 (metal/0119, defaults flipped by metal/0120; opt-outs XEON_MTL_FUSE_ROPE_SETROWS=0, XEON_MTL_FUSE_NORM_ROPE=0, XEON_MTL_FUSE_ADD_NORM=0). F1 fuses ROPE + VIEW + SET_ROWS, F2 fuses RMS_NORM + MUL + ROPE [+ VIEW + SET_ROWS], F3 fuses ADD + RMS_NORM + MUL; each removes dispatches, not work. Qwen3-8B Q4_K_M 15.375-15.380 t/s default against 15.003-15.012 with all three off; 256-token greedy text identical.
  • The two-card Dynamic MoE log line counts each card's own layers (moe/0116, small). mixed expert execution on device N printed every MoE layer (40 on the 35B) for each card; it now counts the layers whose experts are assigned to that card and sums that card's expert slots. Log-only: no behaviour, placement or timing change. ornith-1.0-35b Q6_K on both cards: device 0 21 layers, 609 expert slots, device 1 19 layers, 551 expert slots (21 + 19 = 40).

Added

  • XEON_MTL_OP_PROFILE=1 (metal/0114), off by default. A CPU-timed per-op decode profile: each op (or fused group) is encoded in its own command buffer, committed, waited on and timed with clock_gettime_nsec_np(CLOCK_MONOTONIC), aggregated by op class and, for MUL_MAT/MUL_MAT_ID, by shape and the pipeline actually dispatched, printed to stderr every 32 decode graphs and at exit; an empty-buffer row gives the per-dispatch floor. Serialised and CPU-timed, so its TOTAL is not the real token time. The switch changes scheduling only: with it on, text is byte-identical.
  • XEON_MV_Q4K_V3_SMALLM=1 and XEON_MV_Q4K_V3=5 (metal/0115), off by default at 0115. SMALLM=1 opens the small-m shapes and always dispatches the four-row kernel there, whatever XEON_MV_Q4K_V3 resolves to; value 5 is the same four-row kernel for every shape, kept as the explicit experiment. 0118 made SMALLM the default (above); value 5 stays a measured loss.
  • XEON_MTL_SKIP_OPS (metal/0117), off by default. A diagnostic ablation switch: a comma-separated set of ggml op names (RMS_NORM,ROPE,SET_ROWS,ADD,GLU,GET_ROWS,DUP,FLASH_ATTN_EXT) whose nodes are not encoded, so the command buffers get shorter and the decode rate is read with one class missing. Text is garbage while ablating — a skipped op leaves its output uninitialised — so only timing is read. MUL_MAT and MUL_MAT_ID are refused.

Fixed

  • A two-card tensor split crashed with F3 on (metal/0121). With XEON_MTL_FUSE_ADD_NORM on, llama-bench -ngl 99 -sm tensor -fa 1 on Qwen3-14B Q4_K_M over cards 0,1 exited 139: SIGSEGV in ggml_metal_fb_residual_take <- ggml_metal_op_bin_fuse_add_norm <- ggml_metal_op_bin. F3's pattern check asked ggml_metal_fb_residual_take(dev, t, nullptr), which is not a query — it writes the partner's buffer and marks the slot folded, and with a null peer it dereferences null. The check now uses the read-only ggml_metal_fb_residual_armed() the other fusion checks already use; when the add is armed, F3 declines and the normal ADD path takes the residual. Single-card paths never arm the fb residual, so they are unchanged. After the fix, on a tensor split F3 gives no decode gain: Qwen3-14B Q4_K_M tensor split tg128 10.951/10.950 t/s default against 10.966/10.972 with F3 off. Method: engine v0.2.2-0121-avx1 (pin d81235049 + 133 patches), cards 0+1, llama-bench -ngl 99 -sm tensor -p 0 -n 128 -r 3 -fa 1, 2 alternating rounds, warmup discarded by llama-bench; 256-token greedy text identical in both arms.
  • LFM3-1.7B F16 on the GPU answered gibberish from the first token with F1/F2 on (metal/0122; CPU -ngl 0 was fine). F1's and F2's pattern checks compared op types and shapes only, and both patterns are registered unsafe, so those callbacks are the sole validators; a window that is not really a chain mis-fused, the fused kernel elided the intermediate nodes and left a buffer unwritten for its other reader. The checks now verify the links and the single use (ggml_node_has_n_uses / ggml_node_get_use_count): F1 requires view->src[0] == rope, set_rows->src[0] == view and each used once; F2 requires mul->src[0] == rms_norm or mul->src[1] == rms_norm, each used once, and with the trailing set_rows the same link and use conditions over the view. After the fix LFM3's GPU text is byte-identical to fusions-off and to 0.2.2, and Qwen3-8B Q4_K_M keeps the gain: 15.372/15.386 t/s default against 15.015/15.019 with all three off. Method: engine v0.2.2-0122-avx1 (pin d81235049 + 134 patches), card 1, llama-bench -ngl 99 -p 0 -n 128 -r 3 -fa 1, 2 alternating rounds, warmup discarded by llama-bench; 256-token greedy texts 8B 5f866d60, 4B 22ceab11. Why Qwen3 escaped is a hypothesis in the patch header, not a settled fact.

Neither bug shipped: both were caught by this release's own gates (R2 on the first build, R3 on the second) and fixed before the binaries were cut.

Known issues

  • F3 does not help on a tensor split. With XEON_MTL_FUSE_ADD_NORM on, a two-card tensor split folds the same residual adds as before but decodes no faster: Qwen3-14B Q4_K_M tensor split tg128 10.951/10.950 t/s default against 10.966/10.972 with F3 off (method under Fixed, metal/0121). The armed adds are exactly the ones F3 now declines.
  • The fused-vs-unfused QVK text note. With XEON_QVK_Q4K_W64_FUSE=1 (the 0.2.1 fused path) the text is not identical on every prompt: on the 256-token BST prompt the default and the fused arm split after about 375 characters, both coherent (a near-tie flip, different summation order). The 0.2.1 shipped engine's text on the same request is byte-identical to the 0.2.2 default, so the shipped default keeps 0.2.1's text; the opt-out arm does not. Method: shipped 0.2.2 engine, Qwen3-4B Q4_K_M, card 1, server, 256-token greedy, gates-v022/R2-RESULT.md.
  • The Q4_K repack (XEON_Q4K_REPACK=1) loses decode and stays off by default; see 0.2.2's Added for the numbers. A per-phase choice (repack for prefill, canonical for decode) would need two copies of the weights, which doubles VRAM against the 5.9 GB per-card limit, so it is not pursued.
  • The first request after a launch can still differ with "Repeatable answers" on; its cause was not identified. The app's warm-up takes that request, so later prompts repeat. Two cards and contexts above 16384 were not measured with that setting. (Carried from 0.2.1: moe/0106 is unchanged in 0.2.3, so both still hold.)
  • MCPStdioTransportTests.testAnswersRacingTheirDeadlinesResolveEachRequestOnce remains a known intermittent race (R1: 3 assertion failures in one test, all the known race; R5).

Updating

0.2.2 users get 0.2.3 from the About page: in-app updates are on in this build, and the DMG carries no XEONUpdatesDisabled key. The installer checks the DMG checksum before swapping the app.

Gates

The first two builds failed their gates and the third passed. On the first build, R2 failed gate 3.3 with the F3 tensor-split crash (metal/0121). On the second build R2 passed, and R3's stress set found the LFM3 GPU text (metal/0122). Both were fixed and the binaries rebuilt before shipping. On the third build, R1 and R2 passed: patch series 134/134 on d81235049, 0 AVX2/FMA mnemonics in every Mach-O, ops 14032/14032 on each card (FA 1993/1993 each, XEON_FA_AMD_DISABLE=1 0/0 as in 0.2.2), 0 missing kernel names on both cards, prefill bands 16..2048 every row rc=0 including the 14B tensor split, preflight with the drop-counter control reading 1, test-engine OK, MCP cancel 20/20, the 14B repro with no timeouts, dist/XeonLLM-v0.2.3-noavx2.dmg sha256 885b5561…, 0.2.2 DMG unchanged. No new crash...

Read more

XeonLLM 0.2.2 (no-AVX2, AVX1 engine)

Choose a tag to compare

@SamerKharboush SamerKharboush released this 28 Nov 10:08

XeonLLM 0.2.2 (no-AVX2, AVX1 engine)

Summary

0.2.2 is a decode-speed release for the 64-lane FirePro D700 (GCN, wave64) cards: three measured decode wins become the default, so a stock launch gets them without environment variables. A fork of ToshLLM by Engelbert Delgado, maintained by Samer Kharboush at https://github.com/SamerKharboush/xeonllm. Site: https://samerkharboush.github.io/xeonllm-site/. Built and measured on a Mac Pro 6,1: Xeon E5-2697 v2 (AVX, no AVX2/FMA), 64 GB, 2x FirePro D700, macOS 15.8. The llama.cpp series is 125 patches on the pin d81235049; the new ones are metal/0108, 0109, 0110, 0111, 0111a, 0112, 0113 and moe/0107.

Changed

The three together, against 0.2.1's behaviour on the same engine: Qwen3-8B Q4_K_M decode 10.22 -> 14.74 t/s, Qwen3-4B Q4_K_M 16.64 -> 17.56 t/s, Qwen3-8B prefill (pp512) 41.08 -> 42.95 t/s; 256-token greedy text byte-identical in every arm (4B 91b358aa, 8B 3757ac38, LFM3-1.7B 82d29582). Method: own build v0.2.1-0113-avx1 (pin d81235049 + series through 0113), card 1, llama-bench -ngl 99 -p 0 -n 128 -r 5 -fa 1 default context (pp512: -p 512 -n 0 -r 3), the 0.2.1 arm = XEON_MV_Q4K_V3=0 XEON_Q6K_REPACK=0 XEON_QVK_Q4K_W64_FUSE=1, 3 alternating rounds (pp512: 2), warmup discarded by llama-bench; ranges across rounds 10.223-10.224 / 14.737-14.747, 16.642-16.645 / 17.539-17.576, 41.07-41.09 / 42.95-42.96. On card 0 the same engine passed MUL_MAT 1857/1857 and GET_ROWS 232/232 in both arms, with the Qwen3-4B and LFM3-1.7B texts identical to card 1's; card 0 throughput was not measured.

All three decode changes are on by default on a 64-lane card and keep 0.2.1's behaviour when their opt-out is set. Method for every figure below: shipped 0.2.2 engine (pin d81235049 + 125 patches, AVX1), llama-bench -ngl 99 -p 0 -n 128 -r 5 -fa 1, default context, warmup discarded by llama-bench, card 1, arms alternating; Qwen3-8B Q4_K_M for the Q4_K and Q6_K rows, Qwen3-4B Q4_K_M for the QVK row (R2, gates-v022/R2-RESULT.md).

  • Q4_K decode value 2 on wave64 (metal/0110, default flipped by metal/0113; opt-out XEON_MV_Q4K_V3=0). A 16-row Q4_K decode mat-vec with 16-byte quant loads and no header shuffle. Qwen3-8B Q4_K_M 14.719-14.725 t/s default against 12.669-12.676 with XEON_MV_Q4K_V3=0; 256-token greedy text identical.
  • Q6_K row-base repack on wave64 (metal/0111, default flipped by metal/0113; opt-out XEON_Q6K_REPACK=0). Q6_K weights are stored on-card in a field-major layout so every 16-byte quant load is aligned; the host-visible bytes are unchanged. Qwen3-8B Q4_K_M 14.722-14.725 t/s default against 12.853-12.858 with XEON_Q6K_REPACK=0; q6k-repack: mark lines 37 default, 0 off; 256-token greedy text identical.
  • Unfused QVK on wave64 (metal/0111a; XEON_QVK_Q4K_W64_FUSE=1 restores the fused kernel). The fused Q4_K/Q6_K/Q4_K mat-vec runs 32-lane bodies; standalone, the card uses its tuned wave64 kernels. Qwen3-4B Q4_K_M 17.522-17.526 t/s default against 16.856-16.875 with XEON_QVK_Q4K_W64_FUSE=1.
  • Flash-attention twin first on 32 KB cards (metal/0108; XEON_FA_AMD_LDS32=0 restores plain-first). A wave64 card with 32 KB of threadgroup memory now asks for the _lds32 twin first instead of asking the driver for a plain kernel it always refuses. Qwen3-4B Q4_K_M, -ngl 99 -c 4096 -fa on, engine pin d81235049 + series through 0108, 6 launches per arm alternated, card 1: load (loading model -> model loaded) 2.198-2.215 s twin-first against 2.515-2.556 s plain-first (5 warm launches; the run's first launch, 4.699 s, paid the cold file read); refused line 0 against 1 per launch; 64-token output identical in all 12; generation 16.57-16.59 t/s both arms.
  • Two-card Dynamic MoE promotion margin 6 (moe/0107; XEON_DMOE_MARGIN overrides). The one-card margin-6 rule (0105) now also applies to a two-card plan. ornith-1.0-35b Q6_K on both cards: generation 13.95-13.97 -> 14.20 t/s, prompt 68.11-68.46 -> 68.76-69.06 t/s. Method: engine v0.2.1-0106-avx1 (pin d81235049 + series through 0106), GGML_METAL_DEVICE_LIST=0,1, -ngl 99 -c 16384 -t 12 -fa auto --dynamic-moe on --load-mode none -ub 512 -b 512, 505-token prompt, 128 generated, 1 warm-up discarded + 3 reps, 3 launches per arm alternating. Steady max command buffer 60.3 ms (card 0), 49.4 ms (card 1).

Added

  • XEON_MV_Q4K_V2=1 (metal/0109), off by default. A 16-row Q4_K decode mat-vec, the first candidate; value 2 of XEON_MV_Q4K_V3 (0110) superseded it and is the default. Qwen3-4B Q4_K_M 16.642-16.647 -> 16.724-16.726 t/s (engine pin d81235049 + series, card 1, 6 alternating processes, warmup discarded by llama-bench); 4B/8B 256-token text identical.
  • XEON_Q4K_REPACK=1 (metal/0112), off by default. The Q4_K row-base repack. It raises prefill and lowers decode, so it stays off. Method: engine v0.2.1-0112r2-avx1 (pin d81235049 + series through 0112), card 1, llama-bench -ngl 99 -p 0 -n 128 -fa 1 decode and -p 512 -n 0 prefill, 3 and 2 alternating rounds, warmup discarded by llama-bench. Qwen3-8B Q4_K_M prefill 41.08 -> 45.4 t/s alone, 42.96 -> 47.18 with XEON_MV_Q4K_V3=2 + Q6_K repack; decode 14.75 (V3=2 + Q6_K repack) against 13.79 with both repacks, and on Qwen3-4B 17.55 against 16.21 (the repack even loses to the default kernel there, 17.13 against 16.22). 256-token greedy text identical in every arm (4B 91b358aa, 8B 3757ac38, LFM3 82d29582).
  • The 35B with Q6_K dense and Q4_K experts, a measured configuration you can build and keep. The release ships the engine and app, not model files. ornith-1.0-35b-Q6_K-expQ4_K.gguf (20.2 GB against 28.5 GB) is made with llama-quantize --allow-requantize --tensor-type ffn_{gate,up,down}_exps=q4_K from the Q6_K file. Method: engine v0.2.1-0107-avx1, card 1, one card, Dynamic MoE (t1b-35-force512.args: -c 16384 -ub 512 -b 512 -fa auto, pol-stock.env), server prompt 505 tokens, 128 generated, 3 reps per launch with the first discarded, 3 launches per model alternating. Generation 15.901, 15.880, 15.871 tok/s against the Q6_K 15.248, 15.271, 15.249; prompt 85.67-85.91 against 76.47-76.55 tok/s; host time per job 215.7 against 364.0 us; expert hit rate on the card 49.79 % against 34.27 %; RSS 22.6 against 30.3 GiB. Quality (CPU only, ticket 14 harness, f16 KV, base = Q6_K): mean KLD 0.016-0.030 across ctx 2048-8192, same top token 93-96 % (evidence/12/RESULT.md §4).

Known issues

  • The fused-vs-unfused QVK text note. With XEON_QVK_Q4K_W64_FUSE=1 (the 0.2.1 fused path) the text is not identical on every prompt: on the 256-token BST prompt the default and the fused arm split after about 375 characters, both coherent (a near-tie flip, different summation order). The 0.2.1 shipped engine's text on the same request is byte-identical to the 0.2.2 default, so the shipped default keeps 0.2.1's text; the opt-out arm does not. Method: shipped 0.2.2 engine, Qwen3-4B Q4_K_M, card 1, server, 256-token greedy, gates-v022/R2-RESULT.md.
  • The Q4_K repack (XEON_Q4K_REPACK=1) loses decode and stays off by default; see Added for the numbers. A per-phase choice (repack for prefill, canonical for decode) would need two copies of the weights, which doubles VRAM against the 5.9 GB per-card limit, so it is not pursued.
  • The first request after a launch can still differ with "Repeatable answers" on; its cause was not identified. The app's warm-up takes that request, so later prompts repeat. Two cards and contexts above 16384 were not measured with that setting. (Carried from 0.2.1: moe/0106 is unchanged in 0.2.2, so both still hold.)
  • MCPStdioTransportTests.testAnswersRacingTheirDeadlinesResolveEachRequestOnce remains a known intermittent race (R1: 3 assertion failures in one test, all the known race; R5).

Updating

0.2.1 users get 0.2.2 from the About page: in-app updates are on in this build, and the DMG carries no XEONUpdatesDisabled key. The installer checks the DMG checksum before swapping the app.

Gates

R1 (build) and R2 (engine gates) are done. R1: patch series 125/125 on d81235049, swift test 695 tests with 18 skipped and only the 3 known-race failures, engine rebuilt AVX1 with 0 AVX2/FMA mnemonics, app and DMG built with in-app updates on, dist/XeonLLM-v0.2.2-noavx2.dmg sha256 fa7ff007…, 0.2.1 DMG unchanged. R2 passed the §3 engine gates on both cards (ops 14016/14016 each, 0 missing kernels, prefill and preflight, test-engine, the 14B repro with no timeouts) and the §2 proofs, with the QVK text note above and the 0083 rerun (its first text check was vacuous; the rerun with the prompt file present is identical). No new crash reports.

R3 passed the stress set on the 0.2.2 app's own launch, both cards: every dense model (8 models) in tensor split, layer split and CPU-only is byte-identical to 0.2.1 at all three prompt lengths, and layer split matches tensor split on all 8. The 14B's 10683-token prompt is refused cleanly at its card-fit context of 10240, as in 0.2.0 and 0.2.1. The 35B is reported, not gated: the Q6_K's tensor-split tools cell reasoned without a tool call once, as in 0.2.1, and a rerun of 5 fresh app launches across 3 modes gave 15 of 15 cells with tool_calls; the new Q4_K-expert 35B passed all its cells in tensor and one-card modes.
R5 passed the app gates on the final DMG: the mounted DMG's identity, signature and layout; the updater suites including a real install of this DMG into a temporary target; and one real chat in the built app on a test profile (LFM3-1.7B F16, both cards: "The capital of France is Paris.", the same 71 tokens as 0.2.1, plus a get_weather tool call). Only the known MCP race failed. No new crash reports.

Checksums

DMG sha256: fa7ff0075eaf71a4ab5f668c27f44c9763a156516b6e490dbc4c2f669df051c6.

XeonLLM 0.2.1 (no-AVX2, AVX1 engine)

Choose a tag to compare

@SamerKharboush SamerKharboush released this 25 Nov 23:56

XeonLLM 0.2.1 (no-AVX2, AVX1 engine)

Summary

0.2.1 is a small correctness release on top of 0.2.0: an opt-in setting that makes a mixture-of-experts model repeat its temperature-0 answers. A fork of ToshLLM by Engelbert Delgado, maintained by Samer Kharboush at https://github.com/SamerKharboush/xeonllm. Site: https://samerkharboush.github.io/xeonllm-site/. Built and measured on a Mac Pro 6,1: Xeon E5-2697 v2 (AVX, no AVX2/FMA), 64 GB, 2x FirePro D700, macOS 15.8. The llama.cpp series is 117 patches on the pin d81235049; the new one is moe/0106.

Added

  • "Repeatable answers", per model, off by default. For a mixture-of-experts model running Dynamic MoE on its own server, it keeps experts in the same place for the whole run instead of moving some between the host and the card as prompts arrive; that makes temperature-0 answers repeat. It does not apply in router mode. When on, the app sends one short throwaway warm-up request as the model loads (a one-token "Hello", 32 generated tokens at temperature 0), before the user's first message.
    • Method: in-app check, 0.2.1 app binary f77b506 with the 0106 test engine (llama-server b13463f2, pin d81235049 + 0106, AVX1), ornith-1.0-35b Q6_K, card 1, ctx 16384, the app's own launch (-t 12 -fa 1 --dynamic-moe on --load-mode none, no -b/-ub flags, so the engine defaults), 4 launches with the setting on and 2 off, /completion temperature 0, n 200, cache_prompt false, one warm-up request excluded, median [min-max]. In-app observation: 7 of 7 prompts were identical across 4 launches with the setting on; 6 of 7 differed between two launches with it off. Generation on 14.71 [14.56-14.75] tok/s, n=24, against off 15.42 [15.24-15.48] tok/s, n=12. This is a test-engine observation, not a rerun on the shipped engine.
    • Method: step 2 script, 0106 test engine (pin d81235049 + 0106, AVX1), ornith-1.0-35b Q6_K, card 1, ctx 4096, ubatch 512, batch 512, --dynamic-moe on, /completion temperature 0, top_k 1, seed 1, n_predict 200, warm-up excluded, median [min-max]. Script observation, reported separately and not averaged with the above: generation 14.61 [14.32-14.72] tok/s, n=36, with the switch on against 15.36 [15.18-15.41] tok/s, n=12, with it off. At ctx 16384 with a 6279-token prompt, the same script read prompt 81.56-83.85 against 81.95-84.30 tok/s and generation 13.58-13.69 against 14.29-14.40 tok/s, with 3 alternated rounds of 2 requests, card 1, -ub 512 -b 512, warm-up excluded.
  • XEON_DMOE_REPEATABLE=1 (moe/0106), for people who launch llama-server themselves. The app sets the switch only for a model with the setting on; a direct launch must set it in the environment and send its own throwaway first request. Off by default; when on, the log prints xeon_dmoe: repeatable residency.

Known issues

  • The first request after a launch can still differ even with the setting on; its cause was not identified. The app's warm-up takes that request, so later prompts repeat.
  • Two cards and contexts above 16384 were not measured with the setting.
  • The 35B tensor-split tools cell in R3 reasoned through all 512 tokens without a tool call on one run. Method: shipped 0.2.1 app and engine, ornith-1.0-35b Q6_K, stress-set tools cell with max_tokens 512 and temperature 0, Dynamic MoE identity reported and not gated, 0106 off (no XEON_DMOE_REPEATABLE in the launch environment). A CELLS=tools rerun of 5 fresh app launches across 3 modes gave 15 of 15 cells with tool_calls.
  • One card-0 test-backend-ops case in R2's first run read error 0.000529 against its 0.000500 tolerance (1.06x) in CONV_2D f16 (ne_input [1,1,25,2], kernel [2,2,25,1], stride 3/5, pad 5/5, dil 2/4). Method: shipped 0.2.1 test-backend-ops binary on card 0, same binary that passed card 0 in 0.2.0; CONV_2D alone was 5/5 on each card and the full card-0 rerun was 13990/13990 with FAIL=0.
  • MCPStdioTransportTests.testAnswersRacingTheirDeadlinesResolveEachRequestOnce remains a known intermittent race (R5).

Updating

0.2.0 users get 0.2.1 from the About page: in-app updates are on in this build, and the DMG carries no XEONUpdatesDisabled key. The installer checks the DMG checksum before swapping the app.

Gates

R2 passed the engine gates on both cards on the shipped binaries: patch series 117/117 on d81235049, 0 missing kernels, prefill and preflight, the switch proofs, and the 14B repro with no timeouts. R3 passed the stress set: every dense model and mode byte-identical to 0.2.0, with the 14B band8300 clean refusal as in 0.2.0 and the 35B identity reported rather than gated. R5 passed the app gates on the final DMG; only the known MCP race failed. No new crash reports.

Checksums

DMG sha256: c8c96af58d366729624735212652729e8e9bbdd6a2313e521468dc778d8d4236.

XeonLLM 0.2.0 (no-AVX2, AVX1 engine)

Choose a tag to compare

@SamerKharboush SamerKharboush released this 25 Nov 07:32

XeonLLM 0.2.0 (no-AVX2, AVX1 engine)

A fork of ToshLLM by Engelbert Delgado, maintained
by Samer Kharboush at https://github.com/SamerKharboush/xeonllm. Site:
https://samerkharboush.github.io/xeonllm-site/. 0.2.0 is a feature and correctness release on
top of 0.1.1. Built and measured on a Mac Pro 6,1: Xeon E5-2697
v2 (AVX, no AVX2/FMA), 64 GB, 2x FirePro D700, macOS 15.8. The llama.cpp series is 116 patches
on the pin d81235049.

The reported slowdown against beta 7

Three reports were investigated (0.2 tickets 01, 02 and 08):

  • 35B one card, prompt (fixed). 0.1.1's one-card gate (moe/0096) left the Dynamic MoE wide
    publish off, so the expert mat-muls ran on the CPU. moe/0097 lifts that gate and lets the
    CPU skip the -1 rows. On an AVX1 test engine with 0097+0090, the app's one-card launch
    read prompt 76.09 / 76.19 / 76.32 tok/s against 0.1.1's 16.14 / 16.10 / 15.92 / 16.01, with
    generation 15.03 / 14.99 / 15.03 against 15.02 / 15.06 / 14.89 / 15.03. Method: AVX1 test
    engine and 0.1.1 shipped engine, pin d81235049, ornith-1.0-35b-Q6_K, card 1, ctx 16384,
    ubatch 512, real server mode, 1 warm-up discarded + 3 reps, alternated over 3 rounds. The
    shipped 0.2.0 engine reads the same (see Changed).
  • MiniCPM5 1B prompt (kept, by design). Since beta 7 a dense model on a card prefills in
    128-token batches: that bound came after the 2026-11-07 WindowServer panic, when long command
    buffers on the display card froze macOS. MiniCPM5 1B Q8_0 llama-bench pp512 read 580.7-586.0
    tok/s with the engine's default batch (beta 6 shipped settings) and about 393-403 at -ub 128
    (beta 6, beta 7 and 0.1.1 settings). Method: ticket 01 results.tsv, bench mode, tensor split,
    N=3, no warm-up discarded. 0.2.0 keeps 128 above ctx 4096 (and lowers it further at deep
    contexts); at ctx 4096 and below small models get larger batches by size band.
  • Generation 59.7 (MiniCPM5) and 31.8 (LFM3) not reproduced. Every build measured
    53.6-55.2 (MiniCPM5) and 19.3-20.2 (LFM3) llama-bench tg128, beta 7 included (ticket 01,
    bench mode, tensor split, N=3). The 59.7 is the benchmark screen's "best generation" across
    its history, from a different workload; 0.2.0's benchmark screen now names the workload,
    app version, engine sha and ubatch of every result, and says when two are not like for like.

Added

  • In-app updates from the About page. Release builds ship with updates on. The app checks
    once a day automatically and on demand from About; the daily due-check persists across
    relaunches. About shows the last check, the latest version, Check for updates, Download and
    install, and the release notes. Before a swap the installer requires the DMG checksum and
    refuses four identity mismatches: bundle id, the no-AVX2 flag, a version that is not newer,
    and codesign --verify. The app's engine is stopped only after those checks pass, and a
    failed swap restores the old app. 0.1.1 users must install 0.2.0 by hand once: 0.1.1
    shipped with XEONUpdatesDisabled=1, so it cannot fetch this release.
  • Reuse conversation text, an opt-in per-model setting, off by default. When on, the app
    passes --spec-type ngram-simple (and --spec-ngram-simple-size-m 7 on a host-expert plan).
    On the shipped engine, Qwen3-0.6B Q8_0 with the setting off read 55.8-56.4 tok/s; with it on,
    55.96-99.4 tok/s, with accepted drafts from 0/0 to 143/212. Method: shipped 0.2.0
    llama-server, pin d81235049, Qwen3-0.6B Q8_0, card 1, ctx 4096, ubatch 512, temperature 0,
    n 200, /completion, 6 prompts, N=1 each, warm-ups not discarded. The verify batch can make a
    near-tie break differently: 5 of 6 greedy answers were identical, one differed at character
    520 ("in the word northern region"). In the 06c study Qwen3-4B lost in every run. The help text
    says the answer can change.
  • ToshLLM 0.88.0 app rows: keep-awake, Hugging Face mirror, model identity, and the
    image-size row. Engine fixes are ported as 0098-0103; 0098's F16 fall-through was fixed,
    with no BF16 effect shown on 64 lanes.
  • Benchmark labelling: every result shows its workload, app version, engine sha and ubatch;
    comparisons say when they are not like for like.

Changed

  • One-card wide Dynamic MoE on the 35B: prompt 76.3-76.5 tok/s against 0.1.1's 16.0.
    Method: shipped 0.2.0 engine (llama-server 23cb15d6…, pin d81235049), ornith-1.0-35b
    Q6_K, card 1, app one-card launch -c 16384 -ub 512 --dynamic-moe on, real mode, N=3,
    warm-up discarded.
  • One-card Dynamic MoE promotion margin 6 (moe/0105): stock prints margin 6.00, 3.80 /
    4.02 promotions per graph, pp 76.34 / 76.47 tok/s, tg 15.36 / 15.33; the
    XEON_DMOE_MARGIN=0 control prints margin 0.00, 18.07 / 18.12 promotions, pp 76.44 / 76.36,
    tg 15.11 / 15.12. Method: shipped 0.2.0 engine, ornith-1.0-35b Q6_K, card 1, ctx 16384,
    ubatch 512, real mode, N=3, warm-up discarded.
  • metal/0090: the decomposed prefill KQ cap is 512 MiB for batches of at most 128 tokens
    (was 256), so deep prompts stay on the short-command-buffer path. Qwen3-0.6B Q8_0 at depth
    32768: steady max command buffer 89.1 / 89.3 ms and pp512 50.89 / 50.88 tok/s, against
    258.9 / 258.9 ms and 17.14 / 17.12 with the old 256 MiB cap (XEON_FA_PF_DECOMP_MAX_MB=256);
    tg32 17.39 / 17.52 against 17.56 / 17.73. Method: shipped 0.2.0 llama-bench, pin d81235049,
    card 1, -ub 128 -b 128 -p 512 -n 32 -d 32768 -r 1, XEON_MTL_CB_STATS=1, steady = after the
    first graph, two processes per arm alternated.
  • metal/0104: f16 leaves the wide prefill tile on 64-lane cards. LFM3-1.7B F16 pp512
    287.01 ± 0.31 / 286.81 ± 0.18 tok/s against 233.68 ± 0.12 / 233.63 ± 0.20 with
    XEON_MM_F16_WIDE=1; tg128 23.06 / 23.06 against 23.05 / 23.06. Method: shipped 0.2.0 engine,
    llama-bench -ub 512 -b 512 -p 512 -n 128 -r 3 -fa 1, LFM3-1.7B F16, card 1, N=3, llama-bench
    warm-up discarded.
  • Deep-context dense ubatch: above ctx 4096 the app's dense card launch carries
    --ubatch-size = min(128, largest of 128/64/32/16 with u * ctx * heads * 4 <= 512 MiB).
  • Card fit lowers contexts. Qwen3-14B Q4_K_M on two cards now gets 10240 where 0.1.1 gave
    16384, so a ~10.7k-token prompt is refused with "exceeds the available context size" instead
    of risking the card. Qwen3-4B Q6_K on one card at the 16384 default gets 13312. Method: app
    server log header and args: from the 0.2.0 launch; 0.1.1's estimator for the old value.

Fixed

  • The Ternary-Bonsai-2-27B PQ2_0 20k evict stress cell that timed out in 0.1.0 and 0.1.1
    now passes in both split modes.
  • Deep-context ubatch read the saved context, not the fitted one (1c1a479): the 14B
    launched -c 10240 with --ubatch-size 64; it now carries -c 10240 --ubatch-size 128.

Known issues

  • The 35B (Dynamic MoE, one card) does not reproduce its own output at temperature 0
    (ticket 10): 4 of 6 outputs differed between two runs without 0105, 5 of 6 with 0105, and
    2 of 6 with the arena frozen; dense models differed in 0 of 108. Outputs stay coherent but
    diverge within the first few tokens.
  • MCPStdioTransportTests race:
    testAnswersRacingTheirDeadlinesResolveEachRequestOnce fails intermittently; same pre-existing
    flake as 0.1.1.

Not done / studied and rejected

  • Rust rewrite: NO-GO. The AVX1 Rust port of ggml_vec_dot_q6_K_q8_K was bit-identical to C
    on 192 rows and within the C-vs-C noise floor at 1, 2 and 8 threads; parity bought no speed and
    costs a second toolchain and a 6.2 MB staticlib. Method: pin d81235049 + all patches,
    Q6_K x Q8_K shapes from the 35B GGUF header, N=9 median, no separate warm-up discard.
  • P-JAN-Evict: closed, no patch; the shipped 35B plan's decayed-frequency arena does not enter
    janas's LRU-collapse regime.
  • P-KIN-Flywheel: closed; already in the engine as XEON_DMOE_ADMIT=0 and measured below
    margin 6.
  • P-TIDE-Substitute: deprioritised; 63% of routes are non-resident, so substitution would
    change most expert outputs.
  • Margin 6 on the two-card 35B was not measured: the bench configuration used for it was
    refused by the planner at load (PLAN_UNSUPPORTED NO_SAFE_FALLBACK, required 6.4 GiB, available
    1.5 GiB) in all 6 attempts; the app's own launches of the 35B were not affected (R3 stress set).
    The policy applies only to one card.
  • Contexts above 32768 remain unmeasured.

Gates

The release was gated on the shipped binaries. R2 passed all 8 engine sections on card 0 and
card 1 (dist/XeonLLM.app/Contents/Resources/bin, llama-server 23cb15d6…, engine
0.6.0-dev build 11429, commit d81235049): ops 13990/13990 per card, coverage 0 missing,
prefill 18 of 19 with the handled Ternary tensor refusal, preflight, engine test, the new 0.2
switch proofs, and the 14B repro with no timeouts. R3 passed the stress set: every dense model
and mode byte-identical to 0.1.1, the 14B band8300 a clean HTTP 400 at its new 10240 fit, and
the 0090/0104/0097/0105 proofs shown. R5 passed the app gates on the final DMG
(1cf6caea…): swift test 684 run / 17 skipped with only the known race, migration, DMG
identity and signature, updater suites including the final DMG, and one real chat and tool call.

Install / updating from 0.1.1

Drag XeonLLM to Applications. This build needs a CPU with AVX (Sandy Bridge or later).
It is ad-hoc signed, not notarized: right-click it once and choose Open. Settings,
conversations and Keychain items carry over from 0.1.1 unchanged. In-app updates are on in this
build; 0.1.1 had them off, so this first update is manual.

Checksums

DMG sha256: 1cf6caea148139a6453b284b96ed334d713883f65c351fcd1e7137beac7d2f0c.

XeonLLM 0.1.1 (no-AVX2, AVX1 engine)

Choose a tag to compare

@SamerKharboush SamerKharboush released this 23 Nov 06:33

XeonLLM 0.1.1 (no-AVX2, AVX1 engine)

A fork of ToshLLM by Engelbert Delgado, maintained
by Samer Kharboush at https://github.com/SamerKharboush/xeonllm. Site:
https://samerkharboush.github.io/xeonllm-site/. 0.1.1 is a bug-fix release on top of
0.1.0. Built and measured on a Mac Pro 6,1: Xeon E5-2697
v2 (AVX, no AVX2/FMA), 64 GB, 2x FirePro D700, macOS 15.8.

Fixed

  • A MoE model that does not fit the cards no longer crashes the engine on one card. When
    Auto launches it on one card — the "expert tier" launch, one card holding attention and the
    hot experts and the CPU computing the rest — the engine crashed while processing the first
    prompt, before any token came back. The 35B (Ornith-1.0-35B Q6_K) hit this on Macs where
    Auto gave it one card. 0.1.1 serves the launch: on one card the prompt-sized MoE step runs on
    the CPU with the original expert ids, and the one-card bounded plan no longer reserves a
    minimum expert arena. Two-card plans are unchanged.
    Measured on the one-card launch: prompt eval 20.11 tokens per second (2629-token prompt),
    generation 14.49 tokens per second (256 tokens). Method: app llama-server e3e7ba4e…,
    llama.cpp pin d81235049 + 106 patches, model ornith-1.0-35b-Q6_K, one card
    (GGML_METAL_DEVICE_INDEX=1), ctx 32768, ubatch 1024, N=1, no warmups. The one-card launch
    is new in 0.1.1 (0.1.0 crashed on it); these figures are for that launch alone and are not
    compared with any other.

Also in this release

  • scripts/check-exact-decoding.sh, the exact-decoding gate: it runs the same requests with
    and without a drafter, saves and restores a slot across a server restart, and sends two
    requests at once, against a no-draft reference (with a second no-draft start as the
    determinism control). It fails if the token ids diverge.
  • README measured KV cache quality table: the README now shows measured KL divergence and
    top-token agreement per KV cache type (turbo3 and turbo4 were not run on the dense model),
    with the method line.

Text vs 0.1.0

  • Every non-MoE model in the stress set is byte-identical to 0.1.0 in every mode. The
    gated identity lines read identical-vs-previous PASS band16 band300 band1100 byte-identical
    for every model and every mode.
  • The 35B (Dynamic MoE): tensor mode is byte-identical to 0.1.0 on the gated bands
    (tensor identical-vs-previous PASS band16 band300 band1100 byte-identical). Its draft mode
    now matches tensor byte for byte (draft identical-vs-tensor PASS band16 band300 band1100 byte-identical), whereas in 0.1.0 draft differed from tensor on two bands — so draft differs
    from 0.1.0's draft text there (draft identical-vs-previous FAIL band300 differs at offset 0; band1100 differs at offset 0). Dynamic MoE text is reported, not gated.
  • The one-card launch is new (0.1.0 crashed) and matches tensor on the gated bands
    (singlecard identical-vs-tensor PASS band16 band300 band1100 byte-identical).

Known issues

  • Ternary-Bonsai-2-27B PQ2_0 evict stress cell: the 20549-token prompt exceeds the
    900 s test-driver limit in this release's stress run, as it did in 0.1.0; the request after
    it is answered. Stress-cell wall-clock times are not a speed measurement.
  • MCPStdioTransportTests race: testAnswersRacingTheirDeadlinesResolveEachRequestOnce
    fails intermittently; it is the same pre-existing flake as in 0.1.0.
  • App gates with partial coverage: the not-found command message for MCP tool servers
    and remote MCP over HTTPS have no test coverage in this tree (the code paths exist, but
    swift test does not exercise them).

Install / updating from 0.1.0

Drag XeonLLM to Applications. This build needs a CPU with AVX (Sandy Bridge or later).
It is ad-hoc signed, not notarized: right-click it once and choose Open. In-app updates
are off
(XEONUpdatesDisabled=1 in the bundle's Info.plist). Settings, conversations and
Keychain items carry over from 0.1.0 unchanged: the bundle id (dev.xeonllm.app) and the
data folder (~/Library/Application Support/XeonLLM) are the same as 0.1.0, so an in-place
install keeps the settings and conversations you already have. Conversations saved by the
earlier beta builds are still read by the same migration code.

Gates

The release was gated by the project's release contract on the shipped binaries:

  • Identity and optimisations: bundle dev.xeonllm.app, version 0.1.1, XEONNoAVX2=1,
    XEONUpdatesDisabled=1, no AVX2/FMA instruction in any shipped binary, and every optimisation
    switch shown to take effect (XEON_MV_ROWS8_DISABLE, XEON_FULL_TG_DISABLE, metal/0083,
    metal/0084) — project notes.
  • Engine gates, card 0 and card 1, run on the engine binary this app ships
    (llama-server e3e7ba4e…): backend ops 13990/13990 per card, flash attention 1993/1993,
    kernel coverage, prefill bands, preflight, engine test, and the 200-request repro
    (Qwen3-14B layer split, no timeouts, text ok) — project notes.
  • Stress test of the app's real launch: 9 models, prompt bands from 16 to 8300, a
    six-turn conversation, a context-filling prompt, an over-context request, a tool call, a
    cancelled stream and a request after each. Every cell passes (or skips for
    --parallel 1) except the Ternary evict cell above. No panic, watchdog, GPU restart,
    assert, kernel not found or @@@@ answer during the runs — project notes.
  • App gates: swift test (573 tests, 16 skipped, only the known race fails), migration
    from beta 8, the mounted DMG (checksum, signature, icon, window layout), English-only
    strings, and a real chat and tool call through the built app — project notes.

Checksums

DMG sha256: e2fc0a984789d4e0254c44fa598ceb9b5eefbcf08101d4f68a10d73cd63b5421.

XeonLLM 0.1.0 (no-AVX2, AVX1 engine)

Choose a tag to compare

@SamerKharboush SamerKharboush released this 21 Nov 08:46

XeonLLM 0.1.0 (no-AVX2, AVX1 engine)

A fork of ToshLLM by Engelbert Delgado, maintained
by Samer Kharboush at https://github.com/SamerKharboush/xeonllm. Site:
https://samerkharboush.github.io/xeonllm-site/. This is the first release under XeonLLM's
own version numbering — not a beta. Built and measured on a Mac Pro 6,1: Xeon E5-2697
v2 (AVX, no AVX2/FMA), 64 GB, 2x FirePro D700, macOS 15.8.

Install

Drag XeonLLM to Applications. This build needs a CPU with AVX (Sandy Bridge or later).
It is ad-hoc signed, not notarized: right-click it once and choose Open. In-app updates
are off
(XEONUpdatesDisabled in the bundle's Info.plist). Settings, conversations and
Keychain items carry over from beta 8 (the migration code reads beta 8's tosh* JSONL keys
as a fallback; IdentityMigrationTests and ChatJSONLMigrationTests pass).

Renamed switches

Every TOSH_* environment switch and Info.plist key was renamed to XEON_*. The old names
are no longer read — no compatibility aliases are kept. The table below lists the
user-facing switches; the complete set covers every TOSH_* identifier in the engine patch
series and app sources.

Engine / app environment switches

Old name New name What it does
TOSH_FA_PF_W64 XEON_FA_PF_W64 Forces the old w64 prompt-attention path on 64-lane cards (restores pre-0083 text)
TOSH_FA_PF_DECOMP_MAX_MB XEON_FA_PF_DECOMP_MAX_MB Score-matrix cap for the decomposed prefill path (default 256 MiB)
TOSH_FA_AMD_DISABLE XEON_FA_AMD_DISABLE Disables the AMD flash-attention kernel (set by the app when "AMD flash attention" is off)
TOSH_OFFLOAD_MAX_COMPUTE_MB XEON_OFFLOAD_MAX_COMPUTE_MB Cap on the card's compute buffer for prompt offload of host weights
TOSH_OFFLOAD_MOE XEON_OFFLOAD_MOE Allows MoE expert offload (off by default)
TOSH_GDN_STATE_FUSION_MULTI XEON_GDN_STATE_FUSION_MULTI Enables the fused gated-delta-net state kernel across multiple cards (known-bad: answers zeros)
TOSH_MTL_CB_TARGET_MS XEON_MTL_CB_TARGET_MS Target GPU time per batch command buffer in milliseconds (0 = old layout)
TOSH_MTL_CB_STATS XEON_MTL_CB_STATS Logs per-batch command-buffer timing
TOSH_MV_ROWS8_DISABLE XEON_MV_ROWS8_DISABLE Disables the multi-row (rows8) mat-vec path on 64-lane cards
TOSH_FULL_TG_DISABLE XEON_FULL_TG_DISABLE Disables the full-width token-generation mat-vec path
TOSH_RS_STATE_TYPE XEON_RS_STATE_TYPE Recurrent-state checkpoint type (q8_0 default; f32 for exact)
TOSH_AUTO_KV XEON_AUTO_KV KV cache type for Auto mode (f16, q8_0, turbo4)
TOSH_AUTO_KV_TURBO4 XEON_AUTO_KV_TURBO4 Allows Auto to try a turbo4 KV cache before leaving experts on the host (off on 64-lane cards)
TOSH_METAL_CHECK_KERNELS XEON_METAL_CHECK_KERNELS Kernel self-check at load time
TOSH_MGPU_EVENTS XEON_MGPU_EVENTS Enables multi-GPU event synchronisation (set by the app for tensor split)
TOSH_FA_AMD XEON_FA_AMD Enables the AMD flash-attention kernel (set by the app)

Plus the new switch in this release:

New name What it does
XEON_SWA_WHOLE_DISABLE Set to 1 to disable the whole-window checkpoint reuse from server/0093 (restores beta 8 -ngl 0 text on hybrid SWA models)

Info.plist keys

Old key New key
TOSHNoAVX2 XEONNoAVX2
TOSHUpdatesDisabled XEONUpdatesDisabled
TOSHDataFolder XEONDataFolder

From upstream ToshLLM 0.87.32–0.87.34

Upstream's llama.cpp pin did not move in this range. The ported items (one line each,
what a user sees):

  • Metal acc/set whole-row copies (metal/0087): the op_acc and op_set kernels
    use the correct threadgroup count for long rows, so whole-row copies are not split.
  • Qwen3.5 short-convolution tiled prefill (metal/0088): ssm_conv gets a 64×32
    tiled path on 32-lane cards. On 64-lane D700s the kernel compiles but is never selected.
  • Conv input concat and reshaping cpy (metal/0089): a tiled concat path and a
    division-free cpy for reshaping copies, both gated to 32-lane discrete cards.
  • Model without MTP head weights loads (core/0090): a model that declares an MTP head
    but has no head tensors loads without the head instead of failing.
  • Turbo4 auto KV (moe/0091): Auto tries a turbo4 KV cache before leaving experts on
    the host, but only on cards that are not 64-lane (D700/Gcn) and not unknown. On
    a 64-lane or unknown card the turbo4 path fails closed: it is not attempted.
  • Cheaper exact checkpoints (core/0092): recurrent-state checkpoints use exact f32
    while ≥8 fit in the budget, then q8_0; one read batch instead of many.
  • Whole-window checkpoint reuse (server/0093): the server reuses a checkpoint when a
    sliding window has dropped nothing (pos_min == 0). The XEON_SWA_WHOLE_DISABLE=1
    switch restores the old behaviour.
  • Qwen-Image 2.1 f16 inputs (image/0062, updated to upstream's version).

New in this fork

  • XEON_SWA_WHOLE_DISABLE=1 (server/0094): opt-out for the whole-window checkpoint
    reuse from server/0093. On hybrid SWA models (Nemotron) at -ngl 0, this restores beta 8
    text byte for byte.
  • Refused memory-plan session log: when the memory planner cannot create a viable plan,
    the app writes a server session log explaining why no engine started. The test
    AutoPlanRefusalTests passes.
  • Release notes in the app are ordered by publish date (GitHub's published_at), not
    by version number, so a beta numbered above the next release does not look newer.
  • Online benchmark sharing is off (BenchmarkSharing.onlineSharingEnabled = false).
    The XeonLLM site has no benchmark API. Benchmarks are still recorded locally; the
    "Share" button is hidden.
  • New icon everywhere: app, DMG, web UI, README.
  • English-only UI: the bilingual helper and language packs are removed.
  • Site links point to https://samerkharboush.github.io/xeonllm-site/ (was the old domain).
  • Donate: the toolbar Donate button, About entry and docs offer GitHub Sponsors
    (https://github.com/sponsors/SamerKharboush) and PayPal
    (https://paypal.me/Samerelnady). Binance Pay / USDT removed.

Text that moved since beta 8

On the cards (-ngl 99, tensor and layer split), greedy text is byte-identical to beta 8
for every model in the stress set. On the host (-ngl 0) one model moved:

  • Nemotron-3.5-Bolt-E4B Q4_K_M: server/0093's whole-window checkpoint reuse changes
    the prefill batching order when a sliding window has dropped nothing. The CPU sums the
    same values in a different order/grouping, so the greedy reasoning text moves (band300
    offset 18, band1100 offset 0). XEON_SWA_WHOLE_DISABLE=1 restores beta 8 text byte for
    byte.
  • Ternary-Bonsai-2-27B PQ2_0 -ngl 0: no text moved (band16/300/1100 byte-identical to
    beta 8).

The 35B (dynamic MoE) text is reported, not gated (contract section 4). Which experts
sit on a card depends on free VRAM at load; card 0 shares its memory with the display. The
tensor and draft modes both pass all cells and the tools cell carries tool_calls.

Known issues

  • Ternary-Bonsai-2-27B PQ2_0 evict stress cell: the 20549-token prompt exceeds the
    900 s test-driver CELL_TIMEOUT in this release's stress run. It passes at 1376.1 s with
    a 2400 s limit. A controlled single-request comparison in one session shows no
    regression against beta 8: prompt 15.07 and 15.06 tok/s for this engine against 15.07 and
    14.94 tok/s for beta 8's (1363.2 s, 1364.0 s against 1363.9 s, 1375.5 s). Method: the
    app's logged launch flags for this model (layer split over both cards), one server per run,
    runs alternating between the two engines, N=2 per engine, 20549-token prompt with
    cache_prompt: false, max_tokens 64, temperature 0, no warmup. The timeout is the
    test driver's limit, not an engine regression. Stress-cell wall-clock times are not a
    speed measurement: runs on different days with the same engine differ by more than the
    difference being looked for.
  • MCPStdioTransportTests race: testAnswersRacingTheirDeadlinesResolveEachRequestOnce
    fails intermittently; it is the same pre-existing flake as in beta 8.
  • Remote MCP over HTTPS and the command-not-found UI message have no test coverage:
    the code paths exist, but the TLS transport and the message for a missing command are
    not exercised by swift test.

Gates

The release was gated by the project's release contract on the shipped binaries:

  • Identity and optimisations: bundle dev.xeonllm.app, version 0.1.0, XEONNoAVX2=1,
    XEONUpdatesDisabled=1, no AVX2/FMA instruction in any shipped binary, every optimisation
    switch shown to take effect (XEON_MV_ROWS8_DISABLE, XEON_FULL_TG_DISABLE, metal/0083,
    metal/0084).
  • Engine gates, card 0 and card 1: backend ops 13990/13990 per card, flash attention
    1993/1993, kernel coverage, prefill bands, preflight, engine test, and the 200-request
    repro (Qwen3-14B layer split, no timeouts, text ok).
  • Stress test of the app's real launch: 9 models, prompt bands from 16 to 8300, a
    six-turn conversation, a context-filling prompt, an over-context request, a tool call, a
    cancelled stream and a request after each. Every cell passes (or skips for
    --parallel 1) except the Ternary evict cell above. No panic, watchdog, GPU restart,
    assert, kernel not found or @@@@ answer during the runs.
  • App gates: swift test (573 tests, 16 skipped, only the known race fails), migration
    from beta 8, the mounted DMG (checksum, signature, icon, window layout), English-only
    strings, and a real chat and tool call through the built app.

Checksums

DMG sha256: `d874fe94f4648e3ff5d20f50048a3584c1d642e6f671a4b6404603ab8efa3c...

Read more