opencompass
opencompass copied to clipboard
[Bug] Deepseek 升级deepseek-v3.1-terminus后,为何调用ksyun的DS API失败
Prerequisite
- [x] I have searched Issues and Discussions but cannot get the expected help.
- [x] The bug has not been fixed in the latest version.
Type
I'm evaluating with the officially supported tasks/models/datasets.
Environment
pip list |grep opencompass
opencompass 0.5.0 /root/opencompass
Reproduces the problem - code/configuration sample
python run.py --models deepseek_remote_api.py --datasets ceval_gen --debug
上周可以执行成功,本周无法执行,如果使用ksyun的demo 可以执行
Reproduces the problem - command or script
from opencompass.models import OpenAISDK
api_meta_template = dict( round=[ dict(role='HUMAN', api_role='HUMAN'), dict(role='BOT', api_role='BOT', generate=True), ], reserved_roles=[dict(role='SYSTEM', api_role='SYSTEM')], )
models = [ dict( abbr='deepseek-v3.1', type= OpenAISDK, key='1ea7b735-6fc9-49ee-a10f-###########', # API key openai_api_base='https://kspmas.ksyun.com/v1/', # 服务IP path='deepseek-v3.1', #请求服务时的 model name meta_template=api_meta_template, # 服务请求模板 query_per_second=10, # 服务请求速率 max_out_len=1024, # 最大输出长度 max_seq_len=4096, # 最大输入长度 temperature=0.01, # 生成温度 batch_size=8, # 批处理大小 retry=3, # 重试次数 ) ]
Reproduces the problem - error message
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 24/24 [00:00<00:00, 762600.73it/s]
[2025-09-23 16:13:29,640] [opencompass.openicl.icl_inferencer.icl_gen_inferencer] [INFO] Starting build dataloader
[2025-09-23 16:13:29,641] [opencompass.openicl.icl_inferencer.icl_gen_inferencer] [INFO] Starting inference process...
0%| | 0/3 [00:00<?, ?it/s]09/23 16:13:39 - OpenCompass - ERROR - /root/opencompass/opencompass/models/openai_api.py - _generate - 789 - error occurs at https://kspmas.ksyun.com/v1/?, ?it/s]
09/23 16:13:39 - OpenCompass - ERROR - /root/opencompass/opencompass/models/openai_api.py - _generate - 790 - 'NoneType' object is not subscriptable
09/23 16:13:39 - OpenCompass - ERROR - /root/opencompass/opencompass/models/openai_api.py - _generate - 789 - error occurs at https://kspmas.ksyun.com/v1/
09/23 16:13:39 - OpenCompass - ERROR - /root/opencompass/opencompass/models/openai_api.py - _generate - 790 - 'NoneType' object is not subscriptable
09/23 16:13:39 - OpenCompass - ERROR - /root/opencompass/opencompass/models/openai_api.py - _generate - 789 - error occurs at https://kspmas.ksyun.com/v1/
09/23 16:13:39 - OpenCompass - ERROR - /root/opencompass/opencompass/models/openai_api.py - _generate - 790 - 'NoneType' object is not subscriptable
09/23 16:13:39 - OpenCompass - ERROR - /root/opencompass/opencompass/models/openai_api.py - _generate - 789 - error occurs at https://kspmas.ksyun.com/v1/
09/23 16:13:39 - OpenCompass - ERROR - /root/opencompass/opencompass/models/openai_api.py - _generate - 790 - 'NoneType' object is not subscriptable
09/23 16:13:40 - OpenCompass - ERROR - /root/opencompass/opencompass/models/openai_api.py - _generate - 789 - error occurs at https://kspmas.ksyun.com/v1/
09/23 16:13:40 - OpenCompass - ERROR - /root/opencompass/opencompass/models/openai_api.py - _generate - 790 - 'NoneType' object is not subscriptable
Inferencing: 0%| | 0/8 [00:10<?, ?it/s]
09/23 16:13:42 - OpenCompass - ERROR - /root/opencompass/opencompass/models/openai_api.py - _generate - 789 - error occurs at https://kspmas.ksyun.com/v1/
09/23 16:13:42 - OpenCompass - ERROR - /root/opencompass/opencompass/models/openai_api.py - _generate - 790 - 'NoneType' object is not subscriptable
0%| | 0/3 [00:12<?, ?it/s]
Traceback (most recent call last):
File "/root/opencompass/run.py", line 4, in
Other information
python run.py --models deepseek_remote_api.py --datasets ceval_gen --debug