mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[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
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#390
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?
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.