mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5109] [Engine] On a mixed NVIDIA+AMD box the drafter is sized from the idle NVIDIA card: Auto sets --draft-conf 0.8 where the serving RX 7900 XTX's 9,239 slots prescribe 0.5 #2387
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#2387
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 @foomip on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5109
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
What happened
On a computer that has a small idle NVIDIA card and an AMD card that Strata actually serves from, the drafter's
confidence and single-card sizing are read from the NVIDIA card, which is not the card the engine runs on.
Measured on a box running Strata 0.2.10 from source with the HIP engine it compiled here (
gfx1100), which has anRTX 3060 12 GB (sm_86) that only drives the desktop beside the RX 7900 XTX the engine serves from:
strata_control.drafting.detect_hardware()returns('cuda', ['sm_86', 'gfx1100']):engine_component.detect_backend()answers('cuda', 'nvidia-smi'), andserve/server.pyputscuda_archs_present()beforehip_archs_present().serve/server.py: drafting_vram_mib()therefore returns 12288 MiB (the 3060). The serving XTX is 24560 MiB.drafting.expected_slots(12288, args)= 1761, andconf_for_slotsturns that into--draft-conf 0.8-confirmed on the engine's command line, not inferred.
GPU 0: AMD Radeon RX 7900 XTX (gfx1100)andfilling the GPU's expert cache (9239 experts, 17.53 GiB of VRAM). For 9239 slots that module's ownCONF_STEPSprescribes 0.5.
So an Auto start picks the confidence meant for a card holding 1,761 experts on a card holding 9,239, and nothing in the
output says a second card was consulted.
Two more consequences from the same wrong vendor answer:
drafting.hardware_support(*drafting.detect_hardware())returnsSupport(can_run=True, level='slower', line='On graphics cards like yours, DFlash2 was slower than MTP in our tests.'), because it evaluates thecuda/sm_86row. Forthe card in use it answers
Support(can_run=True, level='untested', line='DFlash2 has not been tested on your graphics card yet.')forhip/gfx1100. The card class used for the tables here isampere.vram_fit.fit_starttakes thecudabranch. Verified by calling it with those values: on this config it printed nonote and changed no arguments, so this point made no difference in our runs. That it would use
BASE_SLOTTED_MIB[('cuda','flash-next')] = 4990instead of[('hip','flash-next')] = 3900is read from the code:unconfirmed static analysis as to any effect.
Smallest steps or command that reproduce it
The lane is an ordinary single-card Qwen3.8 IQ3_S start:
--max-context 262144 --kv k8v4 --kv-resident 32768 --expert-cache auto --vram-reserve-mib 256, no"gpu"list in the config,"parallel"unset. Nothing about the box isunusual except that a second, unused GPU vendor is present.
Reproduction status
Reproduced locally
Strata version
Strata 0.2.10 - engine 0.1.56 (source checkout at tag
v0.2.10, the HIP engine compiled on this box forgfx1100,BUILD.jsonsource: local-hip)Graphics card, memory and system
Radeon RX 7900 XTX 24 GB (
gfx1100, the serving card) plus an idle GeForce RTX 3060 12 GB (sm_86, desktop only,NVIDIA driver 595.104.02) - 125 GB RAM - Pop!_OS 24.04 LTS, kernel 7.2.6-76070206-generic, Python 3.14.5, ROCm wheels
7.10.0a20251120 (
gfx110X-dgpu) in.venvWhat we measured with it
Interleaved arms on the same box and engine,
standard-v1. Every arm: 21 of 21 required requests finished, sanitychecks 12 of 12 (instruction 4/4, retrieval 4/4, tool calls 4/4). Medians; suite wall in the last column.
--draft-conf 0.8(what Auto chose)--draft-conf 0.7, run 1 / run 2--draft-conf 0.5(whatCONF_STEPSgives for 9239 slots)Read it with the noise kept in: within-run ranges are wide (the 0.7 arm gave 16K decode 66.5 [63.7-66.8] in one run and
58.2 [58.0-70.9] in the next), so one run per confidence does not separate the confidence from run-to-run spread. What
is consistent: prefill (1026-1043 / 1284-1288) and TTFT (12.76-12.81 s) do not move between drafters at all on this card,
and every DFlash2 arm's end-to-end 16K time (20.4-21.6 s) sits at or below MTP's (21.3-21.6 s) with a slightly faster
suite wall (2:57-3:03 against 3:01-3:07). The 0.5 arm was the best single run. DFlash2 is also the cheaper drafter here:
the expert cache came up at 9239 slots with DFlash2 against 9114 with the MTP (436 against 400 MiB free with the
model loaded), with the engine printing
drafter 625 MiB of VRAM (Q4_0 weights).These are our measurements on a card you say you have no way to run, not a recommendation.
What we did to work around it
Pinned the choice rather than leaving it to Auto, using the documented path for hand-set options
(
strata_control/user_args.py; options set by hand in"args"are regenerated,"user_args"survive every start):Suggested shape of a fix
The drafter's card should be the card the engine will run on, not the first one a probe finds - and both are already
known at that moment: the config's
"gpu"list or--gpu, and the installed engine'sBUILD.jsonbackendandarchs(herelocal-hip,["gfx1100"]). So: take the backend and arch from the engine that is about to start, fallingback to the present detection only when that is unknown. And when more than one vendor is present, say which card the
drafter was sized from - a wrong card silently changes a speed-critical number. A config that names its AMD card should
not be sized from an NVIDIA adapter it never uses.
What we did not test
layer split on a mixed box.
--expert-cache N(instead ofauto) makesapplyuse that number and so dodgevram_mib- thedocstring says it prefers the person's own value; we did not run it.
vram_fitbranch: on our config it changed nothing."parallel"set.Related: #3795 reported the same theme at install time on Windows ("an RTX 3060 + RX 7900 XTX rig, setup defaults to
NVIDIA"). This is a different code path - runtime control on Linux - where a second, unused vendor quietly changes a
speed setting rather than which build gets installed.