capy-flash
github.com/valeriodolci/capy-flash- Category
- Developer Tools
- Rank
- No. 1253Tools index
Previous survey · No. 1246 ·
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Models: Train & Run
- Interfaces
- API
- GitHub
- 172 stars
- Latest release
- v0.16.9
- Date
About
capy-flash is an inference engine that runs the 125B mixture-of-experts Qwen3.8-Flash-Next model in NVFP4 on two 16 GB consumer GPUs. It uses tensor parallelism across both cards and keeps experts that do not fit in VRAM in system RAM, computed on the CPU. It exposes OpenAI- and Anthropic-compatible APIs, and the README reports faster prefill and time to first token than a compared engine on the same hardware.
At a glance
capy-flash serves selected Qwen models locally on Linux machines with RTX 50-series GPUs. For the large mixture-of-experts model, it keeps part of the work in host RAM and on the CPU so the model can exceed GPU memory. Its compatible API lets existing clients address that local server.
Good fit
A candidate for developers who already own suitable hardware and want to trade setup work for local inference. Start with the 27B model on one 16 GB GPU if that is your machine. The much larger Flash-Next option makes sense only after checking host memory, disk space and the workload you actually need.
Consider something else when
Your GPU is outside the supported sm_120 architecture, or you want hosted inference without maintaining a machine. OpenAI/Anthropic-compatible request formats do not mean the server runs those companies’ models. Model size and quantization also affect output quality; fitting in memory is only the first requirement.
Start here
Choose the model tier before downloading weights. The documented serve-27b-16gb.sh launcher targets the 27B three-bit configuration; Flash-Next uses a different launcher and substantially more RAM. Once serving, inspect /v1/models and send one short synthetic request before connecting a coding agent or exposing a network endpoint.
Cost and requirements
Requires Linux x86_64, a supported RTX 50-series GPU with at least 16 GB VRAM and CUDA 13.1-compatible R580+ drivers. The 27B three-bit tier needs about 15 GB disk and roughly 8 GiB free host RAM. Flash-Next tiers need tens of GiB more RAM and over 100 GB disk. Apache-2.0 engine code and model-weight licences are separate; hardware and power still cost money.
Limits to know
Serving defaults to loopback with optional API-key authentication; configure access deliberately before exposing it. Default concurrency is one, and conversation caches can consume host memory or disk. Published token rates describe the author’s machines and configurations, so they do not establish your latency or answer quality. Model loading and warm-up also precede readiness.
Related work
Sources checked 2026-10-30. Source-based assessment.
Read the source review
What it does
A local inference server for two Qwen3.8 models on one or two RTX 50-series graphics cards with 16 GB of memory each. The larger one is a mixture-of-experts model, where each token only uses a few expert sub-networks; it is too big for the cards, so the experts that miss graphics memory sit in system RAM and run on the processor. Agent tools such as Claude Code, Codex CLI and OpenCode connect through local endpoints that speak the OpenAI and Anthropic formats, as if it were a hosted model.
Why it's ranked here
Few projects pin down running a 125-billion-parameter model on gaming hardware this precisely. Memory needs are spelled out per configuration, down to 64.6 GiB of page-locked RAM for the default expert bank, and the server refuses to start, printing the numbers, when memory falls short. It computes every expert the router picks rather than skipping misses, so output quality is not traded for speed. The limit is scope: the README says it was built, tested and measured on one machine, with other setups user-reported.
What's good
Setup is careful. The installer checks GPUs, driver, CPU vector extensions, RAM and disk before downloading anything, then verifies the release and the model. Tested profiles bundle the right flags per model, and any flag you add still overrides them. Idle conversations move to RAM, and optionally to disk, instead of being recomputed, which helps agents that resend long histories. The server exits with a distinct status when the engine fails so a supervisor can restart it, and example systemd and llama-swap setups ship with it.
Tradeoffs
The hardware window is narrow. The build accepts only the RTX 50-series GPU architecture and stops on anything else. The default large model needs two cards, a 96 GB machine with about 75 GiB free, a CPU with AVX2 or AVX-512, and about 135 GB of disk. Native Windows is a community port outside the releases, and Windows or WSL2 limits on pinned memory slow some layers. The tested profiles serve one request at a time, and much of the engine's maintainer documentation is written in Chinese.
How to use it well
Pick a row from the README's model table by GPU count and RAM, and run the installer's check mode first. One 16 GB card with little RAM gets the 3-bit 27B, which the README reports at about 0.72 on MMLU-Pro against 0.78 for the NVFP4 version. Start it through the bundled launchers, since Codex CLI needs the custom chat template they pass. Claude Code only needs its base URL pointed at the local address. It fits one person running a private agent backend, not a shared multi-user server.
Technical notes+
CMakeLists.txt fails configuration unless CMAKE_CUDA_ARCHITECTURES is 120a and sets C++20/CUDA 20; src/CMakeLists.txt adds core, artifact, text, media, ops, models and runtime, with product and serve only when apps or tests are enabled (BUILD_TESTING is off by default). apps/serve/main.cpp refuses a disk-cache directory held by another PID before loading weights, warms up before attaching the service, returns 2 when engine_failed() is set and persists the context cache on clean shutdown. docs/maintainer/engine-architecture.md (Chinese) splits the path into Gateway, Frontend, Engine and Program, with FIFO admission, no preemption of active requests, max_concurrency 1..8 and a single worker as the only mutation owner. docs/maintainer/paged-kv-cache.md fixes 64-token page groups across BF16, INT8-G64, FP8-E4M3 row-256, NVFP4-G16 and K8V4 KV profiles; at tp 2 rank 1 mirrors rank 0's page decisions without its own bookkeeping. docs/maintainer/dflash.md specifies DFlash2 drafting for the 27B (K 1..15) with a rejection-sampling verify that keeps the target distribution. docs/serving.md documents the pinned-host mailbox for tensor parallelism without peer-to-peer and the CPU expert-thread defaults.
Observed
- Language
- C++20 and CUDA, built with CMake
- GPU support
- NVIDIA sm_120a (RTX 50 series) only; other CUDA architectures are rejected at configure time
- Platform
- Linux x86_64, tested on Ubuntu; native Windows exists only as a community port
- Interfaces
- HTTP server with OpenAI Chat Completions, OpenAI Responses and Anthropic Messages endpoints; one-shot CLI
- Packaging
- Prebuilt release tarball with launchers, install script, Docker images, or build from source
- Multi-GPU
- Tensor parallelism across two GPUs; peer-to-peer not required
- Authentication
- Optional API key accepted as a bearer token or x-api-key header
- Provenance
- Fork of Neroued/ninfer, previously named ninfer-tp2
Read from README.md, CMakeLists.txt, docs/maintainer/engine-architecture.md, apps/cli/main.cpp, apps/serve/main.cpp, docs/serving.md, docs/cli.md, docs/performance.md, src/CMakeLists.txt, docs/maintainer/paged-kv-cache.md, docs/maintainer/dflash.md.
Similar tools
Tags
Tech Stack
Media
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.