使用配置文件时,如何正确设置推理参数? #1891
Unanswered
qing-yuan233
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我按照opencompass/opencompass/configs/models/qwen2_5/lmdeploy_qwen2_5_1_5b.py 中的示例,设置gen_config参数
报错:
我将参数名替换为:
可以解决此报错,但是似乎并没有生效,因为我设置了 repetition_penalty=1.1,在自己使用model.generate方法推理时,不会循环重复输出;而在opencompass的评估结果中多个case循环输出直到达到max token。请问如何正确设置生成参数?
Beta Was this translation helpful? Give feedback.
All reactions