Coder Social home page Coder Social logo

Comments (13)

steamfeifei avatar steamfeifei commented on September 11, 2024 1

Solved: Configure environment variables at the beginning of the training file: os.environ["WANDB_DISABLED"] = "true"
已解决:
在训练文件开头配置环境变量:
os.environ["WANDB_DISABLED"] = "true"

请问一下 你说的 训练文件 是指的哪个文件?

train_qlora.py 啊

from chatglm-6b-qlora.

steamfeifei avatar steamfeifei commented on September 11, 2024

已解决:
在训练文件开头配置环境变量:
os.environ["WANDB_DISABLED"] = "true"

from chatglm-6b-qlora.

steamfeifei avatar steamfeifei commented on September 11, 2024

解决RuntimeError: Expected all tensors to be on the same device, but found at least two devices
主要是因为配置了多个gpu,代码中数据一会在cpu,一会在gpu运行,最好是放到同一个device中执行即可。
所以解决方案是,只使用一个gpu即可解决:
import os os.environ["CUDA_VISIBLE_DEVICES"] = "0"

refer @Aicharm

from chatglm-6b-qlora.

Mou-Mou-L avatar Mou-Mou-L commented on September 11, 2024

解决RuntimeError: Expected all tensors to be on the same device, but found at least two devices 主要是因为配置了多个gpu,代码中数据一会在cpu,一会在gpu运行,最好是放到同一个device中执行即可。 所以解决方案是,只使用一个gpu即可解决: import os os.environ["CUDA_VISIBLE_DEVICES"] = "0"

refer @Aicharm

大佬也是在docker环境运行的么?我没docker环境 能不能通过其他方式运行

from chatglm-6b-qlora.

steamfeifei avatar steamfeifei commented on September 11, 2024

我也没用docker环境呀,直接在linux后台跑的呢

from chatglm-6b-qlora.

Mou-Mou-L avatar Mou-Mou-L commented on September 11, 2024

我的是windows系统 之前用ptuning 微调 我就是用git bash 运行的脚本 可以微调 现在不行了

from chatglm-6b-qlora.

steamfeifei avatar steamfeifei commented on September 11, 2024

我的是windows系统 之前用ptuning 微调 我就是用git bash 运行的脚本 可以微调 现在不行了

是报了什么错呀

from chatglm-6b-qlora.

steamfeifei avatar steamfeifei commented on September 11, 2024

已经跑了一天了,看看效果如何:
image

from chatglm-6b-qlora.

shuxueslpi avatar shuxueslpi commented on September 11, 2024

@Mou-Mou-L windows可以安装linux子系统的,然后再安装docker desktop,就可以丝滑的用docker了,可以参考docker desktop的安装文档来

from chatglm-6b-qlora.

Mou-Mou-L avatar Mou-Mou-L commented on September 11, 2024

我的是windows系统 之前用ptuning 微调 我就是用git bash 运行的脚本 可以微调 现在不行了

是报了什么错呀

https://github.com/shuxueslpi/chatGLM-6B-QLoRA/issues/12#issuecomment-1614418173这个报错 大佬

from chatglm-6b-qlora.

Mou-Mou-L avatar Mou-Mou-L commented on September 11, 2024

@Mou-Mou-L windows可以安装linux子系统的,然后再安装docker desktop,就可以丝滑的用docker了,可以参考docker desktop的安装文档来

公司的电脑 装不了 打开系统虚拟机 系统就崩了 之前试过 哈哈

from chatglm-6b-qlora.

2512309z avatar 2512309z commented on September 11, 2024

Solved: Configure environment variables at the beginning of the training file: os.environ["WANDB_DISABLED"] = "true"
已解决:
在训练文件开头配置环境变量:
os.environ["WANDB_DISABLED"] = "true"

请问一下 你说的 训练文件 是指的哪个文件?

from chatglm-6b-qlora.

2512309z avatar 2512309z commented on September 11, 2024

Solved: Configure environment variables at the beginning of the training file: os.environ["WANDB_DISABLED"] = "true"
已解决:
在训练文件开头配置环境变量:
os.environ["WANDB_DISABLED"] = "true"

请问一下 你说的 训练文件 是指的哪个文件?

train_qlora.py 啊

非常感谢 ! 搞定了! 也看到你另外一个回答。多显卡的报错的异常,也搞定了!

from chatglm-6b-qlora.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.