mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2710] [Bug]: --pipeline-windows is silently clamped to 2; values above 2 are accepted and ignored #1079
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1079
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kietq8684-design on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2710
Strata version, GPU, OS: 0.1.42 (
61b3fb5) · Radeon VII 16GB (0x66af) + Radeon Pro VII / Instinct MI50 16GB (0x66a1), gfx906, layer split · Ubuntu 24.04, kernel 6.8.0-146-p2p, ROCm HIP 7.14 (mixa3607/rocm-gfx906:7.14-complete), HSA_OVERRIDE_GFX_VERSION=9.0.6--pipeline-windowsis hard-clamped to[0, 2], and the clamp is silent: a value above 2 is accepted, theengine uses 2, and nothing on stderr or in the log says the requested value was out of range.
1. The clamp, in source
src/program/generate.cpp:1991:2. The engine's own log shows "3" and "2" side by side, with no warning in between
Same run, same startup log (
--pipeline-windows 3requested):The engine's argv says 3; every line the engine then prints says 2. There is no line announcing the clamp:
grep -icE "clamp|out of range|capped|ignoring"over that startup log returns 0.3. It is measurably a no-op: 3 is indistinguishable from 2, while 1 vs 2 clearly differ
Controlled sweep, one fresh container per value, both cards sampled from the host
(
/sys/class/drm/cardN/device/mem_info_vram_used; idle = median of 12 samples after a 20 s settle,peak = max over 160 samples at 0.5 s while a 16K-token request was in flight). Same config otherwise.
--pipeline-windows 1--pipeline-windows 2--pipeline-windows 3Row 3 is row 2 within sampling noise (≤ 2 MiB) and byte-identical on the engine's own expert-cache line
(6889 slots / 12.53 GiB). Row 1 is 88 MiB and 23 slots away — so the knob does have an effect at 0/1/2;
3 just never runs.
Why this cost us real time (the actual impact)
We ran a boundary sweep over this flag and included a
--pipeline-windows 3arm. It was a no-op identical to thebaseline, and we only found out by reading the engine's structural log line by line — the sweep's own summary
table looked like a normal result. We had already written "PW3" up as a data point before catching it. Anyone
tuning this flag can spend hours on an arm that never ran, and the engine gives them no hint.
What we'd like (deliberately small)
pattern for the off path —
src/program/generate.cpp:3279: So something likestrata generate: --pipeline-windows 3 is above the maximum 2, using 2would match theexisting style. (An
exit(2)would be fine too, but we assume the clamp is intentional and just want it said.)--help(src/program/generate.cpp:784-786) says"
--pipeline-windows N ... 1 = the prompt's short reads, 2 = decode as well" — it describes 1 and 2 but neversays N is capped at 2.
docs/MULTI_GPU.md(the section "One conversation with both cards busy") likewisedescribes 1 and 2 only. A single "(0-2)" would close it.
--lookup-chain(std::clamp(..., 0, 7),generate.cpp:1994), and--suffix-draft/--mtp-max-t/--prompt-cache(floored at 0). Same silent-truncation shape, lower stakes.What we are NOT claiming
stage"), and the allocation-failure hint points at
--pipeline-windows 0rather than higher.@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:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.