[GH-ISSUE #5181] [Engine] DeepSeek V4.1 on Windows Strix Halo (gfx1151): crashes on load (cudaMemcpy(x.vram_tab): unspecified launch failure) unless --vram-experts is 0.35 or less #3083

Open
opened 2026-11-07 14:37:56 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @pdmaclennan-art on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5181

Area

Engine

Desktop app, Terminal or source?

Terminal (release 0.2.10 through install.ps1; DeepSeek engine strata-dsv41.exe 0.1.56, build 06698c674, windows-x86_64-hip-rdna3, BUILD.json archs gfx1151).

What happened

DeepSeek-V4.1-Flash IST-DAS-2.00bpw on a Strix Halo laptop (gfx1151, 96 GB BIOS carve-out, Windows) crashes while loading with setup's settings, before the first token. Setup's test question fails, and so does every start where more than about 30 GiB of routed experts go to the GPU:

ds4: staging ring: experts 139.3 GB, VRAM room 111.1 GB, dense 6.6 GB -> 1200 MB
ds4: WARNING: 16.0 GB of experts stay off the GPU - Windows charges the GPU's memory to its commit (RAM + page file) and can commit only 76.1 GB more for them (9 GB kept for the other programs). A page file of 143 GB (146432 MB; now 128 GB) keeps them on the GPU: ...
ds4: CUDA0 lends the prompt path up to 7.93 GB of its experts' VRAM (23 slots a layer) while a prompt runs: chunks of up to 32768 tokens
maya-ds4: cudaMemcpy(x.vram_tab, tab.data(), tab.size() * 8, cudaMemcpyHostToDevice): unspecified launch failure
rocBLAS error during freeing of allocated memory in handle destructor: rocblas_status_internal_error

Exit code 0xC0000409. Each row is a fresh start of setup's test command (--ids <the test prompt> --n 16 --max-context 1024 --dspark auto --window 16 --verbose), nothing else using the GPU:

Change Experts on the GPU Result
none (VRAM room 111.1 GB) crash
DS4_COMMIT_CAP_GB=50 41.4 GB (the commit room it reports) crash
DS4_UMA_GPU_RESERVE_GB=24 / --reserve-mib 16384 crash
--vision off --dspark none / DS4_DEFAULTS=0 crash
DS4_LAUNCH_CHECK=1 DS4_TRACE=1 crash, no extra line
--vram-experts 0.9, 0.8, 0.7, 0.6, 0.5, 0.45, 0.4 0.4: VRAM room 44.4 GB crash
--vram-experts 0.35 32.23 GB (3,246 of 15,744) runs: "The capital of France is Paris."
--vram-experts 0.3 27.63 GB (2,710) runs, same answer

So the line falls between about 30 and 35 GiB of experts on the GPU, and the page file / commit limit is not what decides it. A 32 GiB limit on one allocation would fit, but I have not traced it.

With --vram-experts 0.35 added to setup's config, strata serve (131K context, vision on) puts 24.33 GB of experts on the GPU and runs: both needles at 24K and 80K pass and prompts are reused, but decode is 3-4 tok/s (engine 3.1-4.5) with ~115 GB of experts read from the SSD, against the 10-16 the docs give for this chip. Prompt reading: 137-143 tok/s at 4K, 303 at 16K, 451 at 32K, 506 at 64K.

Question: is there a known limit on the size of the experts' VRAM block on Windows HIP, and could the block be split so a 96 GB carve-out can hold ~90 GB of experts?

Smallest steps or command that reproduce it

  1. strata install --family deepseek41 --model IST-DAS-2.00bpw --yes --no-start (with HIP_VISIBLE_DEVICES=0: a user-level -1 here otherwise hides the GPU and the test fails with "no CUDA device").
  2. Setup's test question fails as above. strata-dsv41.exe --pack <pack> --ids @<ids> --n 16 --max-context 1024 --dspark auto --window 16 --vram-experts 0.4 crashes; --vram-experts 0.35 answers.

Reproduction status

Reproduced locally: setup's settings three times (setup's test, the test script alone, the engine with --verbose), every other row once.

Strata version

0.2.10 (Terminal 0.1.56, commit c5ab5d40; DeepSeek engine build 06698c674, ROCm 10.2.0a20260930)

Graphics card, memory and system

Radeon 8060S (Strix Halo, gfx1151), ASUS ProArt PX13, Ryzen AI Max+ 395, 128 GB with a 96 GB BIOS carve-out (Windows sees 31.6 GiB; HIP lists 107.9 GiB), page file 128 GB, Windows 11 build 26300, AMD driver 32.0.22032.6002 (older than the 32.0.32015.7029 the docs were measured on).

Model, size and settings

DeepSeek-V4.1-Flash IST-DAS-2.00bpw (four DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS shards, Engram IQ4_NL, DSpark Q8_0, mmproj BF16), setup's config: --pack <pack> --max-context 131072 --eos 1 --vision on --dspark auto --dspark-conf 0.65 --prefill-chunk 16384, env DS4_ASYNC_T=4.

Full report: https://github.com/Niko1221/Strata/pull/5182.

