mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5375] [Engine] DeepSeek V4.1 Flash fails on WSL2: cudaHostAlloc 1262 MiB returns cudaErrorMemoryAllocation (RTX 5090) #3203
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3203
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @VlasovFM on GitHub (Nov 6, 2026).
<html> <html><head></head>Original GitHub issue: https://github.com/Niko1221/Strata/issues/5375
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 cacheThe 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
cudaHostRegisteras 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
Is DeepSeek engine 0.1.57 officially expected to work under WSL2 with this GPU configuration?
Is the 1262 MiB
cudaHostAllocallocation a known limitation?Does the DeepSeek engine have an existing supported workaround?
Could the WSL-aware host-memory fallback used elsewhere in Strata be applied here?
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>