[GH-ISSUE #2498] calibrate's --pcie-frac 0.00 recommendation wedges the served engine at boot on AMD gfx1201 (ROCm) #1014

Closed
opened 2026-11-04 01:47:43 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @bhodgens on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2498

Strata calibrate recommendation wedges the served engine at boot on AMD (gfx1201)

Strata version: v0.1.44 (ed4773e)
Backend: HIP/ROCm, built from source for gfx1201 (Radeon AI PRO R9700)
Host: Ubuntu, ROCm 7.2.1, AMD Ryzen AI MAX+ 395 + R9700 (discrete)
Model: Qwen3.8-Flash-Next GSQ-RCO IQ3_S, served native, --shared-expert-arena /dev/shm/strata-arena, --adapt-async 1

Problem

tools/calibrate.py recommended --pcie-frac 0.00 and --spec-min-p 0.70, and its own interleaved measurement showed ~23% decode gain (65.8 vs 53.4 t/s). But applying those settings to the served config wedges the engine during startup.

Repro

  1. Start flashnext from a config whose args end with:
    ... --kv k8v4 --ple-io ram --shared-expert-arena /dev/shm/strata-arena --adapt-async 1 --pcie-frac 0.00 --spec-min-p 0.70
    
  2. Engine prints up to strata generate: GPU 0: AMD Radeon AI PRO R9700 (gfx1201) then produces no further log output, indefinitely.
  3. Process state is D (uninterruptible sleep) + L (memory-locked), CPU at 2-5%, for 6+ minutes (we killed it; may never complete).
  4. Removing --pcie-frac 0.00 --spec-min-p 0.70 (back to the pre-calibrate config, --spec-min-p 0.5, no explicit --pcie-frac) boots normally and serves ~70 t/s.

Expected vs actual

  • Expected: calibrate's recommended settings load and serve like any config.
  • Actual: the engine hangs at/just after GPU 0: ... device enumeration when --pcie-frac 0.00 is present.

Additional notes

  • --spec-min-p 0.70 alone is likely safe (it is just the MTP draft-confidence floor and measured near-neutral); we isolated the hang to the full calibrate settings, not to --spec-min-p alone. We did not binary-search which flag causes it.
  • --pool-workers 15 (the default on this host) was already optimal per calibrate; no issue there.
  • The calibrate harness measures the engine in-process (StrataEngine.generate) rather than the served path, so a setting that measures well can still fail the served bootstrap. It would help to have the served path covered too, or a note that calibrate results are engine-only.

This is on a discrete AMD card (gfx1201, ROCm) — not a Mac/Metal or NVIDIA path.

Originally created by @bhodgens on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2498 # Strata calibrate recommendation wedges the served engine at boot on AMD (gfx1201) **Strata version:** v0.1.44 (`ed4773e`) **Backend:** HIP/ROCm, built from source for **gfx1201** (Radeon AI PRO R9700) **Host:** Ubuntu, ROCm 7.2.1, AMD Ryzen AI MAX+ 395 + R9700 (discrete) **Model:** Qwen3.8-Flash-Next GSQ-RCO IQ3_S, served native, `--shared-expert-arena /dev/shm/strata-arena`, `--adapt-async 1` ## Problem `tools/calibrate.py` recommended `--pcie-frac 0.00` and `--spec-min-p 0.70`, and its own interleaved measurement showed ~23% decode gain (65.8 vs 53.4 t/s). But applying those settings to the **served** config wedges the engine during startup. ## Repro 1. Start flashnext from a config whose args end with: ``` ... --kv k8v4 --ple-io ram --shared-expert-arena /dev/shm/strata-arena --adapt-async 1 --pcie-frac 0.00 --spec-min-p 0.70 ``` 2. Engine prints up to `strata generate: GPU 0: AMD Radeon AI PRO R9700 (gfx1201)` then produces **no further log output**, indefinitely. 3. Process state is `D` (uninterruptible sleep) + `L` (memory-locked), CPU at 2-5%, for 6+ minutes (we killed it; may never complete). 4. Removing `--pcie-frac 0.00 --spec-min-p 0.70` (back to the pre-calibrate config, `--spec-min-p 0.5`, no explicit `--pcie-frac`) boots normally and serves ~70 t/s. ## Expected vs actual - Expected: calibrate's recommended settings load and serve like any config. - Actual: the engine hangs at/just after `GPU 0: ...` device enumeration when `--pcie-frac 0.00` is present. ## Additional notes - `--spec-min-p 0.70` alone is likely safe (it is just the MTP draft-confidence floor and measured near-neutral); we isolated the hang to the full calibrate settings, not to `--spec-min-p` alone. We did not binary-search which flag causes it. - `--pool-workers 15` (the default on this host) was already optimal per calibrate; no issue there. - The calibrate harness measures the engine in-process (`StrataEngine.generate`) rather than the served path, so a setting that measures well can still fail the served bootstrap. It would help to have the served path covered too, or a note that calibrate results are engine-only. This is on a discrete AMD card (gfx1201, ROCm) — not a Mac/Metal or NVIDIA path.
Author
Owner

@MrKop-git commented on GitHub (Oct 16, 2026):

A CUDA datapoint on the same calibrate recommendation: on a GTX 1080 Ti (sm_61), the explicit --pcie-frac 0.20 and the calibrate-style 0.00 both measured slower decode than the engine's own auto fit — auto picked 0.32 here and gave decode +12%/+20% (3 of 3 requests up in both cases), prompt unchanged. Dropping the flag entirely is now part of this rig's adopted config. Data: #2737.

<!-- gh-comment-id:6210076582 --> @MrKop-git commented on GitHub (Oct 16, 2026): A CUDA datapoint on the same calibrate recommendation: on a GTX 1080 Ti (sm_61), the explicit `--pcie-frac 0.20` and the calibrate-style `0.00` both measured **slower decode than the engine's own auto fit** — auto picked 0.32 here and gave decode +12%/+20% (3 of 3 requests up in both cases), prompt unchanged. Dropping the flag entirely is now part of this rig's adopted config. Data: #2737.
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271088526 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1014
No description provided.