[PR #198] VRAM swaps beside a DFlash window's all-CPU plan: the background swaps ran only when the decode's own plan was all-CPU, so with DFlash the VRAM tier stopped following the conversation #390

Closed
opened 2026-10-29 21:24:57 +07:00 by bsakaguchi · 0 comments
Owner

Original Pull Request: https://github.com/mw00/project-maya/pull/198

State: closed
Merged: Yes


What this changes

fast_boundary's swaps (a hot RAM-tier expert in, a cold VRAM one out) run only when the CPU lane takes every
RAM-tier expert of a route (lane_all, from the decode's cpu_plan) - otherwise the routes' own promotions keep the tier
current. A batched DFlash window on two CPU lanes routes with its own all-CPU plan (STRATA_GLM_WIN_ALLCPU), so it
promotes nothing, while the decode's calibrated plan is not all-CPU: neither the promotions nor the swaps run, and the
VRAM tier keeps what it held when the drafting began. The swaps now also run when the window's plan is all-CPU
(dflash_on_, both window lanes, STRATA_GLM_WIN_ALLCPU not 0).

One V100-PCIe-32GB + Ryzen 9 7950X, Maya-S24, Q4_K_M DFlash2 drafter, three 256-token greedy answers, two rounds
each (with #195 and #197, which make the window run and give it its two lanes here): VRAM hit 49 / 62 / 54% ->
54 / 67 / 59% in both rounds; DFlash decode 26.0 / 26.1 / 31.9 and 26.3 / 26.1 / 32.0 -> 25.4 / 26.7 / 30.7 and
25.7 / 27.1 / 31.3 tok/s - the same within run-to-run noise over 256 tokens; the tier's state is what it fixes.

**Original Pull Request:** https://github.com/mw00/project-maya/pull/198 **State:** closed **Merged:** Yes --- ## What this changes fast_boundary's swaps (a hot RAM-tier expert in, a cold VRAM one out) run only when the CPU lane takes every RAM-tier expert of a route (lane_all, from the decode's cpu_plan) - otherwise the routes' own promotions keep the tier current. A batched DFlash window on two CPU lanes routes with its own all-CPU plan (STRATA_GLM_WIN_ALLCPU), so it promotes nothing, while the decode's calibrated plan is not all-CPU: neither the promotions nor the swaps run, and the VRAM tier keeps what it held when the drafting began. The swaps now also run when the window's plan is all-CPU (dflash_on_, both window lanes, STRATA_GLM_WIN_ALLCPU not 0). One V100-PCIe-32GB + Ryzen 9 7950X, Maya-S24, Q4_K_M DFlash2 drafter, three 256-token greedy answers, two rounds each (with #195 and #197, which make the window run and give it its two lanes here): VRAM hit 49 / 62 / 54% -> 54 / 67 / 59% in both rounds; DFlash decode 26.0 / 26.1 / 31.9 and 26.3 / 26.1 / 32.0 -> 25.4 / 26.7 / 30.7 and 25.7 / 27.1 / 31.3 tok/s - the same within run-to-run noise over 256 tokens; the tier's state is what it fixes.
bsakaguchi 2026-10-29 21:24:57 +07:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mw00/project-maya#390
No description provided.