Skip to content

fix(strata): keep the all-resident verify path opt-in on every platform - #247

Merged
shuk777 merged 1 commit into
Edge0-AI:mainfrom
akbarharyadi:fix/verify-all-resident-opt-in
Nov 17, 2026
Merged

shuk777 merged 1 commit into
Edge0-AI:mainfrom
akbarharyadi:fix/verify-all-resident-opt-in

Conversation

@akbarharyadi

@akbarharyadi akbarharyadi commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What & why

Follow up from #200. On my 96GB card --expert-cache auto fits all 24576 experts, then the verifier takes the all-resident (zero-doorbell) path and the first decode window never finish, the watchdog kill the engine with exit -6.

The stall report is same with the RTX Spark N1X case that already written in verify.cpp:

verify window: 6 tokens at position 0, host at layer step 1; the GPU rang 0; flags: served 1, plan (A) 0, copies (B) 0

For that case the path was made opt-in, but only under STRATA_CPU_ARM64, so on x86-64 Linux it still taken by default. This change just make it opt-in for every platform and update the note in EDGE0.md. STRATA_VERIFY_ALL_RESIDENT=1 still turn it on for debugging.

I think 24GB card never reach this path because the experts don't all fit, that's why it not show before.

Fixes #200

Area

  • Engine, CLI or server (edge0-infer/)
  • Model asset tools (edge0-infer/tools/assets/)
  • Chat app examples (edge0-infer/examples/)
  • Model docs (docs/)
  • Other (edge0-strata/)

How was it tested?

Same box as #200: RTX PRO 6000 Blackwell Server Edition 96GB (sm_120), KVM passthrough, 32 vCPU, 80GB RAM, Ubuntu 26.04, driver 595.99.02, CUDA 13.3, gcc 15.2. strata built from this branch with -DCMAKE_CUDA_ARCHITECTURES=120, Edge0-145B-NVFP4, serve/server.py --engine strata, --expert-cache auto, 1 slot, 131K context (so all 24576 experts fit).

  • With STRATA_VERIFY_ALL_RESIDENT=1 (the old default): expert cache 24576 slots and (100% VRAM resident: zero-doorbell graph), the first "Say hi" request hang and after 63 s return 503, engine exit -6 with the same the GPU rang 0 stall report.
  • This branch default: still expert cache 24576 slots (every expert in the GPU cache) but the verify line has no zero-doorbell, the same request answer in 1 s. Then 8 requests at once and the community benchmark below, no hang.

Community benchmark (tools/strata_bench.py):

Configuration Prompt tok/s Decode tok/s TTFT (s)
short chat not measured 126.1 (110.8-157.4) 0.53 (0.50-0.56)
4K prompt, fresh 2581.7 (2206.4-2586.7) not measured 1.58 (1.58-1.85)
16K prompt, fresh 3693.2 (3546.4-3714.0) not measured 4.40 (4.38-4.58)
agent session, follow-up turns 1445-1920 per turn (run 1) 113.7 (104.3-141.8) 1.17 (0.73-2.67)

Agent session cache hit 65.5%. Medians over 3 runs, thinking off, temperature 0, 1 slot, 131K context.

More from the benchmark report
  • GPU: NVIDIA RTX PRO 6000 Blackwell Server Edition, 96 GiB VRAM, PCIe gen3 x16, power limit 600 W
  • CPU: Intel Core Processor (Broadwell, IBRS) 32 vCPU, RAM 80.2 GiB, virtio disk
  • OS: Linux 7.0.0-22-generic, driver 595.99.02
  • Strata 0.1.55 built from this branch

Agent session, run 1 (each turn add about 1500 words, 64 new tokens per turn):

Turn Prompt tokens Reused Read Prompt tok/s First token (s) Decode tok/s
0 609 0 609 640.9 0.977 84.0
1 2087 620 1467 1445.3 1.051 110.5
2 5331 2153 3178 1877.3 1.777 109.0
3 7400 5394 2006 1634.1 1.268 127.7
4 10147 7463 2684 1920.4 1.436 131.5
5 14391 10140 4251 1623.0 2.666 123.3

Speed only, no correctness check in this suite.

Checklist

  • ctest --preset cpu -L "L0|L1" passes locally in edge0-infer/ (engine changes): no change in edge0-infer/
  • Ran the higher test levels this change affects (see edge0-infer/docs/testing.md): run the model on the card above
  • Added/updated tests for new behavior: need a card that hold every expert, so no unit test
  • Updated relevant docs / READMEs (incl. translations if user-facing): edge0-strata/EDGE0.md

On 96GB card --expert-cache auto puts all 24576 experts in VRAM, the
verifier then take the zero-doorbell path and the first decode window
never finish (same "the GPU rang 0" stall as the RTX Spark N1X note in
verify.cpp), watchdog kill the engine with exit -6.

The opt-in was only for aarch64, now it is for every platform.
STRATA_VERIFY_ALL_RESIDENT=1 still turn it on for debugging.

Fixes Edge0-AI#200

@shuk777 shuk777 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks — LGTM. Merging.

@shuk777
shuk777 merged commit 2843f8a into Edge0-AI:main Nov 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[strata] Edge0-145B NVFP4 prefill hangs RTX PRO 6000 (sm_120)

2 participants