mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #556] Not fill the full VRAM with DSpark on 4x rtx 3090 (Minimax 3.1 flash + DeepSeek V4.1 flash 1017) #231
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#231
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?
Originally created by @bandito1 on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/556
I run many test and setting with DSV41 flash and Minimax 3.1 flash, but if I use DSpark, Maya didn't fill the VRAM to maximum. All time had 4-6GB empty space, which is never filled.
Hardver + Settings:
Version: Project Maya v1.1.32 · engine mm3
Model: MiniMax-M3.1-Flash
Engine: MiniMax-M3.1 (maya-mm3)
Context: 262 144 tokens
KV cache: 8-bit (INT8), streamed: 32 768 positions per layer in VRAM, the rest in RAM
Experts: 7296 routed; room for 2553 in VRAM and 4743 in RAM
Speculation: DSpark: its drafter proposes a few tokens at a time, the full model checks them (88% of them kept in the last answer)
Images: On
GPU: 4 × NVIDIA GeForce RTX 3090 · 96 GB
PCIe: Gen4 x16 on all 4 GPUs
CPU: AMD Ryzen Threadripper PRO 3975WX 32-Cores, 48 threads
RAM: 502 GB
Screenshot enclosed.

@mw00 commented on GitHub (Oct 27, 2026):
Thanks for the report and the screenshot - it showed the cause right away: GPU 1 at 20.7 of 24 GB while the others were full.
With 4 GPUs MiniMax runs as two tensor-parallel pairs, and the two GPUs of a pair hold the same experts (each one half of every expert). The DSpark drafter and the output head live on GPU 0 only, so GPU 0 filled up first, and GPU 1 kept the ~3 GB free that GPU 0 had spent on them.
Fixed in v1.1.34 for MiniMax: that space on GPU 1 now holds its half of more experts, so the CPU computes only GPU 0's half of those - less CPU work per token (decode about 1.2x faster on our two-GPU test with half of the experts outside VRAM), and no change to how much VRAM is kept free for safety.
DeepSeek: it has the same cause in a tensor-parallel pair - we measured 3.2 GB idle on the second GPU of a pair, right beside the drafter. But a DeepSeek GGUF such as your 1017 normally runs as a plain layer split, where each GPU fills on its own (our 2-GPU test with DSpark: under 0.5 GB left on both). So we can't yet tell which one your 4 GPUs run. Could you send the lines of the DeepSeek start that begin with
ds4: CUDA0 layers ...(one per GPU, they end in "MiB free")? If your start is a tensor-parallel pair,MAYA_DS4_DRAFT_DEV=0,1,0puts the drafter's second block on the other GPU of the pair and, on our test, took the idle room from 3.7 GB to 1.5 GB without slowing decode - an opt-in today; we'll look at the default once we see your lines.Released in v1.1.34: https://github.com/mw00/project-maya/releases/tag/v1.1.34
@bandito1 commented on GitHub (Oct 28, 2026):
Thanks for an update, Minimax now filled all GPUs, but DS41 stay big empty space on GPU1. I enclosed the screenshot.
Model: DeepSeek V4.1 · UD-Q8_K_XL · 256K context
I'll playing with 'MAYA_DS4_DRAFT_DEV=0,1,0' and report them here.
@bandito1 commented on GitHub (Oct 28, 2026):
With extra env: MAYA_DS4_DRAFT_DEV=0,1,0 same unfilled GPU1.
@bandito1 commented on GitHub (Oct 28, 2026):
This one is missed: