[GH-ISSUE #3797] [Engine] Startup fails on dual RTX 2080 Ti 22GB GPUs due to CUDA weight arena OOM #1601

Closed
opened 2026-11-04 01:52:33 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @wxaef on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3797

Summary

Strata fails to initialize on dual RTX 2080 Ti 22GB GPUs with the Unsloth Qwen3.8 Flash-Next UD-Q4_K_XL model.

The K-quant prompt kernel fails on GPU 1 with CUDA error 2, followed by a weight-arena allocation failure when only 320 MiB VRAM remains available.

This may be caused by an existing process holding GPU memory, rather than a Strata allocator bug. I would appreciate improved diagnostics and recommendations for reliable startup/restart behavior.

Environment

  • OS: Ubuntu 24.04
  • CPU: Intel Xeon E5-2666 v3 (AVX2, no AVX-512)
  • GPUs: 2 × RTX 2080 Ti, 22GB each, NVLink
  • NVIDIA driver previously observed: 580.178.04
  • Model: Unsloth Qwen3.8 Flash-Next UD-Q4_K_XL
  • Strata version: 0.1.47

Error log

K-quant prompt kernels: libstrata_kq.so did not start
on GPU 1 (CUDA error 2) - these experts take the FP16 prompt path

rope scaling yarn, factor 2
--max-context 524288 against a trained context of 262144

layer split: CUDA0 loads the dense weights of layers 0-23 only

cudaMalloc(818947840) for the weight arena failed
(out of memory): 320 MiB of 21998 MiB VRAM free on this GPU.

The arena is allocated first, before the KV and expert caches.

strata.service: Main process exited, status=1/FAILURE

Relevant configuration

--expert-cache auto
--resident-experts
--prefill auto:32768
--spec 4
--spec-min-p 0.70
--suffix-draft 3
--pipeline-windows 2
--max-context 524288
--rope-scaling yarn
--rope-scale 2
--yarn-orig-ctx 262144
--kv int8
--kv-resident 32768
--vram-reserve-mib 896
--pcie-frac 0.35
--vision

Additional settings:

  • GPU IDs: 0, 1
  • Layer split: 24
  • fit_max_tokens: true
  • Experimental speed-projection control vector enabled, project mode, layers 4–44
  • GPU 1 K-quant kernel initialization failure

Expected behavior / questions

  1. Can Strata provide clearer diagnostics identifying the exact GPU and memory consumers when startup OOM occurs?
  2. Is CUDA error 2 from the K-quant kernel initialization expected when VRAM is almost exhausted?
  3. Can Strata safely handle service restarts when a previous engine instance has not yet released GPU memory?
  4. Are there any recommended memory settings for dual 22GB SM75 GPUs with 524K YaRN context?
  5. Could Strata provide per-GPU startup memory allocation summaries to help identify imbalance between CUDA0 and CUDA1?

Additional diagnostics

I can provide nvidia-smi, the full startup log, the exact engine version, and the systemd unit file.

The failure has not yet been reproduced after confirming that GPU memory is fully released.

Originally created by @wxaef on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3797 ## Summary Strata fails to initialize on dual RTX 2080 Ti 22GB GPUs with the Unsloth Qwen3.8 Flash-Next UD-Q4_K_XL model. The K-quant prompt kernel fails on GPU 1 with CUDA error 2, followed by a weight-arena allocation failure when only 320 MiB VRAM remains available. **This may be caused by an existing process holding GPU memory, rather than a Strata allocator bug.** I would appreciate improved diagnostics and recommendations for reliable startup/restart behavior. ## Environment - OS: Ubuntu 24.04 - CPU: Intel Xeon E5-2666 v3 (AVX2, no AVX-512) - GPUs: 2 × RTX 2080 Ti, 22GB each, NVLink - NVIDIA driver previously observed: 580.178.04 - Model: Unsloth Qwen3.8 Flash-Next UD-Q4_K_XL - Strata version: 0.1.47 ## Error log ```text K-quant prompt kernels: libstrata_kq.so did not start on GPU 1 (CUDA error 2) - these experts take the FP16 prompt path rope scaling yarn, factor 2 --max-context 524288 against a trained context of 262144 layer split: CUDA0 loads the dense weights of layers 0-23 only cudaMalloc(818947840) for the weight arena failed (out of memory): 320 MiB of 21998 MiB VRAM free on this GPU. The arena is allocated first, before the KV and expert caches. strata.service: Main process exited, status=1/FAILURE ``` ## Relevant configuration ```text --expert-cache auto --resident-experts --prefill auto:32768 --spec 4 --spec-min-p 0.70 --suffix-draft 3 --pipeline-windows 2 --max-context 524288 --rope-scaling yarn --rope-scale 2 --yarn-orig-ctx 262144 --kv int8 --kv-resident 32768 --vram-reserve-mib 896 --pcie-frac 0.35 --vision ``` Additional settings: - GPU IDs: 0, 1 - Layer split: 24 - fit_max_tokens: true - Experimental speed-projection control vector enabled, project mode, layers 4–44 - GPU 1 K-quant kernel initialization failure ## Expected behavior / questions 1. Can Strata provide clearer diagnostics identifying the exact GPU and memory consumers when startup OOM occurs? 2. Is CUDA error 2 from the K-quant kernel initialization expected when VRAM is almost exhausted? 3. Can Strata safely handle service restarts when a previous engine instance has not yet released GPU memory? 4. Are there any recommended memory settings for dual 22GB SM75 GPUs with 524K YaRN context? 5. Could Strata provide per-GPU startup memory allocation summaries to help identify imbalance between CUDA0 and CUDA1? ## Additional diagnostics I can provide `nvidia-smi`, the full startup log, the exact engine version, and the systemd unit file. The failure has not yet been reproduced after confirming that GPU memory is fully released.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 23, 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:6358775542 --> @github-actions[bot] commented on GitHub (Oct 23, 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 23, 2026):

Thanks, this follows the format now.

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

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

Thank you. This looks like another process holding VRAM at the time of the start (320 MiB free of 22 GB when the arena was allocated; the K-quant CUDA error 2 is the same shortage). Please reopen with: nvidia-smi output taken just before the failing start (processes and memory per GPU), the full engine log from the start, the systemd unit file, and whether the failure repeats on a start 30 seconds after the previous engine has fully exited. We will look at adding the per-GPU memory summary and the process list to the out-of-memory message at start.

<!-- gh-comment-id:6423236090 --> @Niko1221 commented on GitHub (Oct 26, 2026): Thank you. This looks like another process holding VRAM at the time of the start (320 MiB free of 22 GB when the arena was allocated; the K-quant CUDA error 2 is the same shortage). Please reopen with: nvidia-smi output taken just before the failing start (processes and memory per GPU), the full engine log from the start, the systemd unit file, and whether the failure repeats on a start 30 seconds after the previous engine has fully exited. We will look at adding the per-GPU memory summary and the process list to the out-of-memory message at start.
Author
Owner

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

Thank you. Fixed in 0.2.7: Audit fixes for failed allocations, the reserve arithmetic as a tested helper, a per-card out-of-memory report (#3638 #3702 #3797).

Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7

<!-- gh-comment-id:6446085315 --> @Niko1221 commented on GitHub (Oct 27, 2026): Thank you. Fixed in 0.2.7: Audit fixes for failed allocations, the reserve arithmetic as a tested helper, a per-card out-of-memory report (#3638 #3702 #3797). Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7
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#1601
No description provided.