mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1643] [Bug] v0.1.41 no-P2P peer prefill crashes on long prompts (RTX 2080 Ti + RTX 5050, CUDA Xid 31) #661
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#661
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 @GarminChen on GitHub (Oct 9, 2026).
<html> <html><head></head>Original GitHub issue: https://github.com/Niko1221/Strata/issues/1643
Summary
Strata v0.1.41 successfully initializes the new no-P2P peer expert tier on my heterogeneous NVIDIA GPU pair (RTX 2080 Ti 22GB + RTX 5050 8GB).
However, a long prompt of 31,358 tokens consistently crashes the engine when peer prefill is enabled.
Short prompts work. The same 31K prompt also works with
--peer-prefill-rows 0, while keeping the peer tier enabled for decode.Disabling
STRATA_BF16_TCandSTRATA_PF_PEER_XSTREAMdid not fix the long-prefill crash.System
Strata: v0.1.41, locally compiled, SM75 + SM120
OS: Linux x86_64 (NAS)
CPU: Intel Core i3-8100, AVX2
RAM: 48 GB physical (46 GiB reported by Linux)
GPU0: NVIDIA RTX 2080 Ti 22GB (modified VRAM, SM75)
GPU1: NVIDIA RTX 5050 8GB (SM120)
NVIDIA driver: 580.142
CUDA Toolkit: 13.0.88
GPU communication: No P2P; Strata reports the mapped-host-memory peer prefill path
Model and configuration
Model: Swift-1.5-Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS
Context: 131072 tokens
KV cache: INT8
MTP:
--spec 4 --spec-min-p 0.5Expert arena:
STRATA_ARENA_MMAP=1--pcie-frac 0--expert-profileenabled--expert-cache auto--prefill auto--peer-device 1--peer-reserve-mib 1024STRATA_PREFILL_CPU_SHARE=0CPU affinity: cores 0, 1, 3
The old remote helper flags (
--expert-cache-device1and--remote-expert-opt) are not used with the peer configuration.The peer tier initializes with approximately 4,765 experts / 6.39 GiB on GPU1. The primary GPU holds approximately 10,709 expert slots.
Steps to reproduce
Launch Strata v0.1.41 with the configuration above, enabling no-P2P peer prefill (default
--peer-prefill-rows -1).Send a short prompt of about 55 tokens. It works and can generate over 1,000 tokens.
Send a fixed synthetic archive prompt of 31,358 tokens with
max_tokens=256, using/v1/chat/completions.The engine exits with code 1. The server responds with
server_errorand attempts to restart the engine.The failing long prompt has
cached_tokens=0.Actual behavior
Engine log:
NVIDIA kernel log, GPU0 (RTX 2080 Ti):
A separate NVIDIA driver log also reported
NV_ERR_NO_MEMORY, but I have not established that it belongs to the same failure.Isolation results
Successful peer-tier run with prefill disabled:
Cold prompt: 31,358 tokens
Prefill: 1,070.6 tokens/s
Decode: 55.8 tokens/s
Drafts accepted: 182/221
Decode expert cache hit rate: 91.1%
No engine crash
These are single-run performance observations, not repeated benchmark medians.
Expected behavior
The no-P2P peer prefill path should complete the 31K-token prompt without CUDA memory faults or engine termination.
Additional observations
The host system has approximately 34 GiB of available RAM after initialization.
STRATA_ARENA_MMAP=1successfully maps the expert arena without locking it.The failure is associated with enabling peer prefill for long prompts, not with peer-tier initialization.
Disabling the BF16 tensor-core optimization does not resolve the failure.
Disabling the independent peer transfer stream does not resolve the failure.
I have stopped further long-prefill tests to avoid repeatedly triggering GPU faults.
Could you investigate whether the no-P2P peer prefill path has a buffer allocation, memory lifetime, or synchronization issue with this SM75 + SM120 GPU combination?
I can provide the complete engine logs, configuration, and synthetic benchmark payload if useful.
Thanks for the work on Strata! The remote helper configuration has been performing very well on this system, and I am excited to test the new peer prefill support.
</html> </html>@Niko1221 commented on GitHub (Oct 10, 2026):
We tried to reproduce this on two RTX A4000 (CUDA 12.9) with STRATA_PEER_NO_P2P=1, --peer-device 1 --peer-reserve-mib 300, 131072 context and a 30.6K-token prompt, and it reads fine. So it looks tied to your pair: 2080 Ti (sm_75) + RTX 5050 (sm_120) with 321 MiB left on the peer. Could you try (1) the same prompt with --peer-reserve-mib 2048, (2) STRATA_PF_PEER_SUMS=0, (3) STRATA_PF_PEER_F16=0, and send the engine log up to the crash? The cuBLAS status 13 after an MMU fault on GPU0 may be the same two-architecture cuBLAS state as #1650, so also tell us your cuBLAS version.
@GarminChen commented on GitHub (Oct 11, 2026):
Thanks for investigating this and trying to reproduce it on the two RTX A4000s!
I've collected the original environment information before upgrading to v0.1.42.
Build and CUDA libraries
libcudart.so.13libcublas.so.13(CUDA 13.0 installation containslibcublas.so.13.1.1.3)libcublasLt.so.13Original failure
The engine successfully initializes both GPUs, including the 4,765-expert peer cache on GPU1. The 31,358-token prompt then fails with:
The NVIDIA kernel log also records an Xid 31 MMU fault on GPU0 (RTX 2080 Ti).
I have preserved the original v0.1.41 engine logs and attached the relevant startup-to-crash excerpts.
I haven't tested the three newly requested isolation options yet:
--peer-reserve-mib 2048STRATA_PF_PEER_SUMS=0STRATA_PF_PEER_F16=0I'll test them individually on v0.1.41 before upgrading, keeping the same 31,358-token prompt and the original 131072 context configuration.
Thanks again for looking into this!
issue1643-crash-log.txt
@GarminChen commented on GitHub (Oct 11, 2026):
Update: I tested
--peer-reserve-mib 2048on the original v0.1.41 configuration.Result: Still crashes on the same 31,358-token prompt.
This time the final engine error was:
The NVIDIA kernel log recorded another Xid 31 on GPU0 (RTX 2080 Ti):
The previous failure reported
cublasGemmEx f16: cuBLAS status 13, but both runs resulted in a GPU0 Xid 31 memory-access fault.Increasing the peer reserve by 1024 MiB did not resolve the issue. This makes insufficient GPU1 free memory less likely to be the sole cause.
I have preserved the new engine log and can provide it. Would you prefer that I continue testing
STRATA_PF_PEER_SUMS=0andSTRATA_PF_PEER_F16=0on v0.1.41, or first retest with v0.1.42?I'd like to avoid unnecessarily repeating the GPU MMU faults on this NAS. Thanks!
issue1643-reserve2048.engine.log
@GarminChen commented on GitHub (Oct 11, 2026):
<html> <html><head></head>Completed the remaining isolation tests on Strata v0.1.41. Unfortunately, both still fail.
All tests used the same 31,358-token prompt, 131072 context, INT8 KV,
--peer-device 1, and--peer-reserve-mib 2048.Test 2:
STRATA_PF_PEER_SUMS=0Short prompt: successful, 203 tokens generated.
Long prefill: engine exited with code 1.
Last engine error:
iq_dequant_gu_f16: an illegal memory access was encounteredGPU0 (RTX 2080 Ti): Xid 31,
FAULT_PDE ACCESS_TYPE_VIRT_READ.Test 3:
STRATA_PF_PEER_F16=0The startup log now reports the mapped-host-memory peer path without the previous FP16 transfer description.
Long prefill: engine exited with code 1.
Last engine error:
iq_dequant_gu_f16: an illegal memory access was encounteredGPU0: Xid 31, same MMU fault type.
The kernel journal contains two Xid 31 events with different process IDs during the test interval.
Summary of all isolation results
Configuration | 31K prefill -- | -- Original peer prefill | FAIL BF16_TC disabled | FAIL STRATA_PF_PEER_XSTREAM=0 | FAIL --peer-reserve-mib 2048 | FAIL Reserve 2048 + STRATA_PF_PEER_SUMS=0 | FAIL Reserve 2048 + STRATA_PF_PEER_F16=0 | FAIL --peer-prefill-rows 0 | PASSThe failure remains specific to enabling peer prefill in this setup. Increasing GPU1 headroom and disabling these individual transfer/aggregation options did not resolve it.
I have preserved the logs for each run.
This completes the requested v0.1.41 isolation tests. My next step is to upgrade to v0.1.42 and test the same hardware. I will report back if the behavior changes.
Thanks again for your help!
</html> </html>issue1643-sums0.engine.log
issue1643-f160.engine.log
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
@GarminChen commented on GitHub (Oct 15, 2026):
Hi @Niko1221,
As requested, I retested the original issue on Strata v0.1.44.1. Unfortunately, the same no-P2P peer prefill crash is still reproducible.
Test configuration
strata 0.1.44.1(locally compiled, SM75 + SM120)--peer-device 1 --peer-reserve-mib 2048STRATA_ARENA_MMAP=1Initialization succeeds
session is up (engine 0.1.44.1)The long request still crashes
The API responds:
The last engine error is now:
The NVIDIA kernel reports another GPU0 Xid 31:
One additional observation: v0.1.44.1 warns that GPU0 has only 491 MiB of free VRAM, below its 512 MiB warning threshold. Earlier v0.1.41 reproductions had similarly low GPU0 headroom, while disabling peer prefill allowed the long prompt to succeed. I cannot determine whether the low GPU0 headroom contributes to this fault.
This is one fresh reproduction on v0.1.44.1. I have not repeated the request to avoid further GPU MMU faults.
I've attached the engine log and kernel Xid log from this run.
Could you please reopen #1643 as offered? The issue still appears reproducible on the current release.
Thank you!
peer-v01441.engine.log
peer-v01441.config.json
kernel-xid-v01441.txt
peer-v01441.response.json