Repository navigation
FLYX v0.3.1 — Qwen4-35B-A3B on 16 GB: Faster Prompts, Loads & MTP, Causal DFlash2 & Windows Fixes
Zero-dependency local LLM inference in a single 66.2 MB Windows .exe — no CUDA Toolkit, Python, or Docker required.
v0.3.1 makes Qwen4-35B-A3B on a 16 GB card faster to load and to run: long prompts up to 1.94× faster, repeat loads that open the model once, MTP with its experts held in 4 bits for drafting, a routing prior for the first request, and an optional causal DFlash2 drafter that writes code over 1.5× faster than plain decoding. On Windows, prompts read up to 4.8× faster, a load keeps 13–16 GB of RAM available, and a default UD-IQ4_XS load with MTP ends in 30–33 s instead of 39–43 s. It also fixes Windows serving under memory pressure: flyx serve defaults now serve UD-Q5_K_XL on a 16 GB PC, and a start short of memory no longer reports ready and then answers every request with HTTP 500. Every drafter still gives the same tokens as plain decoding; the one exception is an image whose token count GPU memory capped (Upgrade Notes).
Downloads
| Platform | File | Size | Notes |
|---|---|---|---|
Windows x86_64 (Single .exe) |
flyx-0.3.1-windows-x86_64-cuda13.exe |
66.2 MB | Recommended: double-click to start the server and open the web dashboard. |
| Windows x86_64 (Full ZIP) | flyx-0.3.1-windows-x86_64-cuda13.zip |
56.6 MB | CLI (flyx.exe), shared C API (flyx.dll), loadable backends, headers, and Python bindings. |
| Windows x86_64 (Python Wheel) | flyx-0.3.1-py3-none-win_amd64.whl |
52.8 MB | pip install Python bindings with bundled CPU & CUDA backends. |
| Linux / WSL2 x86_64 | flyx-0.3.1-linux-x86_64-cuda13.tar.gz |
107.9 MB | CLI (bin/flyx), shared C API (lib/libflyx.so), loadable backends (sm_80–sm_120), headers, and Python bindings (glibc >= 2.35, e.g. Ubuntu 22.04+). |
| Linux x86_64 (Python Wheel) | flyx-0.3.1-py3-none-manylinux_2_35_x86_64.whl |
103.1 MB | pip install Python bindings with bundled backends (glibc >= 2.35). |
| Checksums | SHA256SUMS.txt |
522 B | SHA-256 digests for all release files. |
Highlights
Qwen4-35B-A3B on a 16 GB Card
- Faster prompts (
#190) — Prompt passes now run the 64-row int8 expert kernel for IQ4_XS, Q5_K, Q6_K, IQ3_S and Q3_K experts too, which both unsloth files use. A 32K prompt's time to first token: UD-IQ4_XS 7.9 → 5.5 s (1.43×), UD-Q4_K_XL 10.5 → 5.4 s (1.94×) (RTX 5070 Ti 16 GB, Linux). Decode keeps its kernels and bits. - Repeat loads open the model once (
#179,#206) — A default load with MTP first loads the target alone to fix plain decoding's arithmetic, so drafting keeps plain decoding's tokens; v0.3.0 did this on every load. That answer is now kept and reused where the files, build, GPU, options and free memory match the last load: UD-IQ4_XS loads in 23.6 s instead of 41.6 s, andflyx servestarts that reuse it are ready in 19.4–27.1 s instead of 39.7–43.7 s (RTX 5070 Ti 16 GB, Windows 11). Same tokens either way. - MTP with 4-bit draft experts (
#192) —draft_experts=auto(default) holds the MTP layer's experts as Q4_K for drafting where the load offloads experts (432 MiB instead of 528), so more of the target's experts stay on the GPU: UD-IQ4_XS decodes at 126.7 tok/s on chat against 111.0 plain, UD-Q4_K_XL at 104.7 against 85.3 (RTX 5070 Ti 16 GB, Linux). The target's experts are never touched; tokens equal plain decoding. - Prompt lookup beside MTP only where it pays (
#194) — lookup rounds beside a drafter now run only where measured round costs say they give more tokens a millisecond; UD-IQ4_XS chat is level with--no-lookupand UD-Q4_K_XL chat about 2–3% faster than before. - A routing prior for the first request (
#180) — Qwen4-35B-A3B ships an expert routing table, so a fresh install places its resident experts from flyx's own corpus instead of blind: the first request +9% on chat and code at a 16 GB-like split (RTX 5090 forced to 128 resident experts a layer). - Causal DFlash2, optional (
#191) —--drafter dflash2 --drafter-file DIRruns RadixArk's causal DFlash2 drafter for Qwen4-35B-A3B, which you download from its author's repository (its model card states no license, so flyx does not pack, host or list it). Code at 205–210 tok/s against 131 plain (+57–61%, RTX 5070 Ti 16 GB, Linux); on a Windows 16 GB PC, +48% on code and level on chat. Tokens equal plain decoding.
Windows Performance
- Prompts up to 4.8× faster (
#197) — NTFS serializes unbuffered reads of a mapped file, and the n-gram table's rows are read from the GGUF on a 16 GB card; they now go through the file cache. A 4K UD-IQ4_XS prompt reads in 1.22 s instead of 5.86 s, a 32K one in 18.6 s instead of 50.1 s; UD-Q4_K_XL's 4K prompt in 2.72 s instead of 5.27 s (RTX 5070 Ti 16 GB, 31 GB RAM). Same tokens. - Faster loads of files larger than the free RAM (
#211) — such a file is now read unbuffered for the backend's open: UD-IQ4_XS's open takes 7.8–8.7 s instead of 10.2–13.2 s, and a default load with MTP ends in 30.2–32.6 s instead of 38.6–42.5 s.FLYX_LOAD_READS=offrestores the mapped reads. - RAM stays available during a load (
#203) — a load's file pages leave the working set as they are copied: the lowest available RAM during a UD-IQ4_XS load is 13–16 GB instead of 0–0.6 GB, and the peak working set under 2 GB.
Offload, Server, Library & Dashboard
- Long prompts priced per request (
#159) — a prefill loan competes with permanent expert moves on measured pass times: Inkling-2-Mini NVFP4's 128K prefill −19% (41.3 → 33.5 s) and 4K prefill −51% on a 16 GB RTX 5070 Ti (Linux), same tokens. - Images too large for the vision encoder's buffers are encoded at fewer tokens (
#189) instead of failing with out of GPU memory at--ctx maxon 16 GB; the reply'susage.imagesgives the counts. - Server (
#182) — structuredreasoning_contentreaches the chat template, stored Responses keep their documents, a replaced queued Responses request endsincomplete(HTTP 200) instead of 500, and integers aboveINT64_MAXrender exactly in templates. - Model library (
#184) — this machine's GGUFs get the Hub page's fit tag (UD-Q4_K_XL on a 16 GB GPU with 32 GB of RAM shows "fits with RAM" instead of "file too big"), and an unread header says unknown. - Dashboard (
#204) — a gear beside Load sets a model's load settings (context, K/V cache, drafter, vision encoder, LoRA, …) before its first load, so it loads once with them.
Fixes, ABI & API
- Windows serving under memory pressure (
#188,#201,#207,#215,#217) — the context fit counts the WDDM pinned budget and the commit the machine can reach (page-file growth included, grown before large page-locked allocations), so UD-Q5_K_XL serves underflyx servedefaults on a 16 GB PC and a start short of commit no longer reports ready and answers every request with HTTP 500. A refused session is cleaned up and answered with HTTP 503 and restart advice (newFLYX_ERR_HOST_OOM), an out-of-memory refusal no longer reads as a lost GPU, and a GPU context lost during the load fails the load. - Same tokens, every time (
#198,#187,#216) — a repeated prompt on CUDA with a Qwen3.5, Qwen3.8 or Qwen4 model replies as the first request did (12 of 12 repeats differed before), and drafted loads beside the CPU cold-expert path keep plain decoding's tokens. - Loads, drafters and batches (
#185,#186,#193,#195,#214) — PLE store and batch fixes; a Qwen4 MTP file with its own output head no longer stops CUDA;autono longer pairs EAGLE-4 with a DSpark GGUF and falls back to DFlash2 where MTP does not fit; a failed CUDA batch member no longer reruns the others; a lost CUDA context during load calibration fails the load at once instead of hanging (27 minutes on a Windows PC); an MTP out-of-memory handler no longer reads freed memory. - Hub & CLI (
#181) — interrupted downloads resume on NTFS, a mirror that ignores range requests fails at once, andflyx bench --json/flyx run --roundsrefuse to overwrite a file the command reads. - Backend ABI
79u→85u— rebuild out-of-tree backends (docs/design/architecture.mdlists every field). The C API is unchanged at4.
Upgrade Notes
- The first load after upgrading measures again: the new
.exenames its own file as its build, so the first Qwen4-35B-A3B load with MTP probes plain decoding and opens twice. - Prompt-pass bits change for files with IQ4_XS, Q5_K, Q6_K, IQ3_S or Q3_K experts (
#190), so a greedy reply after a long prompt can differ from v0.3.0's from some token on;--backend-opt moe_mmq=0restores the old bits. - A request whose session the GPU or its driver refuses for memory returns HTTP 503 instead of 500 (
#215); other backend errors stay 500. - On Windows the published context follows the pinned budget and the machine's commit room at load (
#188,#217), so a busy PC can publish a shorter context than a quiet start, andexpert_path=autocan take the CPU cold-expert path there. - An image's token count can depend on GPU memory (
#189): where the vision encoder cannot hold an image's full budget, its token count follows the memory free when it is encoded, the one exception to every drafter giving plain decoding's tokens. - A repeated prompt may prefill again (
#198): such a repeat's time to first token goes from 50–65 ms to 274–285 ms on a 16 GB RTX 5070 Ti.
Known Limits
- UD-Q5_K_XL on a 16 GB card with 32 GB of RAM (Windows) serves without a drafter, at 28,672–81,920 tokens with 13.7–18.5 GB of RAM available, and a
flyx servestart takes 94–295 s because it tries MTP first (about 56 s with--drafter none). - Page-locked memory taken by another program after the load (Windows): a new session refused for it answers HTTP 503, but a request on an existing session can fail with HTTP 500
rewind: r: out of memory. Restart flyx, with a shorter--ctxif it happens again. - A repeat start on a Windows PC whose free memory moves probes plain decoding again (about 15–40 s more), and Qwen4-35B-A3B prompts on Windows are still slower than on Linux with the same card.
Verified on the Release Build
- Windows (RTX 5070 Ti 16 GB, 31 GB RAM, Windows 11),
flyx servedefaults: UD-IQ4_XS ready in 27.6–33.7 s at 1,048,576 tokens with MTP, UD-Q4_K_XL in 37.3–40.3 s at 430,080–456,704 tokens with MTP, UD-Q5_K_XL in 102.8–109.8 s at 37,888–81,920 tokens without a drafter; MTP and plain decoding gave the same tokens on all 6 prompts of a greedy Gate 4 run. - Linux: the packages pass their smokes on an RTX 3090 (
glibc2.35 floor). On an RTX 5090 32 GB, where every expert stays on the GPU, a build of the same commit (Ubuntu 24.04) decodes UD-IQ4_XS at 273 tok/s plain and with MTP at 358 tok/s on chat and 401–405 on code, the same tokens as plain decoding.
The full notes, with each measurement's host and command: #199.
Quick Start
- Windows: Double-click
flyx-0.3.1-windows-x86_64-cuda13.exe, or run:.\flyx-0.3.1-windows-x86_64-cuda13.exe serve unsloth/Qwen4-35B-A3B-GGUF:UD-IQ4_XS
- Linux / WSL2:
tar -xzf flyx-0.3.1-linux-x86_64-cuda13.tar.gz cd flyx-0.3.1-linux-x86_64-cuda13 ./bin/flyx serve unsloth/Qwen4-35B-A3B-GGUF:UD-IQ4_XS - Open
http://127.0.0.1:8080in your browser.