Code Monkey home page Code Monkey logo

Comments (9)

zRzRzRzRzRzRzR avatar zRzRzRzRzRzRzR commented on June 24, 2024 1

降级版本,降级到 huggingface-hub==0.19.4 transformers 降级到4.40以下,最新的代码还有这个依赖问题吗

from chatglm3.

newlxj avatar newlxj commented on June 24, 2024

pip install "huggingface_hub<0.22.0"
pip install chardet

from chatglm3.

zRzRzRzRzRzRzR avatar zRzRzRzRzRzRzR commented on June 24, 2024

用2.22.0之前,之后的代码会更新

from chatglm3.

withflyingfree avatar withflyingfree commented on June 24, 2024

我也遇到了

from chatglm3.

dp9212 avatar dp9212 commented on June 24, 2024

安装huggingface_hub错误信息:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
transformers 4.41.0 requires huggingface-hub<1.0,>=0.23.0, but you have huggingface-hub 0.19.4 which is incompatible.
Successfully installed huggingface_hub-0.19.4

模型启动报错:
ImportError: huggingface-hub>=0.23.0,<1.0 is required for a normal functioning of this module, but found huggingface-hub==0.19.4. Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main

请问这个问题怎么解决呢?
@zRzRzRzRzRzRzR

from chatglm3.

Arondight avatar Arondight commented on June 24, 2024

降级版本,降级到 huggingface-hub==0.19.4 transformers 降级到4.40以下,最新的代码还有这个依赖问题吗

composite_demo 还是这样,别的没试

from chatglm3.

dp9212 avatar dp9212 commented on June 24, 2024

降级版本,降级到 huggingface-hub==0.19.4 transformers 降级到4.40以下,最新的代码还有这个依赖问题吗

ChatGLM3是从github拉取的最新代码,chatglm3-6b是从modelscope拉取的,basic_demo没有问题,openai_api_demo没有问题,composite_demo还是有上述问题,其他demo没有尝试。

最新代码的requirements.txt里面要求了transformers>=4.41.0,晚上我尝试下降级transformers。

感谢回复。
ChatGLM3是从github拉取的最新代码,chatglm3-6b是从modelscope拉取的,basic_demo没有问题,openai_api_demo没有问题,composite_demo还是有上述问题,其他demo没有尝试。

最新代码的requirements.txt里面要求了transformers>=4.41.0,晚上我尝试下降级transformers。

@zRzRzRzRzRzRzR 感谢回复。

from chatglm3.

zRzRzRzRzRzRzR avatar zRzRzRzRzRzRzR commented on June 24, 2024

已经改了依赖,降级一下依赖吧

from chatglm3.

dfdr557 avatar dfdr557 commented on June 24, 2024

transformers==4.40.0
huggingface-hub==0.20.2
这个也能跑起来composite_demo

from chatglm3.

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.