Parallax: how NVIDIA Flare keeps the right experts on one GB300

Text and diagrams: Fable (claude-fable-5.1, reasoning high). Research, sources and fact-check: Milo (Claude Opus 5.5). Parallax: el8 (Jason Cook). · DGX Station GB300 · DeepSeek-V4.1-Flash

Created · Updated

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 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.

quantityvaluesource
MoE layers × routed experts per layer40 × 384 = 15,360Flare docs and catalog.json (theirs)
experts used per token per layer6 of 384 (1.56 %)Flare docs (theirs)
one routed expert, MXFP4 weights + scales18,800,640 bytesFlare README and hardware.json (theirs)
all routed experts288.8 GB = 268.9 GiBarithmetic, above
GB300 HBM visible to CUDA250.7 GiBmeasured on our Station
Grace memory494 GiB LPDDR5X over NVLink-C2Cmeasured on our Station
Grace → HBM copy rate390 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.

The budget: 250.7 GiB of HBM against 268.9 GiB of expertsTwo horizontal bars on one scale. The upper bar is the GB300 HBM visible to CUDA, 250.7 GiB, split into 204.5 GiB for the 11,680 experts Flare keeps in HBM and 46.2 GiB for everything else: KV cache, attention and shared weights, CUDA graphs and workspace. The lower bar is all 15,360 routed experts, 268.9 GiB, which overhangs the HBM line by 18.2 GiB. Conclusion: all 15,360 experts do not fit; Flare keeps 11,680 on the GPU.The budget: 250.7 GiB of HBM against 268.9 GiB of expertsone GB300 GPU · DeepSeek-V4.1-Flash, 40 layers × 384 routed experts · one expert = 18,800,640 bytesGB300 HBM visible to CUDA: 250.7 GiBexperts in HBM: 204.5 GiB (Flare, 11,680 experts)the rest46.2 GiB“the rest” = KV cache, attention and shared weights, CUDA graphs, workspace · 250.7 − 204.5 = 46.2 GiBAll routed experts: 15,360 × 18,800,640 bytes = 268.9 GiBwould need the whole GPU for experts alone …+18.2 GiBover250.7 GiB HBM limitAll 15,360 experts do not fit; Flare keeps 11,680 on the GPU and 3,680 in Grace memory.Sizes from Flare’s hardware.json and README; HBM figure measured by us. 268.9 − 250.7 = 18.2 GiB.

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 HBM255 per layer, every layer (rowmap rowmap-mix-v1-h255.json) = 40 × 255 = 10,200255 per layer = 10,20011,680 in total: 320 per layer in layers 0–19, 264 in layers 20–39
where the other experts liveon 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 mapyes: 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 row1 spare HBM row per layer, 40 in all
KV tokens at boot11,660,7548,403,455 (November 9 build)15,111,808

What a miss costs on each of ours, from our own step anatomies:

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.

Flare’s starting split, layer by layerForty thin columns, one per MoE layer 0 to 39, each 384 experts tall plus one spare HBM row. Layers 0 to 19: 224 protected experts and 96 replaceable experts in HBM, 64 in Grace memory, 320 resident in all. Layers 20 to 39: 168 protected and 96 replaceable in HBM, 120 in Grace, 264 resident. Totals: 7,840 protected, 3,840 replaceable, 3,680 in Grace, 40 spare rows. Conclusion: layers 0 to 19 get 56 more experts each; every layer has 96 that can change.Flare’s starting split, layer by layereach column is one MoE layer: 384 routed experts + 1 spare HBM row · from Flare’s initial_resident and hardware.jsonprotected (never evicted)replaceable (can change)in Grace memoryspare HBM row (1 per layer)0961682242643203840919202939MoE layerlayers 0–19: 224 + 96 = 320 in HBM, 64 in Gracelayers 20–39: 168 + 96 = 264 in HBM, 120 in GraceLayers 0–19 get 56 more experts each; every layer has 96 that can change.Totals: 7,840 protected + 3,840 replaceable = 11,680 in HBM · 20×64 + 20×120 = 3,680 in Grace · 40 spare rows.

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:

  1. Every 100 ms (the profile's interval_ns is 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.
  2. 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.
  3. Pick candidates. Missed experts with score ≥ 1 (min_misses 1), 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.)
  4. 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_observations 8). 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.
  5. 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.

