ChatGLM-6B
ChatGLM-6B copied to clipboard
RuntimeError: Internal: src/sentencepiece_processor.cc(1101) [model_proto->ParseFromArray(serialized.data(), serialized.size())]
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
运行python cli_demo.py报错
root@4uot40mdrplpv-0:/yx/ChatGLM-6B# python mycli_demo.py
Explicitly passing a revision
is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision.
Traceback (most recent call last):
File "/yx/ChatGLM-6B/mycli_demo.py", line 6, in
我是在docker中运行的, 麻烦看看是怎么回事, 谢谢
Expected Behavior
No response
Steps To Reproduce
help
Environment
- OS:Red Hat 4.8.5-44
- Python:3.11
- Transformers:4.27.1
- PyTorch:2.0
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :False
Anything else?
No response
ice_text.model
文件下载不正确,可以跟 https://huggingface.co/THUDM/chatglm-6b/blob/main/ice_text.model 对比一下
我并没有在docker中运行,但是我也遇到了这个问题。我对比了 https://huggingface.co/THUDM/chatglm-6b/blob/main/ice_text.model 中的文件,我们是一致的
我也遇到同样的问题,模型下载的是HuggingFace的Main分支下,源码下载的也是Main分支,启动web_demo2.py时,出现“RuntimeError: Internal: src/sentencepiece_processor.cc(1101) [model_proto->ParseFromArray(serialized.data(), serialized.size())]”
我也是在微调代码的时候,运行train.sh文件遇到RuntimeError: Internal: src/sentencepiece_processor.cc(1101) [model_proto->ParseFromArray(serialized.data(), serialized.size())]这个错误,请问是怎么回事?
ice_text.model
文件下载不正确,可以跟 https://huggingface.co/THUDM/chatglm-6b/blob/main/ice_text.model 对比一下
我发现从这个路径下载下来的ice_text.model 的sha256 与huggingface上注明的sha256不一致。是不是后期上传的时候文件上传错误了
前面下载的 sha256 不一致的原因是:没有使用 git-lfs
# Make sure you have git-lfs installed (https://git-lfs.com)
git lfs install
git clone https://huggingface.co/THUDM/chatglm-6b
我是用git lfs下载的模型文件目录,然后在清华云盘上下载的模型文件,导致ice_text.model不一致; 用清华云盘上的ice_text.model替换之后就好了
我是用git lfs下载的模型文件目录,然后在清华云盘上下载的模型文件,导致ice_text.model不一致; 用清华云盘上的ice_text.model替换之后就好了
为什么git lfs 下载的,ice_text.model 会不一样,网络原因?没有下载完全吗
模型没真正克隆下来,怎么解决?
就是克隆下来那个bin文件只有100多k
我是用git lfs下载的模型文件目录,然后在清华云盘上下载的模型文件,导致ice_text.model不一致; 用清华云盘上的ice_text.model替换之后就好了
替换之后还是不行,有idea是怎么回事吗