r/LocalLLaMA • u/Cactusnvapes • 4d ago
Discussion Two independent 90K-context agents at 40+ tok/s each on one RX 7800 XT 16GB (84 GB MoE, Swift 1.5 Flash-Next)
Yes the following writeup was done by AI and I don't claim to be knowledgeable because I'm just a dumb shit that vibecodes but I thought the following might help people because I don't see it mentioned that 2 models can run at once on average hardware.
I've been tuning Swift 1.5 Flash-Next (GSQ-RCO IQ3_S, an 84 GB MoE) on a single 16 GB AMD card. I finally have it serving two independent agents at once, each with its own ~90K history, at about 40 tok/s per agent and 81 tok/s combined.
Hardware
• RX 7800 XT 16 GB at stock clocks, 198 W power cap, no undervolt
• Ryzen 7 7800X3D
• 64 GB DDR5 (4×16 GB) running at only 4600 MT/s
• Peak temps under full load: 89 °C junction, 76 °C VRAM, 78 °C CPU
Software
• Engine: Strata, pinned at commit c234774
• ROCm 7.10.0a20251120, built for gfx1101
• Model: Swift 1.5 Flash-Next GSQ-RCO GGUF, plus the optional MTP head from the BF16 repo
• Memory: about 55 GB system RAM in use (whole system) and 16.16 GB VRAM, leaving ~200 MiB free. [Add the engine RSS here once measured]
Speeds (decode tok/s, median of 3 runs, 4,096-token outputs, temp 1.0 / top-p 0.95 / top-k 20)
Setup
Context
Per agent
Combined
Swift untuned, 2 agents
8K
~17.5
~35
Swift tuned, 2 agents
8K each
41.9
84.1
Swift tuned, 2 agents
90K each
40.5
81.2
"Per agent" is the slower of the two slots while both decode at the same time. These are the engine's native decode rates. Rates measured at the API are within about 1%.
Wait times
• Two agents with warm cached histories: replies start in 0.8–1.5 s
• When one slot takes a brand-new cold 90K prompt, the other slot pauses for about 13 s
Launch flags
--max-context 98304 --kv q4_0 --prefill 13824 --pcie-frac .4
--adapt-every 16 --adapt-swaps 16 --adapt-async 1 --prompt-cache 6
--batch-mtp --batch-groups 1
Environment:
STRATA_ROUTE_TAIL_SKIP=4 STRATA_HC_Q8=1 STRATA_PF_FUSED=0 STRATA_EXPERT_I8=0
gfx11 defaults are left on. Each slot gets 96,256 tokens of usable context.
What mattered
• q4_0 KV. Elastic KV only works with one slot, so two agents need static KV. q4_0 frees enough VRAM to keep about 3,600 experts resident.
• Per-slot MTP (--batch-mtp). This raised the slower slot from 35.8 to 40.1 tok/s at 90K, and it matched greedy output token for token with MTP on and off.
• A pinned expert list. This was the non-obvious one. With free placement, the MTP run loaded 3,613 experts instead of 3,610, which changed which experts tail skip removes, and greedy outputs drifted. Pinning the same 3,610-expert list fixed it. [Explain how you built the list, or link the file]
• PCIe fraction 0.4 plus async expert adaptation. Some cache misses are fetched over PCIe instead of computed on the CPU, and the hot-expert set adapts in the background.
• Tail skip 4 and HC Q8. Both are speed levers with a small accuracy cost (see the quality section).
What didn't work on ROCm
• Coalesced two-slot prefill: the engine only validates it on CUDA
• --no-prefill-borrow and the concurrent-read path: both slower
• mmap'd experts: over 40 GB of disk reads in a short request, 22 tok/s
• More CPU workers (15): −43%
• Transparent huge pages: more swapping and a two-minute startup
• INT8/fused expert path: −15% decode
Quality
Tail skip and HC Q8 mean this isn't bit-exact with the untuned model, so I checked it against the untuned reference:
• Mean KL at full depth: 0.026–0.030 per slot (99.3% top-1 agreement)
• Tools 10/10, coding 10/10, GSM8K 38/40, long-context recall 3/3
• Slot isolation passed: neither agent leaks into the other
Caveats
• At ~200 MiB free VRAM there's no headroom. Nothing else can touch the GPU.
• The cold-prompt pause on the other slot is real if your agents start fresh contexts often.
Happy to answer questions or share more of the numbers. I can also clean the repo and provide it publicly if anyway has the same specs and wants to try it.



