Giter Site home page Giter Site logo

Comments (11)

yuanzhoulvpi2017 avatar yuanzhoulvpi2017 commented on June 12, 2024
  1. 是否改了代码?
  2. transformers版本是不是最新的,最好更新到最新的。

from zero_nlp.

SKY-ZW avatar SKY-ZW commented on June 12, 2024

没有修改代码
Name: transformers
Version: 4.30.2

from zero_nlp.

yuanzhoulvpi2017 avatar yuanzhoulvpi2017 commented on June 12, 2024

“The current device_map had weights offloaded to the disk” 这句话值得是设备没有选好,可能是被分配到disk(也就是硬盘上了)。你检查一下

from zero_nlp.

SKY-ZW avatar SKY-ZW commented on June 12, 2024

我用的是COLAB ,是不是需要本地的显卡 ?

from zero_nlp.

yuanzhoulvpi2017 avatar yuanzhoulvpi2017 commented on June 12, 2024

原理上来说,在colab里面也是可以跑的。但是这个报错就很奇怪。

我估计是transformers包、accelerate包、peft包的版本问题,你都更新到最新的版本试一试。

如果再出错,我也就不清楚了

from zero_nlp.

SKY-ZW avatar SKY-ZW commented on June 12, 2024

我在colab里面全部pip install --upgrade 下面几个, 版本如下,但是还是一样的错误,需要指定版本吗?

Name: transformers
Version: 4.30.2
Summary: State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow
Home-page: https://github.com/huggingface/transformers
Author: The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/transformers/graphs/contributors)
Author-email: [[email protected]](mailto:[email protected])
License: Apache 2.0 License
Location: /usr/local/lib/python3.10/dist-packages
Requires: filelock, huggingface-hub, numpy, packaging, pyyaml, regex, requests, safetensors, tokenizers, tqdm
Required-by: peft
---
Name: accelerate
Version: 0.22.0
Summary: Accelerate
Home-page: https://github.com/huggingface/accelerate
Author: The HuggingFace team
Author-email: [[email protected]](mailto:[email protected])
License: Apache
Location: /usr/local/lib/python3.10/dist-packages
Requires: numpy, packaging, psutil, pyyaml, torch
Required-by: peft
---
Name: peft
Version: 0.5.0
Summary: Parameter-Efficient Fine-Tuning (PEFT)
Home-page: https://github.com/huggingface/peft
Author: The HuggingFace team
Author-email: [[email protected]](mailto:[email protected])
License: Apache
Location: /usr/local/lib/python3.10/dist-packages
Requires: accelerate, numpy, packaging, psutil, pyyaml, safetensors, torch, tqdm, transformers
Required-by:

from zero_nlp.

yuanzhoulvpi2017 avatar yuanzhoulvpi2017 commented on June 12, 2024

我也搞不懂了~

from zero_nlp.

SKY-ZW avatar SKY-ZW commented on June 12, 2024

我只是改了一下train.sh里面的--model_name_or_path /content/zero_nlp/chatglm_v2_6b_lora/chatglm2-6b 这个路径,其他都没动过

from zero_nlp.

yuanzhoulvpi2017 avatar yuanzhoulvpi2017 commented on June 12, 2024

这个不影响的,不清楚了

from zero_nlp.

SKY-ZW avatar SKY-ZW commented on June 12, 2024

我在133行加了offload_folder = "offload_folder" 以后就不报上面错了 ,但是又出现另外一个问题: Loading checkpoint shards: 71% 5/7 [01:03<00:23, 11.53s/it]train.sh: line 24: 5399 Killed

from zero_nlp.

SKY-ZW avatar SKY-ZW commented on June 12, 2024

感觉是内存用多了 被COLAB给KILL了

from zero_nlp.

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.