Originally created by @pdmaclennan-art on GitHub (Nov 4, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5181 ### Area Engine ### Desktop app, Terminal or source? Terminal (release 0.2.10 through `install.ps1`; DeepSeek engine `strata-dsv41.exe` 0.1.56, build `06698c674`, `windows-x86_64-hip-rdna3`, BUILD.json archs `gfx1151`). ### What happened DeepSeek-V4.1-Flash IST-DAS-2.00bpw on a Strix Halo laptop (gfx1151, 96 GB BIOS carve-out, Windows) crashes while loading with setup's settings, before the first token. Setup's test question fails, and so does every start where more than about 30 GiB of routed experts go to the GPU: ```text ds4: staging ring: experts 139.3 GB, VRAM room 111.1 GB, dense 6.6 GB -> 1200 MB ds4: WARNING: 16.0 GB of experts stay off the GPU - Windows charges the GPU's memory to its commit (RAM + page file) and can commit only 76.1 GB more for them (9 GB kept for the other programs). A page file of 143 GB (146432 MB; now 128 GB) keeps them on the GPU: ... ds4: CUDA0 lends the prompt path up to 7.93 GB of its experts' VRAM (23 slots a layer) while a prompt runs: chunks of up to 32768 tokens maya-ds4: cudaMemcpy(x.vram_tab, tab.data(), tab.size() * 8, cudaMemcpyHostToDevice): unspecified launch failure rocBLAS error during freeing of allocated memory in handle destructor: rocblas_status_internal_error ``` Exit code 0xC0000409. Each row is a fresh start of setup's test command (`--ids <the test prompt> --n 16 --max-context 1024 --dspark auto --window 16 --verbose`), nothing else using the GPU: | Change | Experts on the GPU | Result | | --- | ---: | --- | | none | (VRAM room 111.1 GB) | crash | | `DS4_COMMIT_CAP_GB=50` | 41.4 GB (the commit room it reports) | crash | | `DS4_UMA_GPU_RESERVE_GB=24` / `--reserve-mib 16384` | | crash | | `--vision off --dspark none` / `DS4_DEFAULTS=0` | | crash | | `DS4_LAUNCH_CHECK=1 DS4_TRACE=1` | | crash, no extra line | | `--vram-experts` 0.9, 0.8, 0.7, 0.6, 0.5, 0.45, 0.4 | 0.4: VRAM room 44.4 GB | crash | | `--vram-experts 0.35` | 32.23 GB (3,246 of 15,744) | **runs**: "The capital of France is Paris." | | `--vram-experts 0.3` | 27.63 GB (2,710) | runs, same answer | So the line falls between about 30 and 35 GiB of experts on the GPU, and the page file / commit limit is not what decides it. A 32 GiB limit on one allocation would fit, but I have not traced it. With `--vram-experts 0.35` added to setup's config, `strata serve` (131K context, vision on) puts 24.33 GB of experts on the GPU and runs: both needles at 24K and 80K pass and prompts are reused, but decode is 3-4 tok/s (engine 3.1-4.5) with ~115 GB of experts read from the SSD, against the 10-16 the docs give for this chip. Prompt reading: 137-143 tok/s at 4K, 303 at 16K, 451 at 32K, 506 at 64K. Question: is there a known limit on the size of the experts' VRAM block on Windows HIP, and could the block be split so a 96 GB carve-out can hold ~90 GB of experts? ### Smallest steps or command that reproduce it 1. `strata install --family deepseek41 --model IST-DAS-2.00bpw --yes --no-start` (with `HIP_VISIBLE_DEVICES=0`: a user-level `-1` here otherwise hides the GPU and the test fails with "no CUDA device"). 2. Setup's test question fails as above. `strata-dsv41.exe --pack <pack> --ids @<ids> --n 16 --max-context 1024 --dspark auto --window 16 --vram-experts 0.4` crashes; `--vram-experts 0.35` answers. ### Reproduction status Reproduced locally: setup's settings three times (setup's test, the test script alone, the engine with `--verbose`), every other row once. ### Strata version 0.2.10 (Terminal 0.1.56, commit `c5ab5d40`; DeepSeek engine build `06698c674`, ROCm 10.2.0a20260930) ### Graphics card, memory and system Radeon 8060S (Strix Halo, gfx1151), ASUS ProArt PX13, Ryzen AI Max+ 395, 128 GB with a 96 GB BIOS carve-out (Windows sees 31.6 GiB; HIP lists 107.9 GiB), page file 128 GB, Windows 11 build 26300, AMD driver 32.0.22032.6002 (older than the 32.0.32015.7029 the docs were measured on). ### Model, size and settings DeepSeek-V4.1-Flash IST-DAS-2.00bpw (four `DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS` shards, Engram IQ4_NL, DSpark Q8_0, mmproj BF16), setup's config: `--pack <pack> --max-context 131072 --eos 1 --vision on --dspark auto --dspark-conf 0.65 --prefill-chunk 16384`, env `DS4_ASYNC_T=4`. Full report: https://github.com/Niko1221/Strata/pull/5182.
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#3083
No description provided.