mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5487] [Engine] Rope yarn 4x anchored at native + 1M capacity: GPU command buffer never completes (deterministic, Metal, M3 Max) #5457
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#5457
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 @Qfbxz on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5487
Engine issue draft: GPU command buffer never completes with --rope-scaling yarn --rope-scale 4 (1M context)
Area: [Engine] (Mac Metal)
Version: engine 0.1.57 (component 0.1.57-macos-arm64-metal), product 0.2.11
Hardware: Apple M3 Max, 128 GB unified memory, macOS 27.2 (26B123)
Reproducibility: deterministic (3/3 runs), same machine and config
Repro
Model: Qwen3.8-Flash-Next UD-IQ4_XS-v31 (Unsloth GGUF set, repacked native 64.9 GB, PLE shard external).
Any first prompt (even a tiny one) hangs: the prefill never progresses past position 0.
What the sample shows (full sample attached: r2-yarn4x-gpu-freeze-sample.txt)
Main thread, 100% of 2534 samples:
The GPU command buffer submitted by prompt_run never completes. No host-side spin, no OOM
lines (memory checks pass), no engine error - a silent GPU-side hang.
The narrowing (all on the same machine, same corpus/protocol)
Only the 4x-anchored-at-native configuration at 1M capacity hangs. Yarn 4x alone at the
native 256K capacity with full memory headroom answers fine, and 2x-anchored-at-512K and
pure extrapolation at the same 1M capacity both work. So the hang is the combination
of rope_yarn factor 4.0 with the 1M-capacity buffers, not yarn 4x by itself and not the
1M capacity by itself - pointing at the rope_yarn index/band math or a buffer sized from
it (scale-dependent frequency tables or position buffers) only at scale=4 + 1010000.
Notable
1M capacity itself is fine on this hardware; only the 4x yarn configuration hangs.