Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

奖励模型部署问题 #5411

Closed
1 task done
sangzy23 opened this issue Sep 11, 2024 · 0 comments
Closed
1 task done

奖励模型部署问题 #5411

sangzy23 opened this issue Sep 11, 2024 · 0 comments
Labels
solved This problem has been already solved

Comments

@sangzy23
Copy link

Reminder

  • I have read the README and searched the existing issues.

System Info

  • llamafactory version: 0.8.3.dev0
  • Platform: Linux-3.10.0-1160.el7.x86_64-x86_64-with-glibc2.17
  • Python version: 3.11.9
  • PyTorch version: 2.3.0+cu121 (GPU)
  • Transformers version: 4.44.2
  • Datasets version: 2.21.0
  • Accelerate version: 0.33.0
  • PEFT version: 0.12.0
  • TRL version: 0.9.6
  • GPU type: NVIDIA A40
  • DeepSpeed version: 0.15.0
  • vLLM version: 0.4.3

Reproduction

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

@github-actions github-actions bot added the pending This problem is yet to be addressed label Sep 11, 2024
@hiyouga hiyouga added solved This problem has been already solved and removed pending This problem is yet to be addressed labels Sep 11, 2024
tastelikefeet added a commit to tastelikefeet/LLaMA-Factory that referenced this issue Sep 18, 2024
…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
  fix hiyouga#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
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved This problem has been already solved
Projects
None yet
Development

No branches or pull requests

2 participants