赞
踩
CUDA版本选择应该只要大于11.7版本就可以,我安装时安装的是12.3版本
执行如下图命令安装WSL2的专用版本CUDA
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin
sudo mv cuda-wsl-ubuntu.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.7.0/local_installers/cuda-repo-wsl-ubuntu-11-7-local_11.7.0-1_amd64.deb
sudo dpkg -i cuda-repo-wsl-ubuntu-11-7-local_11.7.0-1_amd64.deb
sudo cp /var/cuda-repo-wsl-ubuntu-11-7-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda
# tabby 的模型数据存储位置
export TABBY_ROOT=~/tabby
# 国内的模型存储仓库,不配置的话默认为huggingface,速度很慢
export TABBY_DOWNLOAD_HOST=modelscope.cn
./tabby_x86_64-manylinux2014-cuda117 serve --model TabbyML/StarCoder-1B --device cuda
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。