Skip to content
RustingStrataGitHub
04 / 06
LLM inference / CUDA / Vulkan

RustingStrata

Run Qwen3.6-35B-A3B on a 12 GB GPU and decode 1.7× faster than llama.cpp. Experts that do not fit in VRAM run on the CPU alongside the GPU, and their placement adapts to the routing it sees. No C++, no ggml — CUDA kernels compile at run time, and the same kernels run on Vulkan. DeepSeek-V4.1-Flash and GLM-5.3-Flash load too.

113
tok/s decode after 4K (llama.cpp: 66.5)
160
tok/s decode with MTP drafts, at best
2,216
tok/s prefill at 4K (llama.cpp: ~2,236)
Qwen3.6-35B-A3B Q2_K_XL (11.7 GiB) on an RTX 3060 12 GB + Ryzen 5 7600X, CUDA backend; llama.cpp tuned for the same file.
Hybrid CPU/GPU MoECUDA and Vulkan backendsMTP speculative decodingOpenAI and Anthropic compatible serverImage input
runbash
$ cargo build --release
$ rustingstrata calibrate --model $M
$ rustingstrata chat --model $M --gpu
$ rustingstrata serve --model $M --gpu --addr 127.0.0.1:8080
Documentation

Read the docs

StartOverview

A pure-Rust inference engine for Qwen GGUF models: Qwen3.5/3.6 (qwen35moe, qwen35), Qwen3-Next (qwen3next), Qwen3.8-Flash-Next (qwen4exp), Qwen3 (qwen3, qwen3moe), DeepSeek-V4.1-Flash (deepseek41), GLM-5.3-Flash (glm5-next) and Recursive Flint (flint). CUDA kernels are compiled at run time with NVRTC through cudarc, and the same kernels also run on Vulkan (--backend vulkan): no C++ build step, no ggml. Experts that do not fit in VRAM run on the CPU at the same time as the GPU work, and the expert placement adapts to the routing it sees.

GuidesUsage

Everything here applies to rustingstrata chat, generate, bench and serve unless noted. See the README for install and a quick start, and HOSTING.md for running a server for other people.

GuidesHosting RustingStrata for other people

This page is for running rustingstrata serve as a service that other people or programs use over the network, for example to sell API access to a model. It covers keys, TLS through a reverse proxy, a systemd unit, health checks, the usage log for billing, and how many requests one server answers at once.

GuidesRustingStrata LoRA Abliteration

Runtime LoRA abliteration support for RustingStrata: an abliteration adapter is applied to the base model without requantizing or baking a new file; base GGUF weights on disk are never modified and memory uses F32 arithmetic (lossless equivalent of W + B·A·scale on resident tensors).

GuidesVision / multimodal plan

Status: Qwen3-VL image input works on the CPU path and on the GPU path. The projector, image preprocessing, prompt expansion and M-RoPE text integration run against qwen3.5-2b + qwen3.5-2b-mmproj.gguf; generate/chat --image and serve image requests (OpenAI image_url and Anthropic image blocks) work with or without --gpu.

GuidesSupported GPUs

Every GPU that has run RustingStrata, what was tested on it, and by whom. "Tested" means a person ran it on that card; "compiles" means the source builds for that architecture but nobody has run it there. Numbers are from rustingstrata bench on Qwen3.6-35B-A3B-UD-Q2_K_XL.gguf unless the row says otherwise, and are only comparable within one row.

GuidesAMD GPUs

All benchmarks in the README were run on an NVIDIA RTX 3060. AMD GPUs run the Vulkan backend (--backend vulkan), and everything known about them comes from user reports (RX 9070 XT on Linux with RADV, and on Windows with AMD's driver). Expect problems; this page lists the known ones and what to send when you hit a new one.

ReferenceBenchmarks

Every model RustingStrata runs, measured against llama.cpp; some also against other engines. Raw logs and older runs are in the benchmark history.

Referencellama.cpp baseline (M0)

Reference machine: RTX 3060 12 GB (about 1.7 GB used by the desktop), Ryzen 5 7600X, 32 GB RAM, CachyOS. llama.cpp commit 5d8ccdf9d, CUDA build (sm_86), flash attention on, all layers on GPU (-ngl 99). Model: Qwen3.6-35B-A3B-UD-Q2_K_XL.gguf (11.70 GiB).

ReferenceM2 results: GPU forward

Model: Qwen3.6-35B-A3B-UD-Q2_K_XL, RTX 3060 12 GB, Ryzen 5 7600X. llama.cpp reference commit 5d8ccdf9d.

ReferenceM4 results: chunked GPU prefill

Model: Qwen3.6-35B-A3B-UD-Q2_K_XL, RTX 3060 12 GB, Ryzen 5 7600X. Prompt: 3970 tokens (spec + plans text), strata generate --gpu --ctx 8192 -n 128, --chunk as listed (1024 until 8d0c3c4, then 4096). Three runs each, GPU otherwise idle.

ReferenceM6 results: v1 gate

Model: Qwen3.6-35B-A3B-UD-Q2_K_XL, RTX 3060 12 GB, Ryzen 5 7600X. 01:00-01:14, same session for both engines, everything under the GPU lock (730-790 MiB VRAM used by others before each step). Another loop's rustc builds pushed host load to 21-28 during the first Strata runs; the 512/4K rows were re-run at load 2.6-4.1 and those numbers are the ones below. The 32K rows ran at load 21-24 and are lower bounds.

ReferenceV100 results

Machine: Tesla V100-SXM2-32GB, driver 580.178.04, Vulkan 1.4.312, CachyOS. strata v1.2.0 + the gemmi_dp shared-memory fix (branch v100).

ReferenceA100, A30, L40S and H100 results

Four data-center NVIDIA cards on one Slurm cluster, one GPU per job. Rocky Linux 8.10, driver 615.71.09 (Vulkan 1.4.351), NVRTC 13.0 from the CUDA 13.0.1 toolkit, Rust 1.99.1, target-cpu=native. A job runs on whichever node with the requested GPU type is free, so the host CPU can differ between jobs, and the h100 type is either an H100 NVL or an H100 80GB HBM3. Each section lists the hosts it ran on. Numbers are comparable within one job only.

ReferenceThanks

RustingStrata runs on many machines it was never developed on because people tested it there, reported what broke and told us what they need. Thank you all.

Tutorials

Learn by building

No tutorials yet. Start with the RustingStrata docs.