CPM-Bee icon indicating copy to clipboard operation
CPM-Bee copied to clipboard

BMTrain不好安装 能出一个具体的环境要求吗 ?

Open xiaoguaishoubaobao opened this issue 1 year ago • 8 comments

尝试了很多版本也不知道哪里出问题了
反正就是安装不上 有的时候提示torch没有 有的时候有提示gcc 重新安装了数次 我的是在dock环境里面 折腾了2天了 环境还没有配好 万分感谢啦

xiaoguaishoubaobao avatar Jun 09 '23 08:06 xiaoguaishoubaobao

windows就放弃了吧,我是wsl2安装,

  1. 先安装cuda 驱动,注意适配,我是适配的 wsl Ubantu
  2. 然后conda ,
  3. 然后 torch 注意版本匹配,我是cuda 11.7
  4. 然后 requirements.txt
  5. bmtrain 编译慢,pip 还要卡很久

skyantao avatar Jun 10 '23 07:06 skyantao

windows就放弃了吧,我是wsl2安装,

  1. 先安装cuda 驱动,注意适配,我是适配的 wsl Ubantu
  2. 然后conda ,
  3. 然后 torch 注意版本匹配,我是cuda 11.7
  4. 然后 requirements.txt
  5. bmtrain 编译慢,pip 还要卡很久

感谢大佬的回复 我在linux上也不好安装 安装了几次都失败了

大佬你有具体的环境配置吗

请问如果翻译500字成中文的话 大概需要多长时间了

万分感谢啦

xiaoguaishoubaobao avatar Jun 10 '23 08:06 xiaoguaishoubaobao

@xiaoguaishoubaobao, 我是wsl2 Ubantu 22.04 注意torch 安装

python = 3.9.16 pip install torch==1.13.0+cu117 -f https://download.pytorch.org/whl/torch_stable.html

其余的没啥了
import torch torch.version 输出 torch 1.13+ cu11.7

翻译没测试,续写好像 10多秒 GP100 16G, 显卡有点老

skyantao avatar Jun 10 '23 09:06 skyantao

万分感谢大佬的回复

GP100 能有这样的成绩也挺厉害了

xiaoguaishoubaobao avatar Jun 10 '23 09:06 xiaoguaishoubaobao

这是我的一个conda环境

conda create --prefix $(pwd)/.conda_env pytorch==1.13.1 pytorch-cuda=11.6 libcusolver-dev -c pytorch -c nvidia

menghuu avatar Jun 11 '23 08:06 menghuu

附一个运行起来的环境供参考,也是瞎折腾出来的。 centos 7.9 python 3.9.16 cuda 11.7 gcc 11.2 bmtrain 0.2.2 torch 1.13.0 scipy 1.9.3

huangbaichao avatar Jun 12 '23 11:06 huangbaichao

mark

wahahaer avatar Jun 13 '23 11:06 wahahaer

请问,如果服务器没有显卡,可以安装吗? 因为torch是支持cpu计算的。不知道BMTrain支持吗

summerghw avatar Aug 17 '23 06:08 summerghw