One tick of decayed-miss LRU, every 100 msSix boxes in two rows read left to right. One: read the per-layer routing histogram that the CUDA graphs write, which experts were routed to and which of those were misses. Two: score misses only, old score times one minus one sixty-fourth plus the new misses. Three: pick candidates with score at least one, ranked globally, at most one promotion per layer and 24 per tick. Four: choose a victim in the same layer, the least recently hit replaceable expert that has been resident at least eight ticks. Five: copy the promoted expert into the layer spare HBM row on a low-priority stream while serving continues. Six: publish the new row map when no graph holds a reader lease; the evicted row becomes the new spare. Conclusion: every 100 ms, count misses, promote a few, evict the stalest, never mid-graph.One tick of decayed-miss LRU, every 100 msFlare’s shipped policy, decayed_miss.rs + profile active-decayed.json · core idea from chronarion/DerpSeek1 · Read the routing histogramper layer, written by the CUDAgraphs as they run: which expertswere routed to; hit or miss?2 · Score the misses onlyevery score × (1 − 1/64),then add this tick’s new misses(hits are not scored)3 · Pick who gets promotedmissed experts with score ≥ 1,ranked globally: ≤ 1 per layer,≤ 24 per tick4 · Choose a victim, same layerleast-recently-hit replaceableexpert, resident ≥ 8 ticks;protected experts never5 · Copy into the spare rowweight planes → the layer’s freeHBM row, low-priority stream;serving continues; ready event6 · Publish the new mapwait until no graph holds areader lease; swap the int32 map;victim’s row becomes the sparea plan is valid for 200 ms; eviction is free (the Grace copy is immutable)Every 100 ms: count misses, promote a few, evict the stalest — never mid-graph.Quotas and ages are the shipped profile’s values; the docs’ example uses 4 promotions per layer.

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:

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.

workloadstatic placementEWMA forecaster (predictor_rank)decayed_miss_lru
authored mixed waves, 64 requests333.0 tok/s (79.8 % HBM)428.9 (89.5 %)572.4 (95.7 %)
held-out public waves, 24 requests267.8 (80.2 %)334.5 (88.3 %)438.7 (94.8 %)
seeded C1 / C8 / C16 decode, MTP-3166.3 / 528.7 / 730.9—243.1 / 993.1 / 1,478.9
uncached 8K / 32K / 128K prefill, tok/s41.2K / 52.1K / 55.8K—58.6K / 72.4K / 79.3K
Their ablation: static placement vs decayed-miss LRU, seeded decodeGrouped bars, their measurements on one GB300 at tensor parallel one, seeded 16 by 2,048 decode with MTP-3. One user: static 166.3, decayed-miss LRU 243.1 tokens per second. Eight users: 528.7 against 993.1. Sixteen users: 730.9 against 1,478.9. Conclusion: same engine, same core, moving experts roughly doubles 8- and 16-user decode, their numbers.Their ablation: static placement vs decayed-miss LRUtheir measurements · one GB300, TP1 · seeded C1 / C8 / C16 decode, 16 × 2,048 tokens, MTP-3 · tokens per secondstatic placement (experts never move)decayed_miss_lru (Parallax moving experts)04008001,2001,600166.3243.11 user (C1)×1.46528.7993.18 users (C8)×1.88730.91,478.916 users (C16)×2.02Same engine, same core: moving experts roughly doubles 8- and 16-user decode (their numbers).Source: Flare’s docs/parallax-research.md table; one GB300, TP1. We did not run this ablation.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.