GLM-5.3-Flash EXL3 3.05bpw on 1x RTX PRO 6000 - GPU expert cache, host-RAM streaming
00 upvotes — sign in to vote sign in to votecommunity Community submission — verify on your own hardware.
recipe by SSHdotCodes↗, turboderp↗ · listed by localai-recipes
revision r3 · commit bfe976ef15 · updated 2 d ago · license CC-BY-4.0
chat code vision tabbyapi agent-serving mtp moe-expert-offload host-ram-streaming long-context vision exl3 expert-cache
GLM-5.3-Flash (320B, 42x288-expert MoE) served from turboderp's EXL3 3.05bpw checkpoint (116.7 GiB) on ONE 96 GB RTX PRO 6000 Blackwell: a GPU expert cache keeps the 40 most-routed experts static in VRAM plus 148 LFU cache slots on-card, and streams the remaining 100 experts per layer from 91.5 GiB of pinned host RAM by rewriting ExLlamaV3's expert pointer tables in place - stock ExLlamaV3 1.6.0 kernels and unmodified TabbyAPI (pinned commit) behind a front shim. 61.5 tok/s decode short-context, 68 tok/s at 32K-127K in context, 1.9K-2.9K tok/s prefill, 524,288-token context, native vision, MTP drafting; mean KLD 0.0680 vs the original model and 59/60 on a 60-task graded tool-use bench - roughly half the llama.cpp UD-IQ3_XXS fidelity error (0.1258) while beating it on every axis. Replaces the author's own llama.cpp recipe in the same repo.
Launch command
'python3 exl3/run.py start' '# serve commands (python3 exl3/run.py command) - exl3/run.py serve writes .run/config.yml then execs:' 'exl3/.venv/bin/python -u exl3/anthropic_shim.py --port 8098 --upstream http://127.0.0.1:8099 --model glm-5.3-flash' 'exl3/.venv/bin/python -u exl3/tabby_glm.py' '# env set by run.py serve: GLMC_P=40 GLMC_D=148 GLMC_CACHE_DIR=exl3/cache GLMC_TABBY_DIR=exl3/src/tabbyAPI PYTHONUNBUFFERED=1' '# systemd-run --user --unit glm53-exl3 --property=MemorySwapMax=0 --property=KillSignal=SIGINT --property=TimeoutStopSec=60 --property=Restart=no' '# TabbyAPI config (.run/config.yml): network 127.0.0.1:8099 disable_auth api_servers [OAI]; model_dir exl3/models/glm-5.3-flash-exl3/view, model_name glm-5.3-flash, max_seq_len 524288, cache_size 524288, chunk_size 4096, max_batch_size 1, vision true, reasoning true, tool_format auto, template_vars_default {reasoning_effort: high}; draft_model {draft_mode mtp, draft_num_tokens 2}; sampling override_preset glm53 (creator sampling: temp 1.0, top-p 0.95, top-k 0, min-p 0, max output 131072)'context
apis: 'port 8098: OpenAI chat completions (tools, vision, reasoning split out) from TabbyAPI + Anthropic Messages (/v1/messages, /v1/messages/count_tokens) + OpenAI Responses (/v1/responses) from exl3/anthropic_shim.py translating to chat completions; TabbyAPI itself on 127.0.0.1:8099; loopback only'
vision: 'native vision on (config vision true); measured through api_check.py'
window: '524,288 tokens per request (max_seq_len and cache_size both 524288); with the 512K cache allocated about 3.8 GiB VRAM stays free (about 1.7 GiB at a 128K-token prefill peak)'
reasoning: 'GLM template native levels low/high/max, default reasoning_effort high; sampler_overrides/glm53.yml = creator sampling, request values take precedence'
runtime
known_lag: "Known lag: TabbyAPI 2fd6cc76 + ExLlamaV3 1.6.0 run exactly as measured; the bump path is blocked. #515's drafter-load change (f2a3da3 / merge 52c9e0c 'Skip standalone load for drafters that load with their target') swaps `if self.use_draft_model:` for `if draft_model.caps.get(\"load_with_target\"): <log, skip standalone load> / elif self.use_draft_model: <old load_gen>`. That cap is produced by exactly one exllamav3 v1.6.6 architecture (architecture/gemma4_assistant.py:273) and no MTP head sets it - this recipe drafts through the main model's MTP component (exl3/run.py:72-74 draft_mode mtp, draft_num_tokens 2, no separate drafter dir), so the elif runs the byte-identical old standalone draft load. Box .55 captured draft caps {supports_tp False, attach_target True, mtp_draft True, default_draft_size 3, autosplit_load_fwd False}, load_with_target False, DRAFT-LOAD-OK, and the boot line 'Using main model MTP component for drafting' identical at head, 53da7919 and 2fd6cc76. Other MTP heads (glm5_next_mtp.py:155, bailing_hybrid_mtp.py:80, mimo_v2_mtp.py:131, qwen3_5_mtp.py:167) and dflash2 likewise never set the cap. draft_gpu_split is not set by this recipe and STILL APPLIES if set: box probe with [4,2] at head produced no warning and a standalone draft load with use_per_device=[4,2]; the 24eb76d 'ignored' warning (model.py:509-514) requires load_with_target and is unreachable. A bump means a REBUILT IMAGE owned by SSHdotCodes: 80b0295a raises the engine floor to exllamav3>=1.6.6 (in-window b58f293, model.py:347) against a SHA256-pinned 1.6.0+cu132/torch2.13.0 wheel, so TabbyAPI-only is a hard fail before allocation; the minimum viable pair is TabbyAPI 80b0295a + exllamav3 1.6.6 (only cu128/torch2.9 and cu132/torch2.11 wheels exist for it, so the wheel and torch pins both change). Expert-cache served parity at a joint bump: UNKNOWN - it needs the maintainer's rebuilt recipe plus an idle PRO 6000 and ~104 GiB free RAM, both held by foreign jobs during verification. Site placement: fourth ExLlamaV3 recipe on site (after the 1x RTX 3090 RAM/NVMe tiering, 2x RTX 5090 hot-swap and 2x CMP 170HX entries), first on Blackwell, and first single-card GLM recipe in the 1x RTX PRO 6000 bucket (its prior GLM entries are all NVFP4 4-card lanes). The QFN sibling repo (qwen-3.8-flash-next-pro6000, SGLang) was intentionally not ingested, to avoid a third 1x6000 QFN entry. Attribution detail: the cache intercepts host-resident experts' loads and rewrites multi_{gate,up,down}.ptrs_trellis in place; the launcher refuses to pin experts unless memory.swap.max reads 0. Scope: PREPROD ONLY - prod rides a PROD SYNC wave; pins move only after the image rebuild AND a fresh box verification."
cold_start: '55-60 s process start to ready'
client_caveat: "Client caveat (only on a BUMP): 8ad8efe added param_types to glm4_5.parse_toolcalls and a declared-type argument to coerce_param_value (common.py:75), so a parameter the tool schema declares type=string now stays a verbatim string ('123' stays '123') where 2fd6cc76 json.loads-coerced it to an int. Clients relying on server-side numeric coercion of string-declared params would see a type change. Partial tool_calls argument deltas do NOT apply here - DELTA_STREAMERS is qwen3_coder only (toolcall_stream.py:470) and this slug auto-detects glm4_5 (verified live at head and both pins), so streaming frames are unchanged. Head's own tool-pipeline tests ran real on the box: 100 passed, 2373 subtests."
launcher_gates: 'exl3/run.py preflight refuses: non-Linux, GPU compute processes active, anything but exactly one RTX PRO 6000 Blackwell with <94,000 MiB free, MemAvailable <104 GiB, missing/wrong-size weights vs model.lock.json, missing cgroup v2; serve() refuses to pin experts unless memory.swap.max reads 0'
verified_public_build: 'Oct 9 fresh-checkout install resolved the same package versions; download.py --verify-only checked all 28 files by size+SHA-256; api_check.py passed 14/14 checks including vision; public-build numbers within noise of the measured install (63.14 vs 61.48 short decode)'
expert_cache
knobs: 'exl3/config.local.json: static_experts (40), cache_slots (148); env read by glm_cache2.py: GLMC_DECAY, GLMC_STAGE, GLMC_COPY_BLOCKS, GLMC_PREFETCH (off - measured net loss, competes with demand misses for PCIe)'
layout: "per MoE layer (42 layers, 288 experts each, top-8 routing, ~9 MiB/expert at 3.05bpw): 40 static experts in VRAM (highest routing counts from exl3/cache/routing-counts.json, summed over 8 prompts / 73,667 routed rows), 148 VRAM slots as an LFU cache, remaining 100 experts in page-locked device-mapped host RAM (91.5 GiB total); glm_cache intercepts the host-resident experts' load"
mechanism: 'decode: ec_manage runs as one CUDA block per layer right after routing - LFU scores decay 0.995, each miss takes the lowest-scoring slot unused by the current call, pointer tables multi_{gate,up,down}.ptrs_trellis rewritten in place, then ec_copy streams missed experts from host RAM at ~49 GB/s over PCIe 5.0 x16; both kernels read the miss count on device so decode never synchronizes with the host; prefill: each chunk stages the uncached experts it needs into one VRAM staging area shared by all layers and points the tables at the staged copies for the call'
policy_data: 'benchmarks/exl3-20261009/cache-policy-simulation.txt: replaying 8 traces, misses/token at 170 slots - static top-170 100.9, LRU 31.5, LFU decay 0.995 29.3, Belady bound 13.6; a dynamic cache matters far more than the choice among dynamic policies'
Use this recipe with your agent
Paste this into any agent chat — it fetches and applies the recipe:
Fetch https://localairecipes.com/api/v1/recipes/glm-5-3-flash-exl3-3-05bpw-on-1x-rtx-pro-6000-gpu-expert-cache-h.json and apply the inference recipe it describes (engine flags, model, quant, context) to my setup. Ask before overwriting any existing config.Or fetch it directly:
curl -fsSL https://localairecipes.com/api/v1/recipes/glm-5-3-flash-exl3-3-05bpw-on-1x-rtx-pro-6000-gpu-expert-cache-h.jsonDownloads
- Weights https://huggingface.co/turboderp/GLM-5.3-Flash-exl3/tree/3.05bpw332ab457b709b7ba30dd9a448be5de03b80a7ac9
- Engine image https://github.com/turboderp-org/exllamav3/releases/tag/v1.6.0exllamav3-1.6.0+cu132.torch2.13.0 wheel sha256 21e517df8f8e19f07f8fa1075411a55f00689246d7844485c7c36b42b5666034
- Reference https://github.com/theroyallab/tabbyAPI2fd6cc76203a66e13042daf7d76e5898b21c1ad8
Revision notes
Admin revision 2026-11-07 (evidence t_bdcccf43 + t_9abf7f07; re-verified live). Condensed for the 2000-char cap; figures kept, mechanics in config.runtime.
Source: the author's repo at bcc27a75 (2026-10-09). Author's own figures from benchmarks/exl3-20261009/api-bench-exl3.json; 59/60 agent bench and mean KLD 0.0680 from agent-bench-exl3.json and turboderp's model-card chart per docs/exl3.md. Recipe by SSHdotCodes, EXL3 3.05bpw checkpoint by turboderp; no engine patches. Replaces the author's llama.cpp UD-IQ3_XXS recipe of 2026-09-20.
PIN DRIFT (2026-11-07). Pinned TabbyAPI 2fd6cc7620 is 80 commits behind upstream 80b0295aed6906be37bf64b13e60dfc213e3f601 (clone-verified; tip now 8f92fac). THIS REVISION MOVES NO PINS - the record still runs TabbyAPI 2fd6cc76 + ExLlamaV3 1.6.0. #515 (f2a3da3, merge 52c9e0c; +6/-1 in backends/exllamav3/model.py) only affects drafters carrying the load_with_target cap, which one exllamav3 1.6.6 architecture sets and no MTP head does; this recipe drafts via the main model's own MTP component, so it takes the unchanged branch - RISK NONE, NEUTRAL (box .55: load_with_target False, DRAFT-LOAD-OK, boot line identical across all three trees). draft_gpu_split at 80b0295a: STILL APPLIES and is honoured, never ignored - not set by this recipe, and a box probe with [4,2] at head raised no warning.
BLOCKING PREREQUISITE (flagged) - a REBUILT IMAGE owned by SSHdotCodes: TabbyAPI ships inside the third-party SSHdotCodes/glm-5.3-flash-pro6000 recipe (exl3/install.sh pins TABBY_COMMIT='2fd6cc76...' at repo HEAD bcc27a75, re-verified live 2026-11-07). 80b0295a raises the engine floor to exllamav3>=1.6.6 while the image SHA256-pins 1.6.0+cu132/torch2.13.0, so a TabbyAPI-ONLY bump is a hard FAIL before allocation. Expert-cache served parity at a joint bump: UNKNOWN.
tool_calls streaming: not applicable (this slug auto-detects glm4_5; DELTA_STREAMERS covers qwen3_coder only) - see config.runtime.client_caveat. PREPROD ONLY; PROD rides a sync wave.
Revision history
- 527dbfa912 recipe: sync 34 from preprod (wave 14 — 6 NEW: glm fp4-local hyperflare tp3, wtogami dspark-k7, dsv4+qwen r9700 radiance tp4, glm-3090 tiered-experts, qwen max-q lmcache + max-q eager; 28 revision bumps incl kraken .12.2 r21, Radiance 2.0.0, hotsplit seqs r2, dgx-spark r5 — owner go 2026-11-15/18) 16 d ago diff
- 340979d5b3 recipe: update glm-5-3-flash-exl3-3-05bpw-on-1x-rtx-pro-6000-gpu-expert-cache-h (r2: /storage_requirements) 45 d ago diff
- 373ca428e2 recipe: create glm-5-3-flash-exl3-3-05bpw-on-1x-rtx-pro-6000-gpu-expert-cache-h 56 d ago
Fork
Sign in to fork this recipe — a fork is your own copy; you own it and only you can update it.