mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#5290
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/5028
Author: @erikash
Created: 11/2/2026
Status: ❌ Closed
Base:
main← Head:launch-dsv41-mmap-experts📝 Commits (1)
2b6d3e4launch: --set mmap-experts=on|off|auto reaches strata-dsv41 as a word instead of being dropped or left bare (#5027)📊 Changes
4 files changed (+40 additions, -10 deletions)
View changed files
📝
strata_cli/launch/runner.py(+6 -2)📝
strata_cli/launch/settings.py(+3 -2)📝
strata_control/tune_knobs.py(+11 -6)📝
tests/terminal/test_launch.py(+20 -0)📄 Description
Problem and result
Fixes #5027. With DeepSeek,
strata launch --set mmap-experts=off(Docker:STRATA_SET="mmap-experts=off") never reached strata-dsv41. The launcher treats--mmap-expertsas a bare switch for every engine (tune_knobs.BOOL_FLAGS), sooffremoved the flag, and strata-dsv41 kept its own default: experts read in place from the model files. strata-dsv41 reads--mmap-experts on|off|autowith a word (src/dsv41/ds4_main.cpp).Before: the DeepSeek engine line had no
--mmap-experts. After: it carries--mmap-experts off(oron/autoas typed). The Qwen engine is unchanged:--mmap-expertsstays a bare switch there.Related discussion
Issue #5027. Same kind of bug as #3959 (
--dspark, fixed withWORD_VALUE_FLAGS) and #4359 (--visionin the app's launcher). This is a focused fix, with no change to any default.Approach
derive_configalready knows the engine fromcfg["arch"]. Fordeepseek41it takes--mmap-expertsout of the bool flags and treats it as a word-valued option, like--dspark.as_argv_changestakes the word-flag set as an optional argument, andtune_knobs.apply_to_argvand_value_counttake the bool-flag set as one. Each defaults to the current module constant, so every other caller (autotune, presets, the app) behaves exactly as before. Replacing a--mmap-experts onthat is already in the args removes its word too, instead of leaving a strayon.Validation
Passed:
python -m pytest tests/terminal/test_launch.py -k mmap_experts(macOS, Python 3.14.7, this branch at2b6d3e4): the new test passes. The same test againstc62d5e3a(v0.2.9) without the fix fails.python -m pytest tests/terminal(macOS, Python 3.14.7,requirements.txtandrequirements-monitor.txtinstalled), run onc62d5e3aand on this branch: 85 failed / 1967 passed onc62d5e3a, 84 failed / 1969 passed on this branch. This branch has no failure thatc62d5e3alacks. The one difference istest_bench_standard.py::RunTests::test_a_request_that_never_finishes_times_out, which failed onc62d5e3aand passed here; it does not touch this code. The 84 shared failures are mostlytest_updater,test_engine_componentandtest_engine_manifest, and they fail the same way without this change.ghcr.io/niko1221/strata:0.2.9-cuda13(its Python 3.12), I randerive_configon the run config the launch wrote for IST-DAS-2.25bpw, withSTRATA_SET="mmap-experts=off cpu-threads=48 ssd-cache=0 dspark=on experts=5". Unchanged files: no--mmap-experts. These three files mounted over the image's copies:... --dspark-conf 0.65 --mmap-experts off --cpu-threads 48 --ssd-cache 0 --dspark on --experts 5.serve/server.pyby hand with the edited run config; the launcher itself did not start it.Failed:
Not run:
strata launchstart with these files in place on hardware. The engine line was checked throughderive_config, and the engine was run with the same line, but not the two together in one start.--mmap-experts.--set mmap-experts=onand=autoon hardware. They are covered only by the unit test.Limits
Only
--mmap-expertsis handled. I did not audit the otherBOOL_FLAGSagainst strata-dsv41's parser.🤖 Generated with Claude Code
https://claude.ai/code/session_01W5GzYGCSrroAWwvNd7b7CE
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.