Skip to content

[Usage]: How to get the logits from classification models. #18386

@kxzxvbk

Description

@kxzxvbk

Your current environment

pip install vllm

How would you like to use vllm

Hi! When I use vllm for classification, I find that the returned output is something like: ClassificationOutput(num_classes=5), which only contains the probabilities.
Now, I want to directly get the logits (i.e. vectors before softmax).
I think it sounds easy, but I cannot find a good way. Anyone can help me?

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

    usageHow to use vllm

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions