You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GPU shared memory causing slow PyTorch training #10452
Run a PyTorch training job that repeatedly allocates close to the max physical VRAM available on an attached Nvidia GPU. The issue occurs both when the GPU is the primary display GPU and when it is not (this system has a 3080 and 3090 of which the 3080 drives the displays).
Expected Behavior
I expect similar it/s to before I installed some OS and driver updates and low usage of the GPU BUS and shared memory.
Actual Behavior
However, instead the GPU utilization is pinned to 100%, BUS usage spikes much higher than normal, GPU temps stay low, shared GPU memory spikes from it's normally near-zero value and training occurs at a snails pace. Reducing the batch size by one resolves this issue.
Unfortunately if the issue comes from an nvidia driver update, this isn't something that WSL can fix. I'd recommend raising the issue to nvidia directly.
Activity
OneBlue commentedon Sep 8, 2023
Unfortunately if the issue comes from an nvidia driver update, this isn't something that WSL can fix. I'd recommend raising the issue to nvidia directly.
lixit commentedon Jul 25, 2024
I can confirm that using WSL 2 with pytorch to run a LLama2 model is even slower than running it on CPU.
My hardware:
Windows 11
CPU: 7945HX,
GPU: RTX 4060 mobile with 8 GB of dedicated memory, 45 GB of shared GPU memory
Mem: 96 GB ddr5
result:
GPU usage is 100% but power consumption is very low: 15w out of 140W
The generation process took forever to run.