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

Suport reward model with tp #491

Merged
merged 7 commits into from
Aug 7, 2024
Merged

Conversation

fubaosu
Copy link
Contributor

@fubaosu fubaosu commented Aug 6, 2024

Objective :support reward model.
Made the following changes:

  1. Add "/get_score" request interface in api_server.py.

  2. Add lightllm_get_score(...) function to spport get_score in api_lightllm.py.

  3. Add "use_reward_model" args to depoly reward model in api_server.py.

  4. Add "RewardModelBackend" to spport reward model forward in lightllm/lightllm/server/router/model_infer/mode_backend/continues_batch/impl_for_reward_model.py

  5. Added internlm2_reward model support as an example of reward model.

@shihaobai shihaobai merged commit dcfcd55 into ModelTC:main Aug 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants