Giter Site home page Giter Site logo

Comments (8)

jubgjf avatar jubgjf commented on July 17, 2024

可以参考这里:https://stackoverflow.com/questions/78211526/pytorch-attributeerror-torch-dtype-object-has-no-attribute-itemsize 检查一下torch版本

from chinese-mixtral-8x7b.

lwj2001 avatar lwj2001 commented on July 17, 2024

还是没能解决,torch版本就是您推荐的2.0.1 + cu117,我是直接通过以下命令安装的torch:
pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu117
其他的环境依赖和您的一致

from chinese-mixtral-8x7b.

jubgjf avatar jubgjf commented on July 17, 2024

试试不加--index-url呢,我安装的时候没加

from chinese-mixtral-8x7b.

lwj2001 avatar lwj2001 commented on July 17, 2024

很抱歉,还是相同的错误
我的安装环境脚本如下:
pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2
pip install transformers==4.36.2 datasets evaluate peft accelerate gradio optimum sentencepiece trl
pip install jupyterlab scikit-learn pandas matplotlib tensorboard nltk rouge bitsandbytes fire
pip3 install deepspeed
pip install flash-attn --no-build-isolation
因为环境中cuda11.7的toolkit,并且.bashrc文件已经明确指向了cuda11.7
您可以复现一下吗

from chinese-mixtral-8x7b.

jubgjf avatar jubgjf commented on July 17, 2024

要不试试升级torch版本吧,我们的代码对torch的版本要求没那么严格

from chinese-mixtral-8x7b.

dkasa avatar dkasa commented on July 17, 2024

问题解决了吗? 能提供下 requirements.txt 吗?或者你们在哪里查到的?

from chinese-mixtral-8x7b.

lwj2001 avatar lwj2001 commented on July 17, 2024

是的,问题已经解决了。
requirements.txt

from chinese-mixtral-8x7b.

dkasa avatar dkasa commented on July 17, 2024

收到,感谢,我来对比下。

from chinese-mixtral-8x7b.

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.