[GH-ISSUE #4134] [Engine] launch --vram-reserve-mib is an unknown argument #1810

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

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

It maxes out my VRAM and crashes, and the option can't be used.

strata launch --vram-reserve-mib 2048
strata: '--vram-reserve-mib' is not a strata launch option. Did you mean '--save-preset'? '2048' was not expected here. See: strata launch --help

OS: CachyOS
GPU: AMD 7900XTX
ROCM: 7.2.4

Originally created by @OneOfOne on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4134 It maxes out my VRAM and crashes, and the option can't be used. ```zsh strata launch --vram-reserve-mib 2048 strata: '--vram-reserve-mib' is not a strata launch option. Did you mean '--save-preset'? '2048' was not expected here. See: strata launch --help ``` OS: CachyOS GPU: AMD 7900XTX ROCM: 7.2.4
Author
Owner

@ukrolelo commented on GitHub (Oct 25, 2026):

this parameter should be in the json ?

<!-- gh-comment-id:6401380061 --> @ukrolelo commented on GitHub (Oct 25, 2026): this parameter should be in the json ?
Author
Owner

@OneOfOne commented on GitHub (Oct 25, 2026):

I added it to json and it got auto deleted ~/.config/strata/launch-presets/iq1_m-64k.json after the next time I launched.

<!-- gh-comment-id:6401412475 --> @OneOfOne commented on GitHub (Oct 25, 2026): I added it to json and it got auto deleted `~/.config/strata/launch-presets/iq1_m-64k.json` after the next time I launched.
Author
Owner

@OneOfOne commented on GitHub (Oct 25, 2026):

  "extra": {
	"--vram-reserve-mib": "2048"
  },

doesn't change anything, it always maxes my vram.

<!-- gh-comment-id:6403458379 --> @OneOfOne commented on GitHub (Oct 25, 2026): ``` "extra": { "--vram-reserve-mib": "2048" }, ``` doesn't change anything, it always maxes my vram.
Author
Owner

@ukrolelo commented on GitHub (Oct 26, 2026):

i had same problem with q5 but fixed it, idk what specifically helped but you can check some of the settings https://github.com/Niko1221/Strata/issues/3691

<!-- gh-comment-id:6410639503 --> @ukrolelo commented on GitHub (Oct 26, 2026): i had same problem with q5 but fixed it, idk what specifically helped but you can check some of the settings https://github.com/Niko1221/Strata/issues/3691
Author
Owner

@Cyneric commented on GitHub (Oct 26, 2026):

@OneOfOne We’ve opened draft PR #4223 to add --vram-reserve-mib to strata launch. We verified that the CLI accepts and forwards the value, but we don’t have a Radeon 7900 XTX to check the actual VRAM behavior. Could you try the PR with your usual setup and share the engine startup log and observed VRAM use? Please redact any private paths or other sensitive details.

<!-- gh-comment-id:6416061304 --> @Cyneric commented on GitHub (Oct 26, 2026): @OneOfOne We’ve opened draft PR #4223 to add `--vram-reserve-mib` to `strata launch`. We verified that the CLI accepts and forwards the value, but we don’t have a Radeon 7900 XTX to check the actual VRAM behavior. Could you try the PR with your usual setup and share the engine startup log and observed VRAM use? Please redact any private paths or other sensitive details.
Author
Owner

@Cyneric commented on GitHub (Oct 26, 2026):

If anyone else with a Radeon 7900 XTX can test draft PR #4223 with --vram-reserve-mib 2048, confirmation of the startup log and observed VRAM use would also be very helpful.

<!-- gh-comment-id:6416097029 --> @Cyneric commented on GitHub (Oct 26, 2026): If anyone else with a Radeon 7900 XTX can test draft PR #4223 with `--vram-reserve-mib 2048`, confirmation of the startup log and observed VRAM use would also be very helpful.
Author
Owner

@OneOfOne commented on GitHub (Oct 26, 2026):

I can confirm

	"--vram-reserve-mib": "2048"
  }

passes it to the engine, it just chooses it to ignore it (sometimes, today it didn't, but it causes a different problem)

~/.local/share/strata/components/engine/0.1.50-linux-x86_64-hip-rx7900/strata --serve --pack ~/strata/packs/coder-iq1_m --native ~/strata/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf --ple-gguf ~/strata/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf --expert-profile ~/.local/share/strata/terminal/0.1.51/data/expert-profile-coder.bin --expert-cache auto --spec 4 --spec-min-p 0.5 --mtp ~/strata/mtp/rt --max-context 131072 --kv q4_0 --ple-io ram --kv-resident 32768 --peer-reserve-mib 2048 --vram-reserve-mib 2048 --prefill auto:32768

Image

EDIT:

I set it to 0 and it still won't start:

strata generate: session state allocation failed
[strata] 2026-10-26 13:03:00 engine started: /home/oneofone/.local/share/strata/components/engine/0.1.50-linux-x86_64-hip-rx7900/strata --serve --pack /home/oneofone/strata/packs/coder-iq1_m --native /home/oneofone/strata/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf --ple-gguf /home/oneofone/strata/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf --expert-profile /home/oneofone/.local/share/strata/terminal/0.1.51/data/expert-profile-coder.bin --expert-cache auto --spec 4 --spec-min-p 0.5 --mtp /home/oneofone/strata/mtp/rt --max-context 131072 --kv q4_0 --ple-io ram --kv-resident 32768 --vram-reserve-mib 0 --prefill auto:32768
strata generate: memory guard: limit 125.2 GiB (source: meminfo), current 61.1 GiB, reclaimable cache credited 0.0 GiB; available 64.1 GiB (MemAvailable 64.1 GiB), floor 2560 MiB
strata generate: PCIe probe: 28.5 GB/s host->device (best of 28.5 28.5 28.5 28.5) -> pcie_frac 0.55 (default 0.55)
strata generate: native pack: /home/oneofone/strata/packs/coder-iq1_m experts (largest blob 2.66 MB), token embedding IQ4_XS in mapped host memory (322 MiB, 0.1 s)
strata generate: 1406 MiB of weights loaded from /home/oneofone/strata/packs/coder-iq1_m in 0.2 s (302 canonical tensors skipped: served natively)
strata generate: 300 native projection matrices, 2018.88 MiB of weights, in 0.3 s
strata generate: PLE table locked in RAM (--ple-io ram) in 1.8 s
strata generate: profile /home/oneofone/.local/share/strata/terminal/0.1.51/data/expert-profile-coder.bin: 12288 ranked pairs, built for 12288 slots
strata generate: session state allocation failed

EDIT 2:

I can't even run --retune now, it dies with OOM.

<!-- gh-comment-id:6423416116 --> @OneOfOne commented on GitHub (Oct 26, 2026): I can confirm ``` "extra": { "--vram-reserve-mib": "2048" } ``` passes it to the engine, it just chooses it to ignore it (sometimes, today it didn't, but it causes a different problem) ``` ~/.local/share/strata/components/engine/0.1.50-linux-x86_64-hip-rx7900/strata --serve --pack ~/strata/packs/coder-iq1_m --native ~/strata/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf --ple-gguf ~/strata/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf --expert-profile ~/.local/share/strata/terminal/0.1.51/data/expert-profile-coder.bin --expert-cache auto --spec 4 --spec-min-p 0.5 --mtp ~/strata/mtp/rt --max-context 131072 --kv q4_0 --ple-io ram --kv-resident 32768 --peer-reserve-mib 2048 --vram-reserve-mib 2048 --prefill auto:32768 ``` <img width="1280" height="720" alt="Image" src="https://github.com/user-attachments/assets/b4f4a815-4bdb-45e9-a308-4e2383224da6" /> EDIT: I set it to 0 and it still won't start: ``` strata generate: session state allocation failed [strata] 2026-10-26 13:03:00 engine started: /home/oneofone/.local/share/strata/components/engine/0.1.50-linux-x86_64-hip-rx7900/strata --serve --pack /home/oneofone/strata/packs/coder-iq1_m --native /home/oneofone/strata/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf --ple-gguf /home/oneofone/strata/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf --expert-profile /home/oneofone/.local/share/strata/terminal/0.1.51/data/expert-profile-coder.bin --expert-cache auto --spec 4 --spec-min-p 0.5 --mtp /home/oneofone/strata/mtp/rt --max-context 131072 --kv q4_0 --ple-io ram --kv-resident 32768 --vram-reserve-mib 0 --prefill auto:32768 strata generate: memory guard: limit 125.2 GiB (source: meminfo), current 61.1 GiB, reclaimable cache credited 0.0 GiB; available 64.1 GiB (MemAvailable 64.1 GiB), floor 2560 MiB strata generate: PCIe probe: 28.5 GB/s host->device (best of 28.5 28.5 28.5 28.5) -> pcie_frac 0.55 (default 0.55) strata generate: native pack: /home/oneofone/strata/packs/coder-iq1_m experts (largest blob 2.66 MB), token embedding IQ4_XS in mapped host memory (322 MiB, 0.1 s) strata generate: 1406 MiB of weights loaded from /home/oneofone/strata/packs/coder-iq1_m in 0.2 s (302 canonical tensors skipped: served natively) strata generate: 300 native projection matrices, 2018.88 MiB of weights, in 0.3 s strata generate: PLE table locked in RAM (--ple-io ram) in 1.8 s strata generate: profile /home/oneofone/.local/share/strata/terminal/0.1.51/data/expert-profile-coder.bin: 12288 ranked pairs, built for 12288 slots strata generate: session state allocation failed ``` EDIT 2: I can't even run `--retune` now, it dies with OOM.
Author
Owner

@Cyneric commented on GitHub (Oct 26, 2026):

Thanks for the logs. They confirm that the JSON setting reaches the engine.

Looking at the code, session state allocation failed occurs before the automatic expert cache is sized using --vram-reserve-mib. That may explain why both 2048 and 0 fail here. This is based on code inspection; we haven't reproduced it on a Radeon.

Could you share the free VRAM and running GPU processes immediately before launch, plus the full --retune failure log? A separate run with a smaller context would also help narrow this down.

For PR #4223 specifically, could you confirm whether you installed that branch and tested the direct strata launch --vram-reserve-mib 2048 option? The JSON extra route already existed; the PR adds the direct launch option without changing engine memory allocation.

<!-- gh-comment-id:6426981564 --> @Cyneric commented on GitHub (Oct 26, 2026): Thanks for the logs. They confirm that the JSON setting reaches the engine. Looking at the code, `session state allocation failed` occurs before the automatic expert cache is sized using `--vram-reserve-mib`. That may explain why both `2048` and `0` fail here. This is based on code inspection; we haven't reproduced it on a Radeon. Could you share the free VRAM and running GPU processes immediately before launch, plus the full `--retune` failure log? A separate run with a smaller context would also help narrow this down. For PR #4223 specifically, could you confirm whether you installed that branch and tested the direct `strata launch --vram-reserve-mib 2048` option? The JSON `extra` route already existed; the PR adds the direct launch option without changing engine memory allocation.
Author
Owner

@XiaoBinGan commented on GitHub (Oct 27, 2026):

The plumbing already carries this value; only the dedicated flag is missing. Measured in the official image 0.2.2-cuda13 (engine 0.1.47) on a 32 GB RTX 5090, Ubuntu 20.04 host:

$ strata launch --vram-reserve-mib 832 --plan
strata: '--vram-reserve-mib' is not a strata launch option. Did you mean '--save-preset'? '832' was not expected here.

$ strata launch --set vram-reserve-mib=832 --plan --output json | jq .plan.settings.extra
{ "--vram-reserve-mib": "832" }

So --set stores it where the engine arguments are assembled (LaunchSettings.extra), and the plan's flags line echoes --set vram-reserve-mib=832. Inside the container the same thing is reachable without --set: docker/entrypoint.sh translates STRATA_SET (STRATA_SET="vram-reserve-mib=832") into one --set per KEY=VALUE, which is what docs/DOCKER.md documents under Settings.

Two consequences for this issue and #4223:

  • A reader who follows the engine's own advice ("Add --vram-reserve-mib 832 to the config's args") from a Terminal install hits the rejected flag above, not the workaround. Naming --set vram-reserve-mib=832 in the engine's advice, or accepting the flag as #4223 does, closes that gap; the value already reaches the engine either way.
  • The workaround is worth having in the issue text regardless: it is the only thing a released Terminal can do today.

Not related to the cause you are chasing (the engine ignoring the value on a 7900 XTX): I have no AMD card here and did not test that half. This is only about the argument path.

<!-- gh-comment-id:6443995618 --> @XiaoBinGan commented on GitHub (Oct 27, 2026): The plumbing already carries this value; only the dedicated flag is missing. Measured in the official image `0.2.2-cuda13` (engine 0.1.47) on a 32 GB RTX 5090, Ubuntu 20.04 host: ```text $ strata launch --vram-reserve-mib 832 --plan strata: '--vram-reserve-mib' is not a strata launch option. Did you mean '--save-preset'? '832' was not expected here. $ strata launch --set vram-reserve-mib=832 --plan --output json | jq .plan.settings.extra { "--vram-reserve-mib": "832" } ``` So `--set` stores it where the engine arguments are assembled (`LaunchSettings.extra`), and the plan's `flags` line echoes `--set vram-reserve-mib=832`. Inside the container the same thing is reachable without `--set`: `docker/entrypoint.sh` translates `STRATA_SET` (`STRATA_SET="vram-reserve-mib=832"`) into one `--set` per `KEY=VALUE`, which is what `docs/DOCKER.md` documents under Settings. Two consequences for this issue and #4223: - A reader who follows the engine's own advice ("Add `--vram-reserve-mib 832` to the config's args") from a Terminal install hits the rejected flag above, not the workaround. Naming `--set vram-reserve-mib=832` in the engine's advice, or accepting the flag as #4223 does, closes that gap; the value already reaches the engine either way. - The workaround is worth having in the issue text regardless: it is the only thing a released Terminal can do today. Not related to the cause you are chasing (the engine ignoring the value on a 7900 XTX): I have no AMD card here and did not test that half. This is only about the argument path.
Author
Owner

@Cyneric commented on GitHub (Oct 27, 2026):

Thanks for testing. I should have mentioned --set. This already works in released Terminal versions:

strata launch --set vram-reserve-mib=2048

PR #4223 just adds the direct --vram-reserve-mib flag. It doesn't change how the engine allocates memory, so the 7900 XTX startup failure still needs investigating.

<!-- gh-comment-id:6450140919 --> @Cyneric commented on GitHub (Oct 27, 2026): Thanks for testing. I should have mentioned `--set`. This already works in released Terminal versions: ```sh strata launch --set vram-reserve-mib=2048 ``` PR #4223 just adds the direct `--vram-reserve-mib` flag. It doesn't change how the engine allocates memory, so the 7900 XTX startup failure still needs investigating.
Author
Owner

@OneOfOne commented on GitHub (Oct 27, 2026):

we can close this for now and the PR since the config json works as intended.

I'll try to open another ticket later, I've been really busy the last few days.

<!-- gh-comment-id:6454131897 --> @OneOfOne commented on GitHub (Oct 27, 2026): we can close this for now and the PR since the config json works as intended. I'll try to open another ticket later, I've been really busy the last few days.
Author
Owner

@Niko1221 commented on GitHub (Oct 29, 2026):

The setting is strata launch --set vram-reserve-mib=2048, or "extra": {"--vram-reserve-mib": "2048"} in the preset. Closing as you suggested. The failure session state allocation failed on the 7900 XTX is a separate engine problem; please open a new issue for it with the free VRAM before launch and the full log.

<!-- gh-comment-id:6491949395 --> @Niko1221 commented on GitHub (Oct 29, 2026): The setting is `strata launch --set vram-reserve-mib=2048`, or `"extra": {"--vram-reserve-mib": "2048"}` in the preset. Closing as you suggested. The failure `session state allocation failed` on the 7900 XTX is a separate engine problem; please open a new issue for it with the free VRAM before launch and the full log.
Author
Owner

@pjsgsy commented on GitHub (Nov 3, 2026):

For me, this has no effect. I tried updating to the tui today, as I could not get dflash via the old 'UPDATE.bat' method, nor manually trying to push it, but, it's a config disaster! lol. --vram-reserve-mib is reported as not a valid argument in the TUI. Adding it manually per above, it's just ignored. It's in the json config, but loading with 1/3rd of the experts it does with the old (original) setup, as it seems to simply ignore the vram-reserve-mib.

<!-- gh-comment-id:6600293347 --> @pjsgsy commented on GitHub (Nov 3, 2026): For me, this has no effect. I tried updating to the tui today, as I could not get dflash via the old 'UPDATE.bat' method, nor manually trying to push it, but, it's a config disaster! lol. --vram-reserve-mib is reported as not a valid argument in the TUI. Adding it manually per above, it's just ignored. It's in the json config, but loading with 1/3rd of the experts it does with the old (original) setup, as it seems to simply ignore the vram-reserve-mib.
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#1810
No description provided.