-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't load tokenizer for 'gpt2'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'gpt2' is the correct path to a directory containing all relevant files for a GPT2TokenizerFast tokenizer. #1261
Comments
You need to setup a proxy for api and worker in order to get this model up. and run. Add 2 envs |
发现一个问题: |
找到了这一个提交 docker镜像里面是把 gpt2打包进去了,可以直接使用,但不太清楚为什么minimax / 智普AI的嵌入模型还需要依赖到 gp2 |
因为中间计算token的那个用了huggingface的一个模型。 |
这个问题早就没有了 |
请问楼主解决了吗,我使用千帆模型和LangChain的ConversationSummaryBufferMemory时也遇到了一样的问题,在创建一个memory后手动添加内容memory.save_context时报错 @ycoe
|
我遇到的就是有个模型没有下载到本地导致的,手工下载下就解决了 |
我看了下千帆不能用这个”gpt2“,这是openai给纯英文用的分段总结模型,但是langchain似乎没给教程怎么更换这个模型到百度的api上,要在这个llm = QianfanChatEndpoint()代码之前给个指定模型为支持中文总结缩写的模型,并不知道怎么解决 |
Dify version
0.3.23
Cloud or Self Hosted
Self Hosted
Steps to reproduce
✔️ Expected Behavior
期望可以使用数据集中配置的 embedding 进行索引
❌ Actual Behavior
索引任务失败了:
Can't load tokenizer for 'gpt2'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'gpt2' is the correct path to a directory containing all relevant files for a GPT2TokenizerFast tokenizer.
不知道为什么,它使用gpt2了,而我没有配置gpt2
The text was updated successfully, but these errors were encountered: