mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4572] [CLOSED] [GUI] DeepSeek load/tune keeps --vision on|off and drops only a bare --vision #5098
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#5098
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/4572
Author: @Nyarlathoteppppp
Created: 10/29/2026
Status: ❌ Closed
Base:
main← Head:fix/4507-vision-value📝 Commits (1)
e4e8058App load and tune keep a DeepSeek model's --vision on/off pair and drop only a bare --vision when picture reading is off; quant_quality does the same (#4507)📊 Changes
4 files changed (+36 additions, -2 deletions)
View changed files
📝
apps/host/server/native-control.mjs(+1 -1)📝
apps/host/tests/draft-layer.test.mjs(+15 -0)➕
tests/terminal/test_launch_vision_value.py(+19 -0)📝
tools/quant_quality.py(+1 -1)📄 Description
Problem and result
For a DeepSeek V4.1 model, setup writes
--vision off(oron) into the model's args (setup.py:8270); DeepSeek configs have novisionsection. When the app builds the run config for a load or a tune,native-control.mjsdrops--visionwhenevercfg.visionis falsy, which is always the case for DeepSeek. It removes only the flag, so the engine gets... --eos 1 off --dspark autoand exits withunknown option off(exit 2), as reported in #4507 and confirmed by a second user on Windows.After the change, a valued
--vision on|offpair is kept as written and only a bare--vision(the Qwen/serve flag with no value) is removed when picture reading is off.tools/quant_quality.pyhad the same token-only drop and gets the same rule.Related discussion
Fixes #4507 (duplicate #4505 has the same cause).
Approach
I did not remove the pair (the issue's suggested expectation): the DeepSeek engine loads its vision tower by default (
src/dsv41/ds4_model.hpp:65,bool vision = true), so dropping--vision offwould load the tower the user or setup turned off and cost memory. Keeping the pair keeps exactly the tower choice setup wrote; for DeepSeek the args are the only place that choice lives (the app's picture toggle needs avisionsection). The Qwen behaviour (bare--visionremoved when pictures are off) is unchanged.strata_cli/launch/runner.py:321has a similar token filter but skipsdeepseek41configs, so it is left alone. Archived scripts underbench/results/with the same pattern are not touched.Validation
Passed:
node --test apps/host/tests/draft-layer.test.mjs(Node 26.0.0): 7 passed. The new test loads adeepseek41fixture with--vision off,--vision onand a bare--vision, each with and without a following flag; it fails on46c152a(1 failed, 6 passed) and passes with the fix. The existing "picture reading off sticks" and "picture reading on keeps --vision" tests still pass.python -m pytest tests/terminal/test_launch_vision_value.py: passes with the fix; 4 subtests fail on46c152a(value left behind byquant_quality.engine_args).native-control.mjs(models-folder, packaged-control, native-two-models, source-server-env, qa1-downloads, parallel-default, user-args, drafting, draft-layer, component-updates): 99 of 107 pass with the fix; the same 8 tests fail on46c152a(97 of 105 pass there).46c152a.Failed:
none observed.
Not run:
node scripts/test.mjs): it did not finish here (no progress after 35 minutes; several files fail to load withERR_MODULE_NOT_FOUNDbecause this checkout has noapps/hostdependencies installed).Limits
The DeepSeek picture setting still cannot be changed from the app's toggle; that is outside this fix.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.