Comments (9)
降级版本,降级到 huggingface-hub==0.19.4 transformers 降级到4.40以下,最新的代码还有这个依赖问题吗
from chatglm3.
pip install "huggingface_hub<0.22.0"
pip install chardet
from chatglm3.
用2.22.0之前,之后的代码会更新
from chatglm3.
我也遇到了
from chatglm3.
安装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.
降级版本,降级到 huggingface-hub==0.19.4 transformers 降级到4.40以下,最新的代码还有这个依赖问题吗
composite_demo 还是这样,别的没试
from chatglm3.
降级版本,降级到 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.
已经改了依赖,降级一下依赖吧
from chatglm3.
transformers==4.40.0
huggingface-hub==0.20.2
这个也能跑起来composite_demo
from chatglm3.
Related Issues (20)
- RMSNorm的不同实现方式
- LORA 微调报错 HOT 1
- bug when running inference_hf.py after finetuning with lora.
- api模式下是不能实现工具调用吗? HOT 1
- 执行了composition_demo,发现仅仅用了一个cpu去执行推理。速度非常慢。这个是什么原因导致的? HOT 1
- 运行basic_demo下的web_demo_gradio.py程序报错ModuleNotFoundError: No module named 'peft' HOT 3
- langchain_demo中的那个是不是不是流式处理?
- ChatGLMForConditionalGeneration forward position_ids 参数哪里传入的?
- 从 chat 接口内部调用 generate 接口的处理逻辑看,使用上述拼接方式生成的 input_ids 不符合你们对于特殊符(如<|user|>、<|assistant|>)的 id 定义,这部分是否只是为了兼容通用的 generate 接口?且存在对模型性能的损失? HOT 3
- 使用chatglm.cpp调用chatglm3-6b-32k时,非常容易触发无限循环的问题,repetition_penalty设置为2依然没有效果 HOT 1
- openai_api_request.py运行不成功 HOT 1
- Getting requirements to build wheel did not run successfully. HOT 1
- ChatGLM3-6b微调之后再运行就会出错 HOT 1
- 但是这样做代码会自动复原,加入的代码就被冲刷掉了> 请问你解决了吗?
- 使用finetune_demo/finetune_hf.py的lora微调之后,用finetune_demo/inference_hf.py做推理了的时候加载权重后无反应 HOT 3
- 用这里的ChatGLM3 + 魔搭社区的ChatGLM3-6B的模型在阿里云微调官方示例,但Running Evaluation时出错,请求指导。 HOT 6
- 运行 api_server.py , 请求返回异常 HOT 2
- 数据读取时的问题
- inconsistent `tool_def` in examples
- 微调中途报错BatchEncoding.to() got an unexpected keyword argument 'non_blocking' HOT 2
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 chatglm3.