Skip to content

[Feature]: support messages input for classify api skywork-reward model #24650

@Snowdar

Description

@Snowdar

🚀 The feature, motivation and pitch

In the current inference of reward models, classification models are often used, such as the skywork reward model. There is an issue where the concepts and actual functions of several existing interfaces do not correspond:

  1. The reward interface does not return the score of the BT model (pooling method and softmax also need to be considered).
  2. The classification model is restricted to using only the classify interface, but this interface does not support message input.
  3. If classify can only use list[str], there seems to be no apply_chat_template interface (it is not desirable to place too many elements on the client side).

Thanks.

Alternatives

No response

Additional context

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions