Skip to content
Projects

About

FLYX is a Zero-dependency local LLM inference engine in a ~50 MB binary — native long context, tuned per GPU, built-in speculative decoding and web dashboard.

AI & Machine Learning

How these counts are measured

What you can do

  • Up to 6× faster generation — Built-in speculative decoding (MTP, DFlash2, DSpark, and prompt lookup): 565.5 tok/s on Qwen3.8-27B and 438.9 tok/s on Inkling-2-Mini on an RTX 5090 (Performance).
  • Up to 1M native context on a consumer PC — Runs Inkling-2-Mini at 1M context on 16 GB VRAM + 32 GB RAM.
  • Flash-Next QSA on 16 GB VRAM + 32 GB-class host memory — Qwen3.8-Flash-Next UD-IQ1_S ran at 352,256 tokens of configured context on Linux with 28.7 GiB of available host memory at launch. Measured setup and memory limits.
  • Tuned per GPU, zero manual flags — Ships measured kernel tuning tables for 16 NVIDIA GPUs and automatically sizes context length, K/V precision, and GPU/RAM placement from available memory. No guessing offload counts, batch sizes, or cache types.

Measured star growth

in 24h
+5
in 7 days
+129
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

FLYX: fast, lightweight local inference.

Apache-2.0 License Windows and Linux Join FLYX Discord WeChat Group QR

English · 中文 · 日本語 · 한국어 · Español · Français · Deutsch


Quick Start · Performance · Models · CLI & API · llms.txt

FLYX is a zero-dependency local LLM engine that fits in a single ~60 MB Windows .exe — fast speculative decoding, native long context, tuned per GPU, no setup required. Run supported GGUF models as they are and serve them to your browser, scripts, and coding agents over OpenAI- and Anthropic-compatible APIs.

FLYX built-in web dashboard showing live throughput, long-context sessions, VRAM and RAM usage, and recent agent requests
Built-in web dashboard: model management, chat, live throughput, memory breakdown, and one-click agent setup.

Key Features

  • Up to 6× faster generation — Built-in speculative decoding (MTP, DFlash2, DSpark, and prompt lookup): 565.5 tok/s on Qwen3.8-27B and 438.9 tok/s on Inkling-2-Mini on an RTX 5090 (Performance).
  • Up to 1M native context on a consumer PC — Runs Inkling-2-Mini at 1M context on 16 GB VRAM + 32 GB RAM.
  • Flash-Next QSA on 16 GB VRAM + 32 GB-class host memory — Qwen3.8-Flash-Next UD-IQ1_S ran at 352,256 tokens of configured context on Linux with 28.7 GiB of available host memory at launch. Measured setup and memory limits.
  • Tuned per GPU, zero manual flags — Ships measured kernel tuning tables for 16 NVIDIA GPUs and automatically sizes context length, K/V precision, and GPU/RAM placement from available memory. No guessing offload counts, batch sizes, or cache types.
  • No install, no dependencies, ~60 MB — CUDA and C++ runtimes are linked in; only the NVIDIA driver (≥ 580) is required. No CUDA Toolkit, Python, or Docker. Single ~60 MB .exe on Windows (double-click to run), or a tarball on Linux.
  • Built-in web dashboard & terminal monitor — Starts straight into a browser UI (7 languages) with guided next-step hints to search/download Hugging Face or local models, chat (text & images), read localized API docs, and watch live throughput, VRAM/RAM split, sessions, requests, and logs (monitor guide).
  • One-click coding agent integration — Speaks OpenAI (Chat Completions, Responses) and Anthropic Messages with tool calls and multi-turn prompt reuse. Launch Claude Code or Codex CLI straight into your project folder from Integration (Windows), or copy ready-to-run commands for DeepSeek Harness, OpenCode, and Pi.
  • Verified accuracy — Every GPU kernel is tested against a float64 reference; default FP8 K/V stays within KL 0.0009–0.0016 of 16-bit on 27B; speculative decoding is token-for-token identical to plain decoding (numerics).

Updates

  • v0.2.3 — Faster long context, .flyx packs, Qwen4Exp, and documents:
    • Long context — Inkling-2-Mini decodes plain at 145.3 tok/s at 200K context on an RTX 5090 (2.07× v0.2.2's 70.2). --kv-method auto now switches to the 2-bit copy where the session's real GPU placement says, measured at load when a drafter runs.
    • flyx pack — a GGUF with its drafters, vision projector and measured settings in one .flyx file, its blocks byte for byte; the dashboard lists a repository's .flyx tiers.
    • New models — Qwen4Exp (text and vision, with every drafter family) and image input for Inkling-2-Mini.
    • Documents — PDF, Word, PowerPoint, Excel and text files in the OpenAI and Anthropic APIs, read in process.
    • Still zero dependencies — one Windows .exe, ~60 MB.
  • v0.2.2 — EAGLE-4, DSpine and DFlash drafters, LoRA adapters, and a tighter VRAM fit:
    • More drafters — EAGLE-4 (with EAGLE-2 draft trees), DSpine, DFlash and DeepSpec's DSpark join MTP, DFlash2 and DSpark. Qwen3.8-27B + DFlash2 writes code at 546.6 tok/s on an RTX 5090 (5.84× plain decoding).
    • LoRA — PEFT adapters from --lora or the dashboard's LoRA tab, run unmerged on a fused CUDA path.
    • Tighter fit — loads into ~440 MiB less free VRAM on Windows; Linux packages for Ubuntu 22.04+ at about half the download size.
    • Dashboard — a dark theme, one-click LAN access and --chat-template-kwargs.
  • v0.2.1 — Speeds verified on four GPUs, Inkling-2-Mini with DSpark, and image input:
    • Qwen3.8-27B + DFlash2 writes code at 565.5 tok/s on an RTX 5090 (6.03× plain decoding), 305.7 on an RTX 4090, 332.8 on a 16 GB RTX 5070 Ti, and 234.1 on an RTX 3090. NVFP4 W4A4 prefill on the 5090 runs at 15,496 tok/s.
    • Inkling-2-Mini + DSpark — a new sparse-MoE model, with DSpark attached automatically: 438.9 tok/s on code on the 5090 (1.92× plain decoding), 322.4 on the 4090, 276.2 on the 5070 Ti, and 222.0 on the 3090.
    • Vision — image input from the CLI, the OpenAI and Anthropic APIs, and dashboard paste / drop, for vision-capable models with an mmproj projector.
    • Still zero dependencies — one Windows .exe, now ~57 MB.
  • v0.2.0 — Initial open-source release of FLYX: standalone ~59 MB zero-dependency Windows .exe & Linux tarball, native full-context GGUF & NVFP4 inference with automatic GPU/RAM K/V extension, built-in speculative decoding (MTP / DFlash2), 7-language web dashboard, and one-click Claude Code / Codex CLI integration.

Performance

Decode speed in tokens/s, verified on four GPUs (greedy). Plain is decoding with no drafter; the two Speculative columns turn the drafter on for chat and for code prompts, with the speedup over plain in parentheses.

Qwen3.8-27B + DFlash2 — chat / mixed: 3 prompts × 128 tokens; code: 1 prompt × 128 tokens.

GPU Quant Plain Speculative · chat / mixed Speculative · code
RTX 5090 (32 GB) NVFP4 93.8 315.5 (3.36×) 565.5 (6.03×)
RTX 4090 (24 GB) UD-Q4_K_XL 49.4 171.6 (3.47×) 305.7 (6.18×)
RTX 3090 (24 GB) UD-Q4_K_XL 42.8 131.2 (3.06×) 234.1 (5.46×)
RTX 5070 Ti (16 GB) UD-IQ3_XXS 68.8 154.4 (2.24×) 332.8 (4.84×)

Inkling-2-Mini + DSpark — chat / mixed: 8 prompts × 128 tokens; code: 8 prompts × 384 tokens.

GPU Quant Plain Speculative · chat / mixed Speculative · code
RTX 5090 (32 GB) UD-IQ3_XXS 225.5 259.8 (1.15×) 438.9 (1.92×)
RTX 4090 (24 GB) UD-IQ3_XXS 166.7 202.9 (1.22×) 322.4 (1.92×)
RTX 3090 (24 GB) UD-IQ3_XXS 126.2 136.5 (1.08×) 222.0 (1.75×)
RTX 5070 Ti (16 GB) UD-IQ3_XXS 150.9 169.3 (1.12×) 276.2 (1.80×)

× is the speedup over plain decoding on the same prompts, from unrounded rates; Plain shows the chat / mixed run. Speculative output matched plain decoding token for token in every run that recorded token IDs (all but the Windows Qwen mixed run). Linux, except the RTX 5070 Ti on native Windows 11.

Also measured: Qwen3.8-27B's built-in MTP drafter (no extra file) reaches 286.6 / 158.0 / 121.7 / 167.2 tok/s on the mixed prompts (5090 / 4090 / 3090 / 5070 Ti). RTX 5090 NVFP4: W4A4 prefill at 15,496 tok/s; 203.8 tok/s with MTP at 128K context (plain: 73.4); 164.5 tok/s at 256K with 100% needle retrieval. Hardware, drivers, and exact commands: docs/benchmarks.md.

Quick Start

1. Download and run (recommended)

Grab the latest release from GitHub Releases — requires only an NVIDIA driver (≥ 580):

  • Windows: Double-click flyx-0.2.3-windows-x86_64-cuda13.exe (or run .\flyx-0.2.3-windows-x86_64-cuda13.exe serve in PowerShell). The server starts and opens the dashboard automatically (picking another free port if 8080 is busy).
  • Linux / WSL2: Extract the tarball and run:
./bin/flyx serve
# Or load a Hugging Face GGUF directly into the standard HF cache:
./bin/flyx serve unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_XL

Two more to try — the DSpark drafter and the vision projector download with the model:

# Inkling-2-Mini, with DSpark attached automatically
flyx serve unsloth/Inkling-2-Mini-GGUF:UD-IQ3_XXS
# Ask about an image
flyx run unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_XL --image photo.png --chat -p "Describe the image."

Open the dashboard at http://127.0.0.1:8080 → pick or download a model in Model → launch Claude Code / Codex directly (or copy any agent command) from Integration.

Client / Endpoint Base URL
OpenAI SDKs (Chat Completions, Responses, Completions) http://127.0.0.1:8080/v1
Anthropic SDKs & Claude Code (ANTHROPIC_BASE_URL) http://127.0.0.1:8080
Web Dashboard http://127.0.0.1:8080/
Telemetry JSON (flyx monitor) http://127.0.0.1:8080/v1/telemetry
Build from source (CUDA 13, CMake 3.24+, Ninja, g++ 11+ / MSVC 2022)
cmake --preset dev && cmake --build --preset dev    # outputs in ~/flyx-build/bin

# Run or serve directly by Hugging Face name
~/flyx-build/bin/flyx run unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_XL --chat -p "Write a haiku about GPUs."
~/flyx-build/bin/flyx serve unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_XL --port 8080

WSL2 note: Keep build trees and model files on the Linux filesystem (~/models, ~/flyx-build); /mnt/<drive> degrades model load times severely.

Python usage & curl example
curl http://127.0.0.1:8080/v1/chat/completions -H "Content-Type: application/json" \
  -d '{"messages": [{"role": "user", "content": "Hello!"}]}'
import flyx

eng = flyx.Engine("~/models/Qwen3.8-27B-UD-Q4_K_XL.gguf", lib="~/flyx-build/bin/libflyx.so")
reply = eng.session().chat_full(
    [{"role": "user", "content": "Name the capital of France."}],
    enable_thinking=False,
    max_new_tokens=64,
)
print(reply["content"])
Run it in a container (optional)
docker build -f packaging/Dockerfile.server -t flyx:local .
docker run --gpus all --init -p 127.0.0.1:8080:8080 -v flyx-data:/data flyx:local    # the log prints the URL to open
docker run --gpus all --init -p 8080:8080 -e FLYX_API_KEY=secret -v flyx-data:/data flyx:local

docker compose -f packaging/docker-compose.yml up -d --build           # the same, with volumes and a health probe

The image is the release build of this checkout — 218 MB for two GPU architectures (86-real;89-real, 12 minutes on a 16-job host), no CUDA toolkit in it. The binary needs no Docker: this is the path for a pinned deployment, a card per container. The container serves with a key — FLYX_API_KEY, or one docker-entrypoint.sh generates, keeps in the volume and prints as http://127.0.0.1:8080/#key=… — because a request that arrives through a published port is not localhost to the server, and a keyless one there refuses the dashboard's own reads. docs/building.md's Docker section.

Supported Models & Hardware

Dimension Supported Notes
Architectures Qwen3.5 / Qwen3.8 (qwen35), Qwen4Exp (qwen4exp, qwen4, qwen4moe, qwen4_moe, qwen4dense, qwen4_dense, text and vision), Qwen3 (qwen3), Inkling-2-Mini (inkling2_loop, sparse MoE), Llama (MiniCPM5-1B) Llama from .flyx only
Speculative drafters MTP, DFlash2, DFlash, DSpark, DSpine, EAGLE-4, prompt lookup MTP and DSpark attach automatically; DFlash2, DFlash, DSpine and EAGLE-4 are companion files (--drafter-file, or Draft with it in the dashboard)
Vision Image input with an mmproj projector, fetched automatically from the model's Hub repo Qwen3.5, Qwen3.8, Qwen4Exp and Inkling-2-Mini
Documents PDF, Word, PowerPoint, Excel and text files in the OpenAI and Anthropic APIs, read in process (document input) Scanned PDF pages go as images to a model with vision
Model formats GGUF (F32, F16, BF16, Q2_0, Q4_0–Q8_0, Q2_K–Q6_K, IQ1–IQ4, MXFP4, GGML NVFP4, F8_E4M3); .flyx (BF16, NVFP4; format 2 with the target's own LoRA adapters, V-LoRA, run unmerged; a DV drafter, drafting only when named: --drafter dv, design; a GGUF packed with its drafters and recommended settings by flyx pack, models) Keep all split GGUF parts in the same folder.
GPUs RTX 30 / 40 / 50 series, L4, L40S, A100, H100 (sm_80–sm_120; sm_100 in Linux release) Single GPU per process (CUDA_VISIBLE_DEVICES); driver ≥ 580
Platforms Windows (native MSVC), Linux, WSL2 Single-file .exe / ZIP / wheel on Windows; tarball / manylinux wheel on Linux

Documentation

For AI agents, start with llms.txt.

Contact Us

For collaborations and partnerships, please contact us at [email protected].

License

Apache-2.0. Third-party attributions are listed in NOTICE and docs/prior-art.md.

Explore related projects

Loading…