Qwen2-VL-Instruct安装及测试记录

1 相关软件地址

2 硬件环境

● 16vCPU(虚拟中央处理单元)

● 60G内存

● 80G硬盘

● 24G显存A10

3 软件环境

ubuntu v24

4 安装软件要求

MiniConda3

nvdia A10显卡驱动:12.4.0

cuda:12.4.0

cudnn 9.6.0

5 软件安装过程

5.1 查看/修改安装源

# 查看当前软件源
cat /etc/apt/sources.list

# 如果没有阿里云的镜像源,添加上。
# 阿里云的软件源是:
deb https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse

5.2 安装miniconda3(Python虚拟环境)

使用MiniConda3安装并管理Python,便于版本依赖环境隔离。

  1. 下载安装脚本
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
  1. 执行安装脚本
chmod +x Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh

安装截图:

执行安装脚本后,一直按回车,直到出现输入yes or no的选项,输入yes

是否更改默认路径,如果需要更改则输入新的安装路径后回车。

是否要在安装过程中执行初始化,默认是no,这里输入yes。

安装成功后输入source ~/.bashrc更新环境变量;

输入conda验证是否安装成功。

5.3 安装显卡驱动

  • 官网下载驱动

https://www.nvidia.cn/drivers/lookup/

对应显卡,依次选择筛选条件,版本选择为12.4,设置好条件后,点击“查找”,

点击“查看”

点击“下载”按钮,下载显卡驱动;或者,右键点击下载按钮,复制下载链接,之后在服务器上使用wget命令下载。例如:

wget https://cn.download.nvidia.com/tesla/550.127.08/NVIDIA-Linux-x86_64-550.127.08.run
  • 确保系统中已安装gcc-12和make环境
sudo apt update
sudo apt install gcc-12 make
  • 装显卡驱动
chmod +x NVIDIA-Linux-x86_64-550.127.08.run
sudo ./NVIDIA-Linux-x86_64-550.127.08.run

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值