[GH-ISSUE #5375] [Engine] DeepSeek V4.1 Flash fails on WSL2: cudaHostAlloc 1262 MiB returns cudaErrorMemoryAllocation (RTX 5090) #3203

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

Originally created by @VlasovFM on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5375

<html> <html><head></head>

Summary

DeepSeek-V4.1-Flash IST-DAS-2.00bpw cannot complete its startup smoke test under WSL2 on an NVIDIA RTX 5090. The engine fails while allocating a 1262 MiB pinned host-memory buffer for embeddings.

The same CUDA allocation fails in a standalone program, even with approximately 115 GiB of available system RAM and no active inference server.

The failure persists after updating the NVIDIA driver from 617.42 to 621.14 and restarting WSL2.

Environment

Component | Configuration -- | -- Host OS | Windows 10, build 19045.6456 WSL | 2.7.3.0 WSL kernel | 6.6.114.1-1 Guest | Ubuntu under WSL2 GPU | NVIDIA GeForce RTX 5090, 32 GiB VRAM CPU | Intel Core i7-13700KF Physical RAM | 128 GB WSL available RAM | Approximately 115 GiB during standalone tests Strata CLI | 0.2.10 DeepSeek engine | 0.1.57, Linux x86_64 CUDA 13 CUDA Runtime | 13.0 CUDA Driver API | 13.4 before update, 13.5 after update NVIDIA Windows driver | Tested with 617.42 and 621.14 Model | DeepSeek-V4.1-Flash IST-DAS-2.00bpw Context | 32K, INT8 KV cache

The Windows driver was verified to be functioning correctly. WSL2 was restarted after the driver update.

The standalone failure was reproduced without an active inference server.

Suspected cause

The DeepSeek engine appears to allocate the embedding table using cudaHostAlloc, requesting approximately 1262 MiB of pinned host memory in one allocation.

NVIDIA documents limitations on pinned system memory under CUDA on WSL2:

https://docs.nvidia.com/cuda/wsl-user-guide/#known-limitations-for-linux-cuda-applications

The exact internal driver limit has not been established. We are not claiming that every WSL2 installation has a universal 1 GiB allocation limit.

The main Strata engine appears to have WSL-aware allocation logic using ordinary host memory and cudaHostRegister as an alternative:

https://github.com/Niko1221/Strata/blob/main/src/core/layer.cpp

Could a supported fallback be implemented or reused for the DeepSeek embedding allocation, if compatible with its CUDA access patterns?

Expected behavior

DeepSeek setup should complete its smoke test and start inference successfully on supported WSL2/CUDA configurations, or provide an officially supported configuration or workaround when the required pinned allocation cannot be made.

Actual behavior

DeepSeek setup aborts during model initialization, despite verified model files and sufficient ordinary RAM and VRAM.

Questions for maintainers

  1. Is DeepSeek engine 0.1.57 officially expected to work under WSL2 with this GPU configuration?

  2. Is the 1262 MiB cudaHostAlloc allocation a known limitation?

  3. Does the DeepSeek engine have an existing supported workaround?

  4. Could the WSL-aware host-memory fallback used elsewhere in Strata be applied here?

  5. Is an official fix planned?

I would prefer to keep using the standard Strata runtime and supported engine releases rather than maintain a custom engine patch.

My intended setup uses Qwen3.8-Flash-Next and DeepSeek-V4.1-Flash as selectable models, with a shared API and automatic process and memory lifecycle management.

</html>
Originally created by @VlasovFM on GitHub (Nov 6, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5375 <html> <body> <!--StartFragment--><html><head></head><body><h3><span>Summary</span></h3><p><span>DeepSeek-V4.1-Flash IST-DAS-2.00bpw cannot complete its startup smoke test under WSL2 on an NVIDIA RTX 5090. The engine fails while allocating a 1262 MiB pinned host-memory buffer for embeddings.</span></p><p><span>The same CUDA allocation fails in a standalone program, even with approximately 115 GiB of available system RAM and no active inference server.</span></p><p><span>The failure persists after updating the NVIDIA driver from 617.42 to 621.14 and restarting WSL2.</span></p><h3><span>Environment</span></h3> Component | Configuration -- | -- Host OS | Windows 10, build 19045.6456 WSL | 2.7.3.0 WSL kernel | 6.6.114.1-1 Guest | Ubuntu under WSL2 GPU | NVIDIA GeForce RTX 5090, 32 GiB VRAM CPU | Intel Core i7-13700KF Physical RAM | 128 GB WSL available RAM | Approximately 115 GiB during standalone tests Strata CLI | 0.2.10 DeepSeek engine | 0.1.57, Linux x86_64 CUDA 13 CUDA Runtime | 13.0 CUDA Driver API | 13.4 before update, 13.5 after update NVIDIA Windows driver | Tested with 617.42 and 621.14 Model | DeepSeek-V4.1-Flash IST-DAS-2.00bpw Context | 32K, INT8 KV cache <p><span>The Windows driver was verified to be functioning correctly. WSL2 was restarted after the driver update.</span></p><p><span>The standalone failure was reproduced without an active inference server.</span></p><h3><span>Suspected cause</span></h3><p><span>The DeepSeek engine appears to allocate the embedding table using </span><code><span>cudaHostAlloc</span></code><span>, requesting approximately 1262 MiB of pinned host memory in one allocation.</span></p><p><span>NVIDIA documents limitations on pinned system memory under CUDA on WSL2:</span></p><p><a href="https://docs.nvidia.com/cuda/wsl-user-guide/#known-limitations-for-linux-cuda-applications"><span>https://docs.nvidia.com/cuda/wsl-user-guide/#known-limitations-for-linux-cuda-applications</span></a></p><p><span>The exact internal driver limit has not been established. We are not claiming that every WSL2 installation has a universal 1 GiB allocation limit.</span></p><p><span>The main Strata engine appears to have WSL-aware allocation logic using ordinary host memory and </span><code><span>cudaHostRegister</span></code><span> as an alternative:</span></p><p><a href="https://github.com/Niko1221/Strata/blob/main/src/core/layer.cpp"><span>https://github.com/Niko1221/Strata/blob/main/src/core/layer.cpp</span></a></p><p><span>Could a supported fallback be implemented or reused for the DeepSeek embedding allocation, if compatible with its CUDA access patterns?</span></p><h3><span>Expected behavior</span></h3><p><span>DeepSeek setup should complete its smoke test and start inference successfully on supported WSL2/CUDA configurations, or provide an officially supported configuration or workaround when the required pinned allocation cannot be made.</span></p><h3><span>Actual behavior</span></h3><p><span>DeepSeek setup aborts during model initialization, despite verified model files and sufficient ordinary RAM and VRAM.</span></p><h3><span>Questions for maintainers</span></h3><ol start="1"><li><p><span>Is DeepSeek engine 0.1.57 officially expected to work under WSL2 with this GPU configuration?</span></p></li><li><p><span>Is the 1262 MiB </span><code><span>cudaHostAlloc</span></code><span> allocation a known limitation?</span></p></li><li><p><span>Does the DeepSeek engine have an existing supported workaround?</span></p></li><li><p><span>Could the WSL-aware host-memory fallback used elsewhere in Strata be applied here?</span></p></li><li><p><span>Is an official fix planned?</span></p></li></ol><p><span>I would prefer to keep using the standard Strata runtime and supported engine releases rather than maintain a custom engine patch.</span></p><p><span>My intended setup uses Qwen3.8-Flash-Next and DeepSeek-V4.1-Flash as selectable models, with a shared API and automatic process and memory lifecycle management.</span></p><!--EndFragment--> </body> </html>
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#3203
No description provided.