Comments (12)
cuda确定环境ok吗?import torch怎么就报错了?
from chatglm-6b-qlora.
cuda确定环境ok吗?import torch怎么就报错了?
conda创建一个虚拟环境,然后进入克隆的你这个项目的仓库里pip install -r requirements.txt,然后再去运行训练代码就报了这个错,我其他两个虚拟环境的pytorch都没问题
from chatglm-6b-qlora.
你创建环境后,单独装一次pytorch,然后再装requirements里的依赖试试,你这个就是基础环境的问题,我还是建议用docker
from chatglm-6b-qlora.
自己的台式机啊,怎么用docker?你那个requirements.txt应该把torch也放进去吧?
from chatglm-6b-qlora.
windows的台式机也可以装docker
默认你是有完整的torch-gpu环境的,这部分环境的搭建可能每个人都有细微差异,否则也运行不了transformers
最统一的方式就是从docker开始,屏蔽了很多基础环境问题
from chatglm-6b-qlora.
https://pytorch.org/get-started/locally/#start-locally
看下这里windows的安装命令
from chatglm-6b-qlora.
https://pytorch.org/get-started/locally/#start-locally 看下这里windows的安装命令
安装我肯定会啊,我的意思是最好requirements.txt文件里把该包含的库都包含了,一键启动,开箱即用多方便
from chatglm-6b-qlora.
但torch的安装命令不是唯一的,所以我提供的开箱即用的环境是docker环境,即使是transformers官方也没有直接一键即用,也要先安装好torch,tensorflow或jax
from chatglm-6b-qlora.
我台式机装的ubuntu系统,昨晚我直接安装requirements.txt后用pip list查看时有torch的,好的,我回去试试,先安装torch,再pip install -r requirements.txt
from chatglm-6b-qlora.
我也是台式机ubuntu,装的docker,更建议你用docker
from chatglm-6b-qlora.
好的
from chatglm-6b-qlora.
我也是台式机ubuntu,装的docker,更建议你用docker
环境没问题了,但是一加载模型,就被killed,3060的显存,还是没法直接加载ChatGLM-6B
from chatglm-6b-qlora.
Related Issues (20)
- 不能训练被加载的8bit模型 HOT 2
- 数据集格式instruction,input,output时tokenized出错 HOT 2
- 训练结束后,数据展示出现问题
- merge后模型Loading checkpoint shards Killed HOT 6
- 调优后的模型是否可以在CPU服务上部署? HOT 1
- protobuf 和 icetk 版本不兼容 HOT 1
- RuntimeError: mat1 and mat2 shapes cannot be multiplied (588x4096 and 1x9437184) ,ChatGLM2-6B做微调,请问如何设置参数?? HOT 1
- RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:1 and cuda:0! (when checking argument for argument target in method wrapper_CUDA_nll_loss_forward),请问如何调整训练代码,适配多卡训练?? HOT 1
- transformers>4.30.2时,模型不会进行量化,是因为什么?
- BrokenPipeError: [Errno 32] Broken pipe HOT 7
- 训练结束后没有保存完整的adapter文件 HOT 2
- 用V100显卡微调chatglm2-6b,但是loss一直为0,eval_loss=nan
- 训练显存有些问题
- 微调后推理性能问题 HOT 1
- ChatGLM3-6B 微调报错 RuntimeError: CUDA error: invalid argument HOT 1
- ChatGLM2-6B微调后合并报错We need an `offload_dir` to dispatch this model according to this `device_map`, the following submodules need to be offloaded: HOT 2
- 合并模型的时候显存不够,用的4090,24G
- qlora微调训练随机性
- ValueError:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatglm-6b-qlora.