mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4044] [Engine] STRATA_ARENA_MMAP creates experts.bin rejected by low-RAM startup #1747
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#1747
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 @Jackmeson1 on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4044
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 fresh native Q2_0 pack made by
tools/iq_pack.py, with noexperts.bin,--mmap-expertsstarted successfully. The--resident-expertscommand also started, but warned that available memory could not be determined and fell back to--mmap-experts. A start withSTRATA_ARENA_MMAP=1then wrote the pack'sexperts.bin, and a second start with the variable mapped it successfully. Subsequent starts without the variable, using either--mmap-expertsor--resident-experts, exited with code 1:docs/DETAILS.md:246-251documents creation and reuse ofexperts.binbySTRATA_ARENA_MMAP=1and says, "Without the variable nothing changes." It does not explicitly describe switching back after the file has been created. Separately,docs/DETAILS.md:262-265documents that native Q2_0 packs made bytools/iq_pack.pycan use mapped experts directly from the GGUF files whenexperts.binis absent. In this run, the engine-created file prevented the previously successful low-RAM commands from starting. The diagnostic attributed the mismatch to the wrong pack, although the engine had created the file from this pack.From the code at
7dd5cf18: the arena writer writes the expert bytes and then a zero-filled padding blob toexperts.bin(src/core/expert_source.cpp:5941-5950). On Linux,FileExpertSourceaccepts only a file of exactly the layout size (src/core/expert_source.cpp:1496-1505). The file is 1,382,400 B longer than the layout.Expected: creating
experts.binthrough the documented mapped-arena option should leave this native pack usable with its other documented startup options, or the documentation should explain the incompatibility and provide recovery steps.Smallest steps or command that reproduce it
Prerequisites: Bash on Linux, a built engine from commit
7dd5cf18, the two named GGUF shards, the canonical Q2_0 base pack, the MTP files, and the repository's expert profile. The build and existing model files are those used in #4035; the paths below are from my run. The base pack's manifest must still reference an accessible source shard. Use a fresh native-pack output directory. These commands condense the recorded script, which removed that output directory before packing and wrapped each engine start intimeout 900. Each successful start readsQUITfrom stdin after initialization; no generation request is sent.Run the sequence without
set -e(saved as a script and run withbash): the two expected failures must not prevent the final control from running. The fresh-directory and environment guards above make the intended starting state explicit; they were not literal commands in the recorded script.Before the writer start, the output filesystem must report at least 36,122,728,448 bytes available: the 33,975,244,800-byte file plus 2 GiB. Otherwise the engine skips creating it (
src/core/expert_source.cpp:5933-5940).Reproduction status
Reproduced locally
Strata version
Commit
7dd5cf18e68c639a8773e096c5c79f971ea2a9f5, engine0.1.49.2Graphics card, memory and system
NVIDIA RTX PRO 6000 Blackwell Server Edition 97,887 MiB · 176 GiB RAM · Ubuntu 24.04.4 LTS (Linux 6.6.122+, Google Colab), driver 580.82.07, CUDA 13.0.88, GCC 13.3.0, Python 3.13.16, AMD EPYC 9B45 (48 logical CPUs)
Model, size and settings
Qwen3.8-Flash-Next GSQ-RCO Q2_0, native pack from
tools/iq_pack.py(default options) · 4096 context · INT8 KV · flags aboveLogs
My run, 2026-10-25 (exit code, then the matching log lines):
The
--resident-expertscontrol fell back to--mmap-expertsbecause both resident-memory attempts could not determine available memory. Afterexperts.binexisted, the same command failed inFileExpertSource::open, before resident allocation or fallback was attempted. This run does not demonstrate successful active resident operation.tests/core/file_expert_source_test.cpp:88checks that files one byte shorter or longer than the payload are refused, so oversized-file rejection itself is intended; it does not exercise the file the arena writer produces.Not checked: generation, successful active resident operation, whether deleting
experts.binrestores startup, a native pack made withiq_pack.py --experts-bin, the transition on canonical packs, or Windows and other backends.@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. 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.