You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
具体错误为
File "/LLaMA-Factory/src/llamafactory/api/chat.py", line 237, in create_score_evaluation_response
return ScoreEvaluationResponse(id='test',model=request.model, scores=scores)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/anaconda/envs/llamafcvllm/lib/python3.11/site-packages/pydantic/main.py", line 193, in init
self.pydantic_validator.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for ScoreEvaluationResponse
id
Field required [type=missing, input_value={'model': '/ssd11/other/s...[0.87109375, 0.8828125]}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.8/v/missing
…h_to_ms
* commit '1a3e6545b2e1d2dab01d2a257130a47da62e747a': (66 commits)
Add qwen_vl to liger kernel supported list
update wechat
update the ROCm version to 6.2
update ci
set dev version
remove windows in ci
fix ci
fixhiyouga#5411
update accelerate ver for schedule_free optimizers
fix mm plugin
fix qwen2vl preprocess
release v0.9.0 (real)
fix constants
release v0.9.0
tiny fix
update wechat
update scripts
support vllm 0.6.0
fix test case
add test case
...
Reminder
System Info
llamafactory
version: 0.8.3.dev0Reproduction
API_PORT=6623 llamafactory-cli api --model_name_or_path: xxxxx --template: intern2 --stage: rm
服务正常启动后运行
curl http://xxxx:6623/v1/score/evaluation
-H "Content-Type: application/json"
-d '{
"model": xxxx,
"messages": ["xxxxx"]
}'
后返回报错
Internal Server Error
具体错误为
File "/LLaMA-Factory/src/llamafactory/api/chat.py", line 237, in create_score_evaluation_response
return ScoreEvaluationResponse(id='test',model=request.model, scores=scores)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/anaconda/envs/llamafcvllm/lib/python3.11/site-packages/pydantic/main.py", line 193, in init
self.pydantic_validator.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for ScoreEvaluationResponse
id
Field required [type=missing, input_value={'model': '/ssd11/other/s...[0.87109375, 0.8828125]}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.8/v/missing
src/llamafactory/api/chat.py中
ScoreEvaluationResponse缺少id字段?
Expected behavior
No response
Others
No response
The text was updated successfully, but these errors were encountered: