If I read this correctly, your Home Assistant is running as a guest VM with the Host having the Yolo/CUDA-hardware python executable. If correct, you may need to have HA treat Yolo/CUDA-hardware as being on a remote machine. There are a few threads around in the HA community on how to do this using ssh. Here is one of them: