Comments (4)
我也遇到同样的情况,请问,你解决了么?
运行平台是:macbookpro m1pro
from med-chatglm.
我也遇到了同样的问题
from med-chatglm.
我也遇到了同样的问题 大家都解决了嘛
from med-chatglm.
home/remotesense/anaconda3/envs/bencao/lib/python3.9/site-packages/transformers/generation/utils.py:1201: UserWarning: You have modified the pretrained model configuration to control generation. This is a deprecated strategy to control generation and will be removed soon, in a future version. Please use a generation configuration file (see https://huggingface.co/docs/transformers/main_classes/text_generation) warnings.warn( Traceback (most recent call last): File "/media/remotesense/c076bdaf-88b9-4573-88f1-b4bdb3af3183/jack/chatglm-med/Med-ChatGLM-main/infer.py", line 12, in response, history = model.chat(tokenizer, "问题:" + a.strip() + '\n答案:', max_length=256, history=[]) File "/home/remotesense/anaconda3/envs/bencao/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "/media/remotesense/c076bdaf-88b9-4573-88f1-b4bdb3af3183/jack/chatglm-med/Med-ChatGLM-main/modeling_chatglm.py", line 1114, in chat outputs = self.generate(**input_ids, **gen_kwargs) File "/home/remotesense/anaconda3/envs/bencao/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "/home/remotesense/anaconda3/envs/bencao/lib/python3.9/site-packages/transformers/generation/utils.py", line 1452, in generate return self.sample( File "/home/remotesense/anaconda3/envs/bencao/lib/python3.9/site-packages/transformers/generation/utils.py", line 2465, in sample model_inputs = self.prepare_inputs_for_generation(input_ids, **model_kwargs) File "/media/remotesense/c076bdaf-88b9-4573-88f1-b4bdb3af3183/jack/chatglm-med/Med-ChatGLM-main/modeling_chatglm.py", line 979, in prepare_inputs_for_generation mask_position = seq.index(mask_token) ValueError: 130001 is not in list
看项目的READER.md,里面常见问题
有关于这个的介绍说明
Q: 报错 ValueError: 130001 is not in list / ValueError: 150001 is not in list
A: 由于相关依赖更新较快,版本的不同会导致一些bug
(1) 如果报错为150001 is not in list,请将仓库更新至最新版本
(2) 如果报错为130001 is not in list,请将仓库回退至commit为cb9d827的版本,链接为https://github.com/SCIR-HI/Med-ChatGLM/tree/cb9d82738021ec6f82b307d6031e8595a49dcb00
from med-chatglm.
Related Issues (20)
- modeling_chatglm.py里的quantize能用么?在run_clm.py里添加model.quantize(4)为什么报ImportError: attempted relative import with no known parent package错误
- 项目如何改成cpu微调的,可不可以把用内存,不用显存 HOT 1
- 6G显存问题和模型参数本地目录指向问题 HOT 1
- 把chatglm-6b-med模型放到官方chatglm-6b中训练报错 HOT 1
- ”医学知识库和数据集构建代码还在整理中,整理完成将会发布。“ HOT 3
- 报错150004 is not in list,请问如何进一步修改?谢谢 HOT 3
- 显示不出答案
- 请问如何将知识图谱批量地转为问答对
- Out of memory. 48G is not enough, either. What happend? HOT 1
- 问题
- 是否支持使用多机多卡进行微调?
- chatGLM2微调问题 HOT 1
- 希望取得联系
- RuntimeError: "LayerNormKernelImpl" not implemented for 'Half' HOT 1
- 批量喂数据给模型
- 是否有定义评价指标
- 运行infer,py出现问题 HOT 1
- 使用RTX 4090D(24GB)运行微调,出现错误,提示超出内存,这该如何解决 HOT 1
- 运行Python infer.py 报错 value 130001 not in list ,切换版本后,运行微调报错 value 150001 not in list 这该如何解决 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 med-chatglm.