Comments (5)
并没有复现这个报错,我看 Hugging Face 上 codegeex2-6b 的 tokenization_chatglm.py#L73,是有 self.tokenizer
这个成员的,可以检查一下你本地的 /home/l8ng/.cache/huggingface/modules/transformers_modules/codegeex2-6b/tokenization_chatglm.py
跟官方的代码是否有区别?
from chatglm.cpp.
刚刚发现chatglm3在5天前更新了tokenization_chatglm.py,替换掉原来下载的这个文件可以兼容高版本的transformers了。
from chatglm.cpp.
并没有复现这个报错,我看 Hugging Face 上 codegeex2-6b 的 tokenization_chatglm.py#L73,是有
self.tokenizer
这个成员的,可以检查一下你本地的/home/l8ng/.cache/huggingface/modules/transformers_modules/codegeex2-6b/tokenization_chatglm.py
跟官方的代码是否有区别?
嗯嗯 对比文件是一样的代码, 然后尝试降级下 transformers==4.33.3 (4.35.x, 4.34.x都不行) 后可以转换了... 问题应该不是这个, 可能是上游改了什么东西没来的及适配? 你看下你环境的版本是不是低于 4.34.x, 或许在README下标注下会好一些~
ref: chatchat-space/Langchain-Chatchat#1835 (comment)
不管怎样, 这个问题暂时解决了, 谢谢作者回复哈~
from chatglm.cpp.
vllm 0.2.2解决了vllm-project/vllm#1713 这个问题
但是vllm-0.2.2要求transformers版本高于4.34.0 而像 @StrayDragon 所提transformers版本高于4.33.3就不可以了
感觉如果想要复现这个错误只需要把transformers升到最高版本(比如4.36.0
现在如果想用vllm加速推理chatglm2的话感觉还是得自己根据文档改一下,不知道是否后续有解决方案吗
from chatglm.cpp.
刚刚发现chatglm3在5天前更新了tokenization_chatglm.py,替换掉原来下载的这个文件可以兼容高版本的transformers了。
cool, 感谢提醒, 我回去试试~
from chatglm.cpp.
Related Issues (20)
- openai_api 返回为空 HOT 1
- 能否在开启openai api时候提供一个public link? HOT 1
- Run the following command to report an error python3 chatglm3_demo.py -m ../chatglm3-ggml.bin -p 你好 --temp 0.8 --top_p 0.8
- zsh: illegal hardware instruction HOT 1
- 请问下这个报错是什么原因造成的? HOT 1
- 【feature request】关于Tool/func调用,有没有方式支持多次自动调用(更长的思维链)
- 请教下,我在iOS上执行推理代码,主线程没问题,但是我开一条子线程来执行推理代码,就会Crash,难道ChatMessage Pipeline::chat不支持在子线程运行吗?
- 预计什么时候支持GLM4? HOT 5
- 什么时候能支持internLM2 HOT 2
- 这个框架是否可以用于高并发的生产环境? HOT 1
- [Feature]能否添加 --multiline-input 参数,多行输入文字。
- 什么时候能够提供fine-tuning的接口? HOT 1
- CMake Error: The source directory "/root/build" does not exist.
- macos m2 芯片最后一步出现Illegal instruction: 4 HOT 1
- 我想启动web端提醒这个报错,你们遇到过吗,麻烦给指点一下 HOT 3
- 运行chatglm3-6b-ggml int4量化模型,采用clblast加速反而比cpu加速慢很多,正常吗? HOT 1
- streamlit run chatglm3_demo.py 执行后报错,No module named 'chatglm_cpp._C' ,是什么原因呢? HOT 3
- CMake 编译时出现错误 HOT 1
- 支持minicpm-2b HOT 1
- 多卡推理
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 chatglm.cpp.