Parallax: how NVIDIA Flare keeps the right experts on one GB300
This is the companion to the measured comparison, where Flare's one-GB300 package ran against our two recipes on the same Station. That post has the numbers; this one explains the mechanism behind one of them, expert residency, and what we intend to do about it.
In plain English
- The model is bigger than the GPU's fast memory. DeepSeek-V4.1-Flash is a mixture-of-experts model: most of its weight sits in 15,360 small sub-networks called experts, about 269 GiB of them. The GB300's fast on-package memory, HBM, is 250.7 GiB, and it also has to hold the conversation cache and everything else the engine needs. So the experts cannot all live in HBM.
- But each word only touches a few of them. At every one of the 40 expert layers, a token is sent to 6 of that layer's 384 experts. The rest sit idle for that token. So you keep the popular experts in HBM and leave the rest in the slower, larger Grace memory (the CPU's 494 GiB, reachable from the GPU over NVLink-C2C).
- Parallax is how NVIDIA Flare keeps that choice up to date while serving. It watches which experts are asked for and missing, promotes the ones that keep being missed, evicts the ones nobody has used lately, and does it without stopping the GPU.
- In the authors' own tests (their numbers, not ours), that alone took the share of expert requests served from HBM from about 80 % to about 95 %, and roughly doubled 8- and 16-user decode speed on the same engine.
- What we take from it: our own one-GPU recipe already moves experts, but on a different rule; the cheapest next step is to replay our recorded traffic through their rule and ours, offline, and see which one keeps more of the right experts in HBM.
The problem in numbers
A mixture-of-experts layer holds many small feed-forward networks, the experts, and a small router that looks at each token and picks a few of them. The picks are called routes: one token at one layer produces 6 routes. DeepSeek-V4.1-Flash has 40 such layers with 384 routed experts each, so 15,360 routed experts in total, and each token activates 6 of 384 per layer, 1.56 %. Those figures are from Flare's docs and its catalog file.
In Flare's prepared form one routed expert is 18,800,640 bytes of MXFP4 weights and scales. Multiply out: 15,360 × 18,800,640 = 288,777,830,400 bytes, which is 288.8 GB, or 268.9 GiB. Flare's own hardware file lists exactly that backing size, so the arithmetic and their config agree.
| quantity | value | source |
|---|---|---|
| MoE layers × routed experts per layer | 40 × 384 = 15,360 | Flare docs and catalog.json (theirs) |
| experts used per token per layer | 6 of 384 (1.56 %) | Flare docs (theirs) |
| one routed expert, MXFP4 weights + scales | 18,800,640 bytes | Flare README and hardware.json (theirs) |
| all routed experts | 288.8 GB = 268.9 GiB | arithmetic, above |
| GB300 HBM visible to CUDA | 250.7 GiB | measured on our Station |
| Grace memory | 494 GiB LPDDR5X over NVLink-C2C | measured on our Station |
| Grace → HBM copy rate | 390 GB/s (our probe); 402.3–406.6 GB/s (Flare's startup calibration on our box) | measured on our Station |
HBM is the GPU's own memory: the fastest the GPU can read, and the only place a kernel can read at full speed. The KV cache, the per-request memory of the conversation so far, lives there too, along with the attention and shared weights, the captured CUDA graphs and scratch space. So 268.9 GiB of experts into 250.7 GiB of HBM does not go, before counting anything else. Some experts must live somewhere slower, and expert residency is the name for deciding which ones get the fast seats.
Figure 1. The budget. The upper bar is the 250.7 GiB of HBM the GPU can see, with Flare's 204.5 GiB of resident experts (11,680 × 18,800,640 bytes) and the 46.2 GiB left for everything else. The lower bar is all 15,360 experts, 268.9 GiB, which overhangs the HBM line by 18.2 GiB. Sizes from Flare's files; HBM measured by us.
Three ways our Station answers it
We run the same model on the same DGX Station GB300 three ways, and they answer the residency question differently. Pg66 is our production recipe; it adds a second GPU. gracetier is our published one-GPU recipe. Flare with Parallax is NVIDIA's engine in the one-GB300 package from Local Inference Lab. The companion post measures them against each other; this table is about where the experts live.
| Pg66 (ours, production) | gracetier (ours, one-GPU recipe) | Flare + Parallax (theirs) | |
|---|---|---|---|
| hot experts in HBM | 255 per layer, every layer (rowmap rowmap-mix-v1-h255.json) = 40 × 255 = 10,200 | 255 per layer = 10,200 | 11,680 in total: 320 per layer in layers 0–19, 264 in layers 20–39 |
| where the other experts live | on a second GPU, an RTX PRO 6000 "sidecar", which computes them itself (129 per layer) | in Grace memory; copied into fixed HBM scratch slots just before each layer's expert math (gt_stage) | in Grace memory; the MoE kernel reads them in place from Grace through a row map; during long prefill, the Context-Encoder layers 0–19 can stage them into HBM ahead of use |
| does the hot set change while serving? | no, a static map | yes: swaps ranked by a moving average (adaptive residency) | yes: decayed_miss_lru |
| spare HBM for moves | — | a swap is an exchange through the step's dead scratch row | 1 spare HBM row per layer, 40 in all |
| KV tokens at boot | 11,660,754 | 8,403,455 (November 9 build) | 15,111,808 |
What a miss costs on each of ours, from our own step anatomies:
- Pg66. On our earlier sidecar lane, the hot MegaMoE kernel ran about 81 µs per layer at the median and the cold round trip to the RTX PRO 6000 about 112 µs; on prose and agent traffic 72–85 % of layers routed zero cold experts, so most layers never paid the round trip.
- gracetier. Staging a cold expert into HBM costs 46–50 µs per expert, and a layer call with nothing cold costs about 6 µs. At one user with a static map the staging kernel was 2.60 ms of a 10.49 ms step; step minus staging is about 7.89 ms, which is about Pg61's step.
- gracetier, the path we closed. We tried computing cold experts straight out of Grace memory (unified addressing, no copy): 67–78 µs per expert, slower than staging, and the result was not bit-equal to the all-HBM answer because that kernel path added bf16 values in a different order. Flare's kernel reads from Grace in place and reports bit-equality; see item 5 of "What we'll try".
How Parallax works
Everything in this section is from Flare's docs, code and shipped configuration files at the branch and revision named in the credits. Where we add a reading of our own, we say so.
Where the experts start
At boot 11,680 experts are placed in HBM and 3,680 stay in Grace. The 11,680 split into 7,840 protected experts, chosen from separate calibration traffic and never evicted, and 3,840 replaceable slots that the policy may fill with anything. Each of the 40 layers also gets one spare HBM row, an empty expert-sized slot used for moves, 40 in all.
Per layer, the replaceable count is the same everywhere: 96. The protected count is not: 224 in layers 0–19 and 168 in layers 20–39. So layers 0–19 hold 224 + 96 = 320 experts in HBM and leave 64 in Grace; layers 20–39 hold 168 + 96 = 264 and leave 120 in Grace. Check the totals: 20 × 224 + 20 × 168 = 7,840 protected, 40 × 96 = 3,840 replaceable, 20 × 64 + 20 × 120 = 3,680 in Grace. HBM given to experts is 11,680 × 18,800,640 = 219,591,475,200 bytes = 204.5 GiB, which is the figure in their hardware file. Their boot log on our box reads "per GPU: 236.43 GiB loaded · 12.63 GiB cache budget".
Why the early layers get 56 more each: our reading, not theirs. Flare's long-prompt mode, CED, runs the intermediate chunks of a prompt through the encoder layers 0–19 only; their README says so ("intermediate chunks execute Encoder layers 0..19 only", with 144 kept tokens). So layers 0–19 see every prompt token and layers 20–39 see the final chunk, the kept tokens and decode. Giving the busier layers more HBM seats follows from that. Their docs do not state this as the reason for the split; it is our inference from their design.
Figure 2. Flare's starting split, layer by layer: 40 columns of 384 experts each plus one spare row. Layers 0–19: 224 protected + 96 replaceable in HBM, 64 in Grace. Layers 20–39: 168 + 96 in HBM, 120 in Grace. From Flare's initial_resident and hardware.json.
The rule: decayed-miss LRU
Two words first. A hit is a route to an expert that is in HBM; a miss is a route to one that is not. Coverage is the share of all routes that are hits. LRU, least recently used, is the classic cache rule: when you need a slot, take it from whichever occupant was touched longest ago.
Flare's shipped policy, decayed_miss_lru (code in helios/src/server/parallax/decayed_miss.rs, profile active-decayed.json), is a small loop you could write yourself. A CUDA graph, for the step below, is a pre-recorded sequence of GPU kernels that the engine replays each step without the CPU issuing them one by one; Flare's graphs also write a per-layer histogram of which experts were routed to. One tick:
- Every 100 ms (the profile's
interval_nsis 100,000,000; a plan stays valid for 200 ms), read the per-layer routing histograms that the CUDA graphs wrote asynchronously since the last tick. - Score only the misses. For every expert, multiply its old score by (1 − 1/64), then add the number of misses it took this tick. Hits are not scored. The window is 64 observations, so a miss from a few seconds ago still counts, less and less.
- Pick candidates. Missed experts with score ≥ 1 (
min_misses1), ranked globally across layers. Promote at most 1 per layer and 24 per tick in the shipped profile. (The docs' worked example uses 4 per layer; the shipped value is 1.) - Choose a victim in the same layer. Among that layer's replaceable experts, take the least-recently-hit one that has been resident for at least 8 observations (
min_age_observations8). A hit refreshes recency but does not reset age, so a newcomer cannot be evicted before it has had eight ticks to prove itself. Protected experts are never victims. If a layer has no eligible victim, its quota is not handed to another layer. - Copy, then publish. Copy the promoted expert into the layer's spare HBM row in the background, publish the new map when it is safe (next subsection), and the victim's row becomes the new spare. Evicting costs nothing: the Grace copy was never modified, so the HBM copy is simply dropped.
Their docs say the policy "follows the decayed-miss ranking and LRU replacement approach in chronarion/DerpSeek", an MIT-licensed project, and the source file carries that licence header.
Figure 3. One tick of decayed-miss LRU. Read the histogram, score the misses with decay, pick at most one promotion per layer and 24 per tick, choose the least-recently-hit replaceable expert of age ≥ 8 as victim, copy into the spare row on a low-priority stream, publish when no graph is reading the map. Values from the shipped profile.
Moving an expert without breaking the CUDA graphs
The hard part of residency is not choosing; it is moving an expert while captured graphs are replaying with fixed pointers. Flare's answer is indirection plus a careful handshake:
- Kernels never hold an expert's address. Each layer has an int32 map from canonical expert id to physical row, host rows first and HBM rows after. The kernel reads the map, then the row. Changing where an expert lives means changing one integer, not re-recording a graph.
- The copy runs in the background. A promotion copies the expert's weight planes into the layer's unused HBM row on a low-priority CUDA stream while serving continues. A ready event marks the copy done.
- Publication waits for readers. Uploading the changed map waits until no graph holds a reader lease on it, and graph submission is gated during the upload, so a graph never sees half a map.
- Failure is handled, not hoped away. On a recoverable publication failure every changed map is restored. If the drain or rollback cannot be confirmed, the storage is "poisoned" and inference stops rather than run on an uncertain map.
- Nothing else moves. Graphs are never recaptured, no GPU allocation happens during a move, and captured pointers stay fixed.
- Eviction is free. The Grace copy is immutable, so eviction is a map change and nothing is written back.
Cost, in their own harness: roughly 4.7–5.4 ms of wall time for an eight-expert exchange including staging, polling and map publication, which their docs call "not a serving stall measurement". Correctness, as they report it: a captured MegaMoE component test ran 16 exchanges and matched exact all-HBM reference outputs at 1, 16, 64 and 256 rows; in serving, 20 seeded requests produced the same token ids as a control with tracing disabled; and on GLM-5.3-Flash they report bitwise-identical outputs in all-HBM, all-Grace and mixed placement. Their tests, their words.
The measuring kit
Parallax ships with its own laboratory. Several candidate policies run side by side in shadow on the same routing stream, static, LRU, EWMA, recent, frequency and decayed-miss, each with its own virtual residency, so coverage can be compared without moving anything. There is an offline replay tool that runs recorded routing through a policy, and a cost ledger that estimates execution time saved against measured copy and publication time.
What their numbers say
Everything in this section is the authors' own measurement, on one GB300 at tensor-parallel 1, from docs/parallax-research.md and docs/parallax.md on their branch. We have not run these harnesses. "HBM %" is HBM route coverage, the share of expert routes that land on an HBM-resident expert.
| workload | static placement | EWMA forecaster (predictor_rank) | decayed_miss_lru |
|---|---|---|---|
| authored mixed waves, 64 requests | 333.0 tok/s (79.8 % HBM) | 428.9 (89.5 %) | 572.4 (95.7 %) |
| held-out public waves, 24 requests | 267.8 (80.2 %) | 334.5 (88.3 %) | 438.7 (94.8 %) |
| seeded C1 / C8 / C16 decode, MTP-3 | 166.3 / 528.7 / 730.9 | — | 243.1 / 993.1 / 1,478.9 |
| uncached 8K / 32K / 128K prefill, tok/s | 41.2K / 52.1K / 55.8K | — | 58.6K / 72.4K / 79.3K |
Figure 4. Their ablation, seeded decode with MTP-3 on one GB300: static placement against decayed-miss LRU at 1, 8 and 16 users. 166.3 vs 243.1, 528.7 vs 993.1, 730.9 vs 1,478.9 tokens per second. Their measurements, from their research notes; we did not run this.
Their two conclusions, which the table supports: raising coverage from about 80 % to about 95 % nearly doubles 8- and 16-user decode (+88 % and +102 %) and speeds uncached 128K prefill by 42 %; and the reactive decayed-miss LRU beats their own EWMA forecaster by about 6 points of coverage, so a predictor would need real lookahead, early-layer routes or draft tokens, to beat it. That second conclusion is the useful one for us, because our controller is EWMA-scored too.
Their own caveats, which we repeat because they are the right ones. The GLM-5.3-Flash check (EWMA policy against static) came out +18.8 % with one run per condition, which they call "not an established production speedup". The cost ledger for one active run estimated 15.06 s of execution time saved against 577.6 ms of measured GPU copy time and 882.3 ms of host publication time, with 1,579 promotions used and 3 evicted unused; they call a positive ledger balance "a hypothesis about useful placement, not measured wall time saved". The exchange timing above is from a harness, not a serving stall.
Status. Parallax is unmerged. Pull request #409 on NVIDIA/hyperflare-inference was opened on November 19, 2026 by GitHub user original-el8 (Jason Cook) and closed, not merged, on November 20, 2026, per the GitHub API. The package we ran comes from a public research branch.
Where ours differs
gracetier has had adaptive residency since November 9, 2026, so this is not a comparison of moving against not moving; it is two different rules for moving. Numbers here are ours, from our ledger.
Our rule. The m3 "v26" controller reads the per-expert route counters every 64 steps and keeps an exponentially weighted moving average, EWMA, of each expert's traffic with a half-life of 500 steps. A cold expert is swapped in when its score beats the weakest hot expert's by a hysteresis margin (1.5 at first, later 3.0) and clears a minimum score of 8; at most 2 swaps per drain and 4 per step. A swap is a five-step exchange on the model's own stream, between steps. Set that beside Flare's: we score all traffic, they score only misses; we rank against the weakest hot expert, they evict the least-recently-hit; our swap sits in the gap between steps on the model stream, their copy overlaps serving on a low-priority stream.
What ours measured. GT3, one user on a repeated prompt: 10.50 → 8.20 ms per step, and the cold share of counted picks fell from 4.32 % to 1.64 %. GT4, one user on mixed general traffic: static 13.25 / 13.00 ms per step, adaptive 11.42–12.03, a gain of 8–13 %; cold share static 19 % / 12 %, adaptive 5.5 % (set A) and 7.0–7.5 % (interleaved). A4, 275 hot experts per layer instead of 255: about 1 ms per step faster (8–9 %) on the GT4 passes, but KV capacity falls to 2.76M tokens; and hysteresis 3.0 halved the swaps per pass (1,600 → 750–775) with equal or 1–3 % better step time.
The coverage comparison, with its caveat. On mixed traffic our cold share after adapting is 5.5–7.5 %, so coverage is 100 − that, about 92.5–94.5 %, the same neighbourhood as Flare's roughly 95 %. But the two are not measured the same way: our "counted picks" include uncached prefill on first-sight passes, where everything is cold the first time; theirs is route coverage on their request waves. Treat the similarity as a hint, not a result.
What is not attributed. In the companion post's head-to-head, one user on our harness, gracetier read 325.7 tokens per second to Flare's 296.4; on Flare's client at 32 users, gracetier 1,868 to Flare 4,931; a ~114K-token prefill 2.65 s to 1.55 s. Those two engines differ in far more than residency: kernels, scheduler, speculative decoding, prefill design. No part of that gap is attributed to residency here, in either direction, until a test isolates it. That is our position, and the next section is how we intend to test it.
What we'll try
This is a plan, not a result; nothing below is measured. Each item says what would count as a finding.
- Score misses, not all traffic. Replay our recorded routing counters through both our EWMA-plus-hysteresis controller and a decayed-miss LRU, offline, same HBM budget, and compare coverage. This costs no box time. Their data has the reactive LRU ahead of their EWMA ranker by about 6 points; ours is EWMA-scored, though not identical to theirs. A result: a coverage difference on our own traces, in either direction, with the trace and both policies published.
- Spend HBM where the prompt work is. Flare gives layers 0–19 320 hot experts and layers 20–39 264. Our design kept the hot count uniform at 255 because MegaMoE's expert count is a compile-time constant; per-layer counts need per-layer kernels or a padded layout. A result: a design note that says whether non-uniform counts are feasible in our kernel without a step-time penalty, before any measurement.
- Copy in the background, publish at a boundary. Their promotions overlap serving on a low-priority stream; ours sit on the model stream between steps. Our November 6 probe found that host-to-GPU copies did not slow a concurrent GEMM (90.6 → 90.6 µs), so the overlap should be nearly free. A result: the swap's cost inside the step measured first, then the same swap overlapped, same traffic, same window.
- The KV question. Flare holds more hot experts than we do (11,680 against 10,200) and more KV tokens (15.1M against 8.4M) on the same GPU. Its boot log shows a 12.63 GiB cache budget for 15,111,808 tokens, about 897 bytes per token; our A4 note puts gracetier's KV at 19.07 GiB for about 8.4M tokens, about 2.4 KB per token. We have not checked whether those are the same accounting (host KV tiers, compressed-attention records). A result: an apples-to-apples bytes-per-token figure for both, or a clear statement of why there cannot be one.
- Why our miss costs more is a separate question from residency. gracetier copies each cold expert into HBM before computing it, 46–50 µs each; Flare's kernel reads it from Grace in place. Our in-place attempt was slower (67–78 µs) and not bit-equal; theirs reports bit-equality. A result: a reading of their kernel path that explains the difference, before we reopen ours.
Credits and sources
Parallax is by el8 (Jason Cook, GitHub original-el8), author of pull request #409, the same el8 whose MegaMoE hook our production lane still runs: Pg66's hook directory is pinned to his commit 87af662, and our sidecar lane started from his M3 hook and his rowmap-mix-v1 expert map (Pg66 loads a 255-hot variant of it, rowmap-mix-v1-h255.json). The Flare package is hosted by Local Inference Lab; Flare is an NVIDIA open-source project. The decayed-miss LRU core follows chronarion/DerpSeek (MIT). Prior art their docs cite: ProMoE, MoE-Infinity and SpecMD.
What we read. The runtime branch liquidgravityai/spark-local-inference research/parallax-gb300 at commit 628ac2e2, in particular docs/parallax.md, docs/parallax-research.md, docs/parallax-demo.md and helios/src/server/parallax/decayed_miss.rs; and the Flare package DeepSeek-V4.1-Flash-1017-FLARE, gb300 branch at revision 109e07d4, whose parallax/*.json files give the per-layer counts and the shipped profile.
Ours. The residency controller is m3 (Milo-MoE-Manager, Apache-2.0); gracetier is built on Garner McCloud's engine. The gracetier recipe is written up at DeepSeek-V4.1-Flash on one GB300 without the second GPU; the head-to-head that prompted this post is our recipe vs NVIDIA Flare.