smallcloudai / refact

WebUI for Fine-Tuning and Self-hosting of Open-Source Large Language Models for Coding
https://refact.ai
BSD 3-Clause "New" or "Revised" License
1.55k stars 104 forks source link

error running docker on wsl with cuda #368

Open josersleal opened 6 months ago

josersleal commented 6 months ago

followed the instructions, installed cuda and then ran the docker command as per docs. Error showed:

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy' nvidia-container-cli: requirement error: unsatisfied condition: cuda>=11.8, please update your driver to a newer version, or use an earlier cuda container: unknown.

adding --env NVIDIA_DISABLE_REQUIRE=1 to the docker command allows it to start, however this should not occur.

----> dpkg -s nvidia-container-toolkit Package: nvidia-container-toolkit Status: install ok installed Priority: optional Section: utils Installed-Size: 2754 Maintainer: NVIDIA CORPORATION cudatools@nvidia.com Architecture: amd64 Version: 1.15.0~rc.3-1 Replaces: nvidia-container-runtime (<= 3.5.0-1), nvidia-container-runtime-hook Depends: nvidia-container-toolkit-base (= 1.15.0~rc.3-1), libnvidia-container-tools (>= 1.15.0~rc.3-1), libnvidia-container-tools (<< 2.0.0) Breaks: nvidia-container-runtime (<= 3.5.0-1), nvidia-container-runtime-hook Description: NVIDIA Container toolkit Provides tools and utilities to enable GPU support in containers. Homepage: https://github.com/NVIDIA/nvidia-container-toolkit

mitya52 commented 6 months ago

unsatisfied condition: cuda>=11.8 looks like you have old nvidia driver, try to update it