Chat-RAG icon indicating copy to clipboard operation
Chat-RAG copied to clipboard

Embedding Model Runtime Error

Open JakeFurtaw opened this issue 2 years ago • 1 comments

Issue

When you run the program and come back after a few hours to run the program you get a Runtime error. This error occurs when the program tries to load the embedding model onto the GPU.

Error Message

RuntimeError: CUDA error: CUDA-capable device(s) is/are busy or unavailable
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

Temporary Fix

Restart your computer to clear the GPU's memory and allow the embedding model to load properly. I have done some investigating in nvidia-smi and it seems nothing is loaded into the GPU so I'm not sure what is causing the error.

JakeFurtaw avatar Aug 31 '24 11:08 JakeFurtaw

The PR #12 mitigates the issue described in #6 by avoiding a forced GPU default.

saksham-jain177 avatar Dec 29 '25 15:12 saksham-jain177