mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #111] [CLOSED] Add secondary GPU expert store (--vram-experts) for low-RAM workstatins but with multi-GPU #2462
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2462
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/111
Author: @lukmanfauzie
Created: 9/29/2026
Status: ❌ Closed
Base:
main← Head:vram-experts-multi-gpu📝 Commits (1)
e3c166dAdd secondary GPU expert store (--vram-experts) for low-RAM workstations but with multi-GPU📊 Changes
21 files changed (+1369 additions, -220 deletions)
View changed files
📝
.gitignore(+5 -0)📝
include/strata/artifact/gguf_reader.hpp(+35 -0)📝
include/strata/core/expert_source.hpp(+162 -0)📝
include/strata/core/mtp.hpp(+1 -0)📝
include/strata/kernels/native_router.hpp(+3 -3)📝
include/strata/prefill/gemm.hpp(+1 -1)📝
include/strata/prefill/kernels.hpp(+2 -1)📝
serve/server.py(+49 -4)📝
serve/test_server.py(+96 -119)📝
serve/web/app.js(+5 -2)📝
setup.py(+226 -28)📝
src/core/expert_source.cpp(+217 -10)📝
src/core/layer.cpp(+3 -3)📝
src/core/mtp.cpp(+28 -10)📝
src/kernels/cpu/expert_layout.cpp(+9 -7)📝
src/kernels/cuda/native_router.cu(+18 -9)📝
src/prefill/gemm.cu(+21 -10)📝
src/prefill/prefill.cpp(+91 -5)📝
src/program/generate.cpp(+255 -7)📝
tools/iq_pack.py(+28 -1)...and 1 more files
📄 Description
On workstations with 32 GB of system RAM running Qwen3.8-Flash-Next, the full expert set cannot be cached in RAM, causing continuous and costly SSD page reads during prompt prefill.
This PR introduces a secondary-GPU VRAM tier (--vram-experts) that stores whole layers of experts on an idle second card (e.g., dual RTX 4060 Ti 16GB setups) and streams them via high-bandwidth PCIe D2H during prefill:
SECONDARY-GPU EXPERT STORE (--vram-experts):
PREFILL STREAMING & CHUNKING INTEGRATION:
SETUP, PRUNED MODEL SUPPORT & TELEMETRY:
Empirical Results & Direct Comparison
Metric / Feature
Our Dual-GPU Build (
--vram-experts)Upstream v0.1.21 (
--layer-split)Prefill Speed (22,278 tokens)
524.0 tok/s (42.5 s prefill time)
Cannot run / Fails startup
Time to First Token (TTFT)
45.7 s
N/A (Failed)
Decode Speed (16 tokens)
17.4 tok/s (919.9 ms)
N/A (Failed)
Expert Cache Hit Rate (GPU 0)
59.6% (7,146 / 12,000 requests)
0.0%
Secondary GPU Usage
GPU 1 holds 22 whole layers (14.5 GB) in VRAM for high-speed PCIe D2H prompt streaming Aims for pipeline split (layers 0..K-1 on GPU 0, K..47 on GPU 1)
Low-RAM Compatibility
Full support: Designed for 32 GB RAM with
--mmap-expertsSSD paging Incompatible: Explicitly rejects--mmap-expertsSystem RAM Footprint
Fits comfortably within 32 GB physical RAM
Demands 24–34 GB RAM resident arena
Windows WDDM Behavior
Cleanly creates CUDA contexts & buffers
cudaMemGetInforeportsout of memory; fails to allocate logits buffer🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.