[GH-ISSUE #4115] [GUI] DeepSeek-V4.1: the conversation context chosen in the app never reaches setup (always --context 8192) #1798

Closed
opened 2026-11-04 01:54:10 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @beastrobin on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4115

Area

[GUI] (the desktop app)

Desktop app, Terminal or source?

Desktop app (Windows)

What happened

On the Models screen I set Conversation context to 256K for DeepSeek-V4.1-Flash IST-DAS-2.25bpw and pressed Apply settings and load. The engine came up with an 8192 window anyway, so the first message fails with 400 … prompt (11885 tokens) leaves no room to answer in the context (8192). I retried with 32K: this time the app answered This model is not installed. Download and prepare it first. and never started the engine.

Every setup.py call in that session was pinned to --context 8192, including the runs made right after selecting 256K and 32K. The model itself is fine: the same pack started by hand with --max-context 524288 reaches READY 524288 in about 45 s on this machine.

Smallest steps or command that reproduce it

  1. Have DeepSeek-V4.1-Flash IST-DAS-2.25bpw prepared (setup answered [ok] test question answered sensibly).
  2. Models screen → that model → set Conversation context to 256K.
  3. Apply settings and load.
  4. Read %LOCALAPPDATA%\Strata\install\.strata-mcp\setup.log and install.json: the setup command says --context 8192.

Retried with 32K — same, and this time the app reported the model as not installed.

Reproduction status

Reproduced locally (twice: 256K, then 32K).

Strata version

Strata 0.2.6 · control 0.1.51 · engine 0.1.51 (strata-dsv41, build_id 562a0c2ed716+dsv41+cuda13.0)

Graphics card, memory and system

NVIDIA RTX PRO 6000 Blackwell Workstation Edition, 96 GB VRAM · 253 GB RAM · Windows 11 (10.0.26200) · Intel Core Ultra 9 285K

Model, size and settings

DeepSeek-V4.1-Flash IST-DAS-2.25bpw (274 GB on disk) · context 256K, also tried 32K · pictures off · data dir D:\Strata-data · GPU placement automatic

Logs

1. Every setup call was 8192

Seven deepseek41 setups in the session, all with the same value (line numbers in setup.log):

1438:  setup.py --yes --no-start --family deepseek41 --model IST-DAS-1.75bpw --context 8192 ...
1472:  setup.py --yes --no-start --family deepseek41 --model IST-DAS-2.25bpw --context 8192 ...
1534:  setup.py --yes --no-start --family deepseek41 --model IST-DAS-2.25bpw --context 8192 ...
1590:  setup.py --yes --no-start --family deepseek41 --model IST-DAS-2.25bpw --context 8192 ...
1646:  setup.py --yes --no-start --family deepseek41 --model IST-DAS-2.25bpw --context 8192 ...
1702:  setup.py --yes --no-start --family deepseek41 --model IST-DAS-2.25bpw --context 8192 ...
1759:  setup.py --yes --no-start --family deepseek41 --model IST-DAS-2.25bpw --context 8192 ...

install.json of the 23:47 run:

"args": ["--yes","--no-start","--family","deepseek41","--model","IST-DAS-2.25bpw",
         "--context","8192","--vision","no","--data-dir","D:\\Strata-data"]

2. The run config that the 8192 produced

"args": ["--pack","D:\\Strata-data\\packs\\deepseek-v4.1-flash-ist-das-2.25bpw",
         "--max-context","8192","--eos","1","--dspark","auto","--dspark-conf","0.65"]

3. The 400 on the first message

[strata] 400 invalid request: request exceeds the context window: prompt (11885 tokens)
leaves no room to answer in the context (8192); requests are never truncated

4. Install finished, then reported as not installed

23:46:00  job install → error    "This model is not installed. Download and prepare it first."
23:47:26  job install → running
23:47:57  install-result.json    {"exit_code": 0, "ended": "2026-10-25 23:47:57"}
23:48:09  job install → error    "This model is not installed. Download and prepare it first."

setup.log for that run ends with [ok] test question answered sensibly, [ok] start script: run-deepseek-v4.1-flash-ist-das-2.25bpw.bat, strata-mcp: setup ended with exit code 0, and the config exists at install\strata-deepseek-v4.1-flash-ist-das-2.25bpw.json. No engine process is started. A plain load (no settings change, so no install) does work at 23:42 (runtime.start → state: ready, port 18500).

5. Registry keeps a config from the previous Control version

strata.py models list --json:

deepseek-v4.1-flash-ist-das-2.25bpw | ctx 524288 | present | install_dir_source: remembered
    source_config: ...\components\control\0.1.49.2\strata-deepseek-v4.1-flash-ist-das-2.25bpw.json
    install_dirs: [...\components\control\0.1.49.2, ...\Strata\install]

The config the 0.1.51 install just wrote is ...\Strata\install\strata-deepseek-v4.1-flash-ist-das-2.25bpw.json (8192). The same model id is therefore registered twice, with different contexts and different install_dirs, and the 0.1.49.2 one is the one reported.

Suspected path (unconfirmed static analysis, not observed)

  • tools/strata_mcp.py:2190 — if context is None and md.get("multi_file"): context = getattr(s.setup_module(), "DSV41_CONTEXT", 8192)
  • setup.py:734 — DSV41_CONTEXT = 8192 # the context the engine was checked at (4096 and 8192; 64K is not tried yet)

Both apply only when the request arrives without a context, which matches the observed --context 8192 — so the value the picker holds is not reaching Control. The picker itself looks right: catalog.contexts is the full [8192, 32768, 65536, 131072, 204800, 262144, 393216, 524288] list and the models panel submits {family, model, context, …} with {kind: "install", args}.

For the second symptom, host/server/native-control.mjs:146 (recordFile()) is what raises This model is not installed when the lookup in snapshot.installed.models misses — the miss is plausible with the duplicate registration in §5, since that function also requires the config to live under installRoot().

What I ruled out

  • Model files: all four IST-DAS shards carry .done + sha256; setup step 5 says "already downloaded", step 6 "test question answered sensibly".
  • Engine: strata-dsv41.exe --serve --pack … --max-context 524288 → READY 524288, 9299/15360 experts in VRAM (90.62 GB), ~21 tok/s. 512K works here, so the 8K is not an engine limit.
  • VRAM: 0 MiB free at 512K with 0.1.51 (0.1.49.2 left 187 MiB), but nothing else was loaded during these attempts and the failure happens before the engine starts.

Suggested direction

  1. For multi_file families, either honour the requested context or reject it with a visible message — and then do not offer 32K–512K in the picker for that family.
  2. Skip (or prefer the newest over) a registered config whose install_dir is not the active one, so a leftover from a previous Control version cannot shadow the config a fresh install just wrote.
  3. Re-read installed once an install job returns exit_code: 0 before concluding the model is missing.

The logs quoted above are still on disk if you want the whole files.

Originally created by @beastrobin on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4115 ## Area [GUI] (the desktop app) ## Desktop app, Terminal or source? Desktop app (Windows) ## What happened On the Models screen I set **Conversation context** to **256K** for DeepSeek-V4.1-Flash `IST-DAS-2.25bpw` and pressed *Apply settings and load*. The engine came up with an **8192** window anyway, so the first message fails with `400 … prompt (11885 tokens) leaves no room to answer in the context (8192)`. I retried with **32K**: this time the app answered `This model is not installed. Download and prepare it first.` and never started the engine. Every `setup.py` call in that session was pinned to `--context 8192`, including the runs made right after selecting 256K and 32K. The model itself is fine: the same pack started by hand with `--max-context 524288` reaches `READY 524288` in about 45 s on this machine. ## Smallest steps or command that reproduce it 1. Have DeepSeek-V4.1-Flash `IST-DAS-2.25bpw` prepared (setup answered `[ok] test question answered sensibly`). 2. Models screen → that model → set **Conversation context** to **256K**. 3. *Apply settings and load*. 4. Read `%LOCALAPPDATA%\Strata\install\.strata-mcp\setup.log` and `install.json`: the setup command says `--context 8192`. Retried with 32K — same, and this time the app reported the model as not installed. ## Reproduction status Reproduced locally (twice: 256K, then 32K). ## Strata version Strata 0.2.6 · control 0.1.51 · engine 0.1.51 (`strata-dsv41`, `build_id 562a0c2ed716+dsv41+cuda13.0`) ## Graphics card, memory and system NVIDIA RTX PRO 6000 Blackwell Workstation Edition, 96 GB VRAM · 253 GB RAM · Windows 11 (10.0.26200) · Intel Core Ultra 9 285K ## Model, size and settings DeepSeek-V4.1-Flash `IST-DAS-2.25bpw` (274 GB on disk) · context 256K, also tried 32K · pictures off · data dir `D:\Strata-data` · GPU placement automatic ## Logs ### 1. Every setup call was 8192 Seven `deepseek41` setups in the session, all with the same value (line numbers in `setup.log`): ``` 1438: setup.py --yes --no-start --family deepseek41 --model IST-DAS-1.75bpw --context 8192 ... 1472: setup.py --yes --no-start --family deepseek41 --model IST-DAS-2.25bpw --context 8192 ... 1534: setup.py --yes --no-start --family deepseek41 --model IST-DAS-2.25bpw --context 8192 ... 1590: setup.py --yes --no-start --family deepseek41 --model IST-DAS-2.25bpw --context 8192 ... 1646: setup.py --yes --no-start --family deepseek41 --model IST-DAS-2.25bpw --context 8192 ... 1702: setup.py --yes --no-start --family deepseek41 --model IST-DAS-2.25bpw --context 8192 ... 1759: setup.py --yes --no-start --family deepseek41 --model IST-DAS-2.25bpw --context 8192 ... ``` `install.json` of the 23:47 run: ```json "args": ["--yes","--no-start","--family","deepseek41","--model","IST-DAS-2.25bpw", "--context","8192","--vision","no","--data-dir","D:\\Strata-data"] ``` ### 2. The run config that the 8192 produced ```json "args": ["--pack","D:\\Strata-data\\packs\\deepseek-v4.1-flash-ist-das-2.25bpw", "--max-context","8192","--eos","1","--dspark","auto","--dspark-conf","0.65"] ``` ### 3. The 400 on the first message ``` [strata] 400 invalid request: request exceeds the context window: prompt (11885 tokens) leaves no room to answer in the context (8192); requests are never truncated ``` ### 4. Install finished, then reported as not installed ``` 23:46:00 job install → error "This model is not installed. Download and prepare it first." 23:47:26 job install → running 23:47:57 install-result.json {"exit_code": 0, "ended": "2026-10-25 23:47:57"} 23:48:09 job install → error "This model is not installed. Download and prepare it first." ``` `setup.log` for that run ends with `[ok] test question answered sensibly`, `[ok] start script: run-deepseek-v4.1-flash-ist-das-2.25bpw.bat`, `strata-mcp: setup ended with exit code 0`, and the config exists at `install\strata-deepseek-v4.1-flash-ist-das-2.25bpw.json`. No engine process is started. A plain load (no settings change, so no install) does work at 23:42 (`runtime.start → state: ready`, port 18500). ### 5. Registry keeps a config from the previous Control version `strata.py models list --json`: ``` deepseek-v4.1-flash-ist-das-2.25bpw | ctx 524288 | present | install_dir_source: remembered source_config: ...\components\control\0.1.49.2\strata-deepseek-v4.1-flash-ist-das-2.25bpw.json install_dirs: [...\components\control\0.1.49.2, ...\Strata\install] ``` The config the 0.1.51 install just wrote is `...\Strata\install\strata-deepseek-v4.1-flash-ist-das-2.25bpw.json` (8192). The same model id is therefore registered twice, with different contexts and different `install_dir`s, and the 0.1.49.2 one is the one reported. ## Suspected path (unconfirmed static analysis, not observed) - `tools/strata_mcp.py:2190` — `if context is None and md.get("multi_file"): context = getattr(s.setup_module(), "DSV41_CONTEXT", 8192)` - `setup.py:734` — `DSV41_CONTEXT = 8192 # the context the engine was checked at (4096 and 8192; 64K is not tried yet)` Both apply only when the request arrives without a context, which matches the observed `--context 8192` — so the value the picker holds is not reaching Control. The picker itself looks right: `catalog.contexts` is the full `[8192, 32768, 65536, 131072, 204800, 262144, 393216, 524288]` list and the models panel submits `{family, model, context, …}` with `{kind: "install", args}`. For the second symptom, `host/server/native-control.mjs:146` (`recordFile()`) is what raises `This model is not installed` when the lookup in `snapshot.installed.models` misses — the miss is plausible with the duplicate registration in §5, since that function also requires the config to live under `installRoot()`. ## What I ruled out - **Model files**: all four IST-DAS shards carry `.done` + sha256; setup step 5 says "already downloaded", step 6 "test question answered sensibly". - **Engine**: `strata-dsv41.exe --serve --pack … --max-context 524288` → `READY 524288`, 9299/15360 experts in VRAM (90.62 GB), ~21 tok/s. 512K works here, so the 8K is not an engine limit. - **VRAM**: 0 MiB free at 512K with 0.1.51 (0.1.49.2 left 187 MiB), but nothing else was loaded during these attempts and the failure happens before the engine starts. ## Suggested direction 1. For `multi_file` families, either honour the requested context or reject it with a visible message — and then do not offer 32K–512K in the picker for that family. 2. Skip (or prefer the newest over) a registered config whose `install_dir` is not the active one, so a leftover from a previous Control version cannot shadow the config a fresh install just wrote. 3. Re-read `installed` once an install job returns `exit_code: 0` before concluding the model is missing. The logs quoted above are still on disk if you want the whole files.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 25, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6399821995 --> @github-actions[bot] commented on GitHub (Oct 25, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 25, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6399859571 --> @github-actions[bot] commented on GitHub (Oct 25, 2026): Thanks, this follows the format now.
Author
Owner

@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:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660018089 --> @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: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1798
No description provided.