千问模型测试环境配置

配置千问环境比较顺利,有些由于速度问题较慢,添加源之后提速很多,记录如下:

1.创建虚拟环境
conda create -p /datanas3/chenjing/envs/qwen python==3.8
2.激活虚拟环境
conda activate /datanas3/chenjing/envs/qwen
3.添加源
conda config --show channels
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch
conda config --set show_channel_urls yes
conda config --show channels
4.安装pytorch和torchvision
pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
5.安装Qwen-VL需要依赖
cd /datanas3/chenjing/openproject/Qwen-VL/
pip install -r requirements.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
6.安装modelscope(下载模型需要)
pip install modelscope -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

进行以上步骤后,按照说明文件测试示例正常

相关推荐

  1. 模型测试环境配置

    2023-12-07 21:52:05       57 阅读
  2. 通义测试

    2023-12-07 21:52:05       55 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-07 21:52:05       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-07 21:52:05       101 阅读
  3. 在Django里面运行非项目文件

    2023-12-07 21:52:05       82 阅读
  4. Python语言-面向对象

    2023-12-07 21:52:05       91 阅读

热门阅读

  1. 洛谷p2006题。洛谷p2006题。

    2023-12-07 21:52:05       66 阅读
  2. 重型堆垛机钢丝绳维护经验

    2023-12-07 21:52:05       47 阅读
  3. APM Server监控

    2023-12-07 21:52:05       65 阅读
  4. 人群计数CSRNet的pytorch实现

    2023-12-07 21:52:05       63 阅读
  5. 高德地图海量点

    2023-12-07 21:52:05       60 阅读
  6. python3: jieba(“结巴”中文分词库) .2023-11-28

    2023-12-07 21:52:05       61 阅读
  7. CPU密集型和IO密集型对 CPU内核之间的关系

    2023-12-07 21:52:05       59 阅读
  8. 循环队列(数据结构实训)

    2023-12-07 21:52:05       54 阅读