PolyStrata

Large mixture-of-experts models on the graphics card you already have. Open source, MIT, built on Strata.

Download the source (6.6 MB, commit b0e3b57a)

Or clone the full repository with its history and tags from this Space (install git-lfs first, the binaries are stored with it):

git clone -b source https://huggingface.co/spaces/VecSzn/PolyStrata

12 October: the GitHub pages of this project (github.com/VecSzn/PolyStrata, its releases and issues) are not visible at the moment: GitHub has put the account under review, and an appeal is in. The code is unchanged and is here meanwhile. The zip above is the source at the latest release, 0.1.43.1-poly.2, without the benchmark records and the media files. Unpack it and run START-HERE.bat on Windows or ./setup.sh on Linux. The ready-made Windows engine (strata-poly-windows-x64-bb7d247465918148.zip) will be put next to it; until then setup compiles the engine on your PC, which needs Visual Studio's build tools and the CUDA toolkit (setup offers to install them). Once the engine zip is here, set STRATA_POLY_PREBUILT_URL=https://huggingface.co/spaces/VecSzn/PolyStrata/resolve/main/ before running setup and it downloads it from here instead of GitHub.

A mixture-of-experts model only uses a few of its experts for each token. PolyStrata keeps the experts a model uses most on the GPU and computes the rest on the CPU from RAM, so a 35B model runs next to an 8 GB card and 32 GB of RAM. It reads the same GGUF files as llama.cpp, and its output is checked against llama.cpp token by token.

Same laptop, same model file, same request

PolyStrata on the left, llama.cpp b11540 on the right, on a laptop with an RTX 4070 (8 GB) and 32 GB of RAM, Qwen3.6-35B-A3B UD-Q3_K_M. On this laptop PolyStrata reads prompts 2.7 to 3.5 times as fast as llama.cpp and writes 1.5 to 1.8 times as fast; the comparison script is in the repository.

PolyStrata and llama.cpp answering the same request on the same laptop

Tokens per second

Tokens per second while writing an answer, laptop and workstation

Laptop: RTX 4070 (8 GB), Core i7-14700HX, 32 GB RAM

ModelSizeWrites, tokens/sReads a 10K prompt, tokens/s
Qwen3.6-35B-A3BUD-Q3_K_M94-1001,690
Qwen3.6-35B-A3BUD-Q2_K_XL123-1241,590
Qwen3.6-35B-A3BUD-Q4_K_M82-861,560-1,570
Ornith 1.5APEX-I-COMPACT76-821,620
Ornith 1.5APEX-I-MINI80-861,550-1,560
Ornith 1.5APEX-I-QUALITY59-631,570-1,580
Gemma 4 26B-A4BUD-Q3_K_M92-932,240
Gemma 4 26B-A4BUD-Q2_K_XL101-1042,150-2,160
Gemma 4 26B-A4BUD-Q4_K_M852,150
Tiel Coder 35B-A3BUD-Q3_K_XL831,700
Tiel Coder 35B-A3BUD-IQ3_XXS96-971,610
Tiel Coder 35B-A3BUD-Q4_K_XL74-791,660-1,670

Workstation: RTX 5090 (32 GB), Xeon Platinum 8470Q, 120 GB RAM

ModelSizeWrites, tokens/sReads a 10K prompt, tokens/s
GLM 5.3 Flash3.0BIT59-66820
GLM 5.3 FlashUD-IQ2_XXS50-521,060-1,080
GLM 5.3 FlashREAP50-Q3_K_M59-661,300-1,310
Qwen3.6-35B-A3BUD-Q3_K_M394-3956,350-6,550
Qwen3.6-35B-A3BUD-Q2_K_XL4506,400-6,590
Qwen3.6-35B-A3BUD-Q4_K_M363-4016,030-6,690
Ornith 1.5APEX-I-COMPACT316-3196,830-6,860
Ornith 1.5APEX-I-MINI289-3006,300-6,380
Ornith 1.5APEX-I-QUALITY289-2986,040-6,390
Gemma 4 26B-A4BUD-Q3_K_M353-3567,880-8,230
Gemma 4 26B-A4BUD-Q2_K_XL327-3407,380-8,000
Gemma 4 26B-A4BUD-Q4_K_M335-3467,040-8,050
Tiel Coder 35B-A3BUD-Q3_K_XL337-3456,570-6,830
Tiel Coder 35B-A3BUD-IQ3_XXS339-3516,090-6,520
Tiel Coder 35B-A3BUD-Q4_K_XL316-3226,750-6,870

GLM 5.3 Flash is a 79 to 114 GB file and needs about 100 GB of RAM beside a 32 GB card. Qwen3.8-Flash-Next runs on Strata's own engine; its numbers are in the README.

Works with Claude Code

The server speaks the OpenAI and Anthropic APIs on localhost, so Claude Code, Codex and other apps run against the local model. This is Claude Code on the laptop model, in real time:

Claude Code working against the local model

Install

Windows: download the source from the latest release and run START-HERE.bat; it installs a ready-made engine and the model. Linux: ./setup.sh builds the engine. AMD cards work on Linux as a beta. Details, every option and the community results are in the README inside the zip (docs/ has the rest).