{"slug": "rustingstrata-pure-rust-llm-gguf-engine-runs-models-vram-on-cuda-and-vulkan", "title": "RustingStrata – Pure Rust LLM GGUF Engine, Runs Models > VRAM on CUDA and Vulkan", "summary": "RustingStudio released RustingStrata 1.4.0, a pure-Rust GGUF inference engine that runs mixture-of-experts models larger than VRAM by executing out-of-VRAM experts on the CPU alongside GPU work, with CUDA kernels compiled at runtime via NVRTC and the same kernels running on Vulkan. On an RTX 3060 12 GB with Qwen3.6-35B-A3B UD-Q5_K_M (25.2 GiB), RustingStrata decoded at 80.5 tok/s versus llama.cpp's 64.4 tok/s and prefilled a 4K prompt at 1530 tok/s versus 1118-1122 tok/s; on UD-Q2_K_XL (11.7 GiB) it decoded at 113.4 tok/s versus 66.5 tok/s. The engine supports Qwen3, Qwen3-Next, Qwen3.5/3.6, Qwen3.8-Flash-Next, Recursive Flint, Gemma 4, DeepSeek-V4.1-Flash, GLM-5.3-Flash, Hy4-flash, Inkling 2 Mini and Kolibri 1.1, and ships installers for Windows, Linux x86_64 and Arch Linux (AUR).", "body_md": "A pure-Rust inference engine for GGUF models, built for MoE models that do not fit in VRAM. The CUDA kernels are compiled at run time with NVRTC, and the same kernels run on 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.\n\nSupported models: Qwen3, Qwen3-Next, Qwen3.5/3.6, Qwen3.8-Flash-Next, Recursive Flint, Gemma 4, DeepSeek-V4.1-Flash,\nGLM-5.3-Flash, Hy4-flash, Inkling 2 Mini and Kolibri 1.1. The architectures, the GGUF types and the notes for each model are in\n[docs/MODELS.md](https://github.com/RustingStudio/RustingStrata/blob/main/docs/MODELS.md).\n\nVersion 1.4.0.\n\nQwen3.6-35B-A3B on an RTX 3060 12 GB (Ryzen 5 7600X, 32 GB RAM), CUDA, greedy, against llama.cpp tuned for the same file. Neither file fits in VRAM.\n\n|  | RustingStrata | llama.cpp | \n|---|---|---|\n| UD-Q5_K_M (25.2 GiB), decode after a 4K prompt | **80.5 tok/s** | 64.4 | \n| UD-Q5_K_M, prefill of a 4K prompt | **1530 tok/s** | 1118-1122 | \n| UD-Q2_K_XL (11.7 GiB), decode after a 4K prompt | **113.4 tok/s** | 66.5 | \n| UD-Q2_K_XL, prefill of a 4K prompt | 2216 tok/s | ~2236 | \n\n`serve --parallel N` decodes the requests together in one batched forward (CUDA). Same machine, same load script\n(`tools/loadtest.py`: N streamed chats at once, 128 reply tokens each, greedy), total decode tok/s:\n\n| Clients | Qwen3-4B, RustingStrata (Q4_K_M) | Qwen3-4B, vLLM 0.33 (bf16) | Qwen3.6-35B-A3B UD-Q5_K_M, RustingStrata | \n|---|---|---|---|\n| 1 | 91.3 | 36.7 | 49.0 | \n| 4 | 228.1 | 139.9 | 88.9 | \n| 16 | 799.0 | 520.1 | 100.7 | \n| 64 | 1698 | 1688-1765 | 129.3 | \n\nvLLM runs bf16 weights and RustingStrata Q4_K_M, so the dense columns are not like for like. The 27 GB MoE file does not fit on the 12 GB card, so vLLM was not run on it. RustingStrata reads each expert once for all requests of a step, runs the experts that are not in VRAM on the CPU, and keeps slot state that does not fit in VRAM in RAM. The MoE column moves by about 30% between runs on this machine (the 27 GB file is read through a 30 GB page cache).\n\nThe method, the ranges, Vulkan, the other models and the quality checks are in\n[docs/BENCHMARKS.md](https://github.com/RustingStudio/RustingStrata/blob/main/docs/BENCHMARKS.md).\n\nWindows (PowerShell; installs to `%LOCALAPPDATA%\\Programs\\RustingStrata`, adds it to PATH and makes a Start menu\nentry that opens the chat page):\n\n```\nirm https://raw.githubusercontent.com/RustingStudio/RustingStrata/main/install.ps1 | iex\n```\n\nLinux x86_64 (installs to `~/.local/bin`):\n\n```\ncurl -fsSL https://raw.githubusercontent.com/RustingStudio/RustingStrata/main/install.sh | sh\n```\n\nArch Linux: `yay -S rustingstrata-bin` (AUR). Or download a binary from the\n[releases page](https://github.com/RustingStudio/RustingStrata/releases), or build it (Rust 2024 edition; on Windows\ninstall the Visual Studio C++ Build Tools first):\n\n```\ncargo build --release    # the binary is target/release/rustingstrata\n```\n\nThen `rustingstrata serve --gpu --open` opens the chat page, which downloads models, and `rustingstrata interface`\nasks a few questions in the terminal. `rustingstrata update` replaces the binary with the newest release (`--check`\nonly says whether one is out); `serve` prints a line at start when a newer release is out. A binary installed by a\npackage manager (the AUR package) is updated with that package manager.\n\nA GPU run needs one of:\n\n- an NVIDIA driver with the CUDA NVRTC library (loaded at run time). Volta (sm_70), Turing (sm_75) and Ampere or newer\n(sm_80+) work; CUDA 13 dropped Volta, so a V100 needs the 12.x toolkit. Pascal and older use Vulkan.\nThe library is found by name (`libnvrtc.so` ; on Windows`nvrtc64_130_0.dll` or`nvrtc64_120_0.dll` , on`PATH` or\nunder`%CUDA_PATH%\\bin` );`STRATA_NVRTC` names another file. Without it the run falls back to Vulkan.\n- a Vulkan 1.3 driver with shaderFloat64, int8/16/64 and subgroup size 32 or a fixed 64 (tested on RTX 3060, Radeon VII and V100; Intel Arc lacks shaderFloat64).\n- for `--backend hip` : a ROCm runtime with hiprtc (`libamdhip64.so` ,`libhiprtc.so` ), also loaded at run time; the\nkernels are compiled for the card's`gfx` target on first use. Experimental — status, numbers and limits are in[docs/HIP.md](https://github.com/RustingStudio/RustingStrata/blob/main/docs/HIP.md) .\n\n`--gpu` picks CUDA when it loads, else Vulkan; `--backend` chooses (`cuda`, `vulkan` or `hip`). The first CUDA run compiles the kernels (~15 s) and\ncaches them. Every GPU tried so far is in [docs/SUPPORTED_GPUS.md](https://github.com/RustingStudio/RustingStrata/blob/main/docs/SUPPORTED_GPUS.md).\n\nRun `rustingstrata` with no arguments (double-click `rustingstrata.exe` on Windows). It starts a server on\n[http://127.0.0.1:8080](http://127.0.0.1:8080) and opens a chat page that downloads models from Hugging Face and switches between the ones in\nyour models folder. Any app that takes an OpenAI-compatible address (Open WebUI, Jan, SillyTavern, code editors) can\nuse `http://127.0.0.1:8080/v1`.\n\n`rustingstrata interface` asks for the model, the mode (terminal chat, chat page, API server, speed test), GPU or CPU,\nthe context length and the address, prints the command these make and runs it.\n\nWith flags:\n\n```\nM=path/to/model.gguf\n\nrustingstrata calibrate --model $M --dry-run  # preview the workload matrix and knob space\nrustingstrata calibrate --model $M     # once per model and machine: best chunk, MTP drafts, short threshold\nrustingstrata chat --model $M --gpu    # --think for thinking mode, --temp 0.7 to sample\nrustingstrata generate --model $M --gpu --prompt \"Write a haiku about rivers.\" -n 128\nrustingstrata serve --model $M --gpu --addr 127.0.0.1:8080\nrustingstrata bench --model $M --gpu --pp 512,4096 --tg 128\n```\n\nWithout `--gpu` the model runs on the CPU reference, which is slow and meant for checking. DeepSeek, GLM, Hy4 and\nInkling 2 open the GPU by themselves.\n\n- [USAGE.md](https://github.com/RustingStudio/RustingStrata/blob/main/docs/USAGE.md) : flags, the chat page and MCP tools, the OpenAI and Anthropic APIs, prompt caching,\nseveral GPUs.\n- [CALIBRATION.md](https://github.com/RustingStudio/RustingStrata/blob/main/docs/CALIBRATION.md) : the budgeted search, task corpora, the`spec` sweep and the JSON file.\n- [MODELS.md](https://github.com/RustingStudio/RustingStrata/blob/main/docs/MODELS.md) : supported architectures and GGUF types, notes and caveats for each model.\n- [BENCHMARKS.md](https://github.com/RustingStudio/RustingStrata/blob/main/docs/BENCHMARKS.md) : every model against llama.cpp; older runs are in the[benchmark history](https://github.com/RustingStudio/RustingStrata/blob/main/docs/README.md#benchmark-history) .\n- [HOSTING.md](https://github.com/RustingStudio/RustingStrata/blob/main/docs/HOSTING.md) : running a server for other people.\n- [SUPPORTED_GPUS.md](https://github.com/RustingStudio/RustingStrata/blob/main/docs/SUPPORTED_GPUS.md) and[AMD.md](https://github.com/RustingStudio/RustingStrata/blob/main/docs/AMD.md) : the GPUs tried so far and AMD notes.\n- [VISION.md](https://github.com/RustingStudio/RustingStrata/blob/main/docs/VISION.md) : image input.[LORA.md](https://github.com/RustingStudio/RustingStrata/blob/main/docs/LORA.md) : LoRA adapters.\n- [ROADMAP.md](https://github.com/RustingStudio/RustingStrata/blob/main/ROADMAP.md) : what is planned next, by section; ideas from users are welcome.\n\n```\ncargo test --release                      # GPU tests need the model: STRATA_MODEL=path/to/model.gguf\npython -I tools/parity.py $M --extra \"--gpu\" --tag gpu   # agreement with llama.cpp (needs llama-server once)\n```\n\nCI only builds, so run the tests before a pull request.\n\nSource map: `src/gguf.rs` (file reader), `src/quant/` (dequantization), `src/model.rs` (CPU reference forward),\n`src/cuda/` and `src/vulkan/` (GPU kernels, behind `src/backend.rs`), `src/gpu_model.rs` (GPU forward),\n`src/expert_cache.rs` (expert placement), `src/deepseek/`, `src/glm/`, `src/hy4/`, `src/inkling2/` and `src/gemma4/`\n(the models with their own forward), `src/serve.rs` (HTTP), `src/chat.rs` (chat templates and tool calls),\n`src/main.rs` (CLI).\n\nRustingStrata is released under the [RustingStrata License 1.0](https://github.com/RustingStudio/RustingStrata/blob/main/LICENSE.md). You may use, modify and distribute it,\nincluding for commercial services, as long as you keep the license and credit Vasyl Trefilov as the original author.\nYou may not sell RustingStrata itself.", "url": "https://wpnews.pro/news/rustingstrata-pure-rust-llm-gguf-engine-runs-models-vram-on-cuda-and-vulkan", "canonical_source": "https://github.com/RustingStudio/RustingStrata", "published_at": "2026-11-26 18:21:05+00:00", "updated_at": "2026-11-26 18:42:57.545719+00:00", "lang": "en", "topics": ["ai-infrastructure", "large-language-models", "ai-tools", "mlops"], "entities": ["RustingStudio", "RustingStrata", "Qwen3.6-35B-A3B", "llama.cpp", "vLLM", "NVIDIA CUDA", "Vulkan", "RTX 3060"], "also_reported_by": [], "takeaway": "RustingStrata 1.4.0 runs MoE experts that exceed VRAM on the CPU concurrently with GPU work, reaching 80.5 tok/s decode on a 25.2 GiB Qwen3.6-35B-A3B file on a 12 GB RTX 3060 versus llama.cpp's 64.4 tok/s.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/rustingstrata-pure-rust-llm-gguf-engine-runs-models-vram-on-cuda-and-vulkan", "markdown": "https://wpnews.pro/news/rustingstrata-pure-rust-llm-gguf-engine-runs-models-vram-on-cuda-and-vulkan.md", "text": "https://wpnews.pro/news/rustingstrata-pure-rust-llm-gguf-engine-runs-models-vram-on-cuda-and-vulkan.txt", "jsonld": "https://wpnews.pro/news/rustingstrata-pure-rust-llm-gguf-engine-runs-models-vram-on-cuda-and-vulkan.jsonld"}}