mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4695] [Engine] Windows: layer-major prefill crashes with 'expert source has no blob' on long prompts (>8K) when unbuffered I/O drops file mapping #2146
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#2146
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 @H-Jeffreys on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4695
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
What happened
On a dual-NVIDIA GPU CUDA layer split under Windows, prompts long enough to activate layer-major prefill (>8K tokens) crash the engine with
prefill (layer-major): expert source has no blob(exit code 1). Shorter turns (<8K tokens) and generation work normally (~140–149 tok/s, 99.9% cache hit rate).Expected: Long prompts complete prefill without terminating the engine.
Actual: The engine terminates with exit code 1:
Smallest steps or command that reproduce it
min_sthreshold inlm_prepare(), engaging the layer-major prefill path.Root Cause Analysis (Static Inspection):
src.drop_mapping()is called insrc/program/generate.cpp:9204to prevent NTFS from serializing concurrent direct reads, settingunmapped_ = trueonFileExpertSource.unmapped_ == true,FileExpertSource::mapped_blob()insrc/core/expert_source.cpp:3397returnsnullptr.src/prefill/prefill.cpp:6243-6253: Because direct prefill (pdirect) is hardcoded tofalseand monolithic weights files are not markedtransient(), layer-major prefetch unconditionally callsblob_stable(), which returnsnullptrbecause the mapped view was dropped.STRATA_PREFILL_LAYER_MAJOR=0routes long prompts through standard chunked prefill (which handles unmapped reads), avoiding the crash but losing layer-major prefill throughput.Reproduction status
Reproduced locally
Strata version
Strata 0.2.7.1 · engine 0.1.52
Graphics card, memory and system
RTX 5090 32 GB + RTX 4090 24 GB · 64 GB RAM · Windows 11 (NTFS)
Model, size and settings
Qwen3.8-Flash-Next Coder IQ1_M · 131K context · dual CUDA layer split (
gpu: [1, 0],--layer-split auto) · native experts · MTP drafter · KV cache int8Logs
@Niko1221 commented on GitHub (Oct 31, 2026):
0.2.9 has a change for this: when the engine can't use the shortcut, it reads that part from its source file instead of ending the request. We only compiled it. The case happens only on Windows, and we haven't run it there, so we don't know yet that it's fixed. Please try 0.2.9 and tell us if the long prompt works. Keeping this open until then.
@H-Jeffreys commented on GitHub (Nov 1, 2026):
Tested on 0.2.9 (engine 0.1.55, commit
99866a47a2b8/08e8770c) on Windows 11 with the dual-GPU setup (RTX 5090 32 GB + RTX 4090 24 GB, 64 GB RAM):[1, 0], unbuffered direct I/O, layer-major prefill re-enabled (STRATA_PREFILL_LAYER_MAJOR=1).0 blob reads from the fileand completed without error.The
expert source has no blobcrash is gone, and layer-major prefill works properly with long prompts on Windows. Thank you for the quick fix!