VILA icon indicating copy to clipboard operation
VILA copied to clipboard

Accessing Confidence Scores or Perplexity in VILA's Text Generation

Open LebinLiang opened this issue 8 months ago • 1 comments

I am currently applying VILA in my project, and I would like to obtain the confidence scores or perplexity corresponding to each generated text sequence. I would like to ask whether there is an existing API in the VILA codebase that provides such information, or if it is possible to modify the code to output the confidence score for each response?

LebinLiang avatar Apr 07 '25 13:04 LebinLiang

@hills-code have the experience to add logprob to output. See https://huggingface.co/Efficient-Large-Model/NVILA-Lite-2B-Verifier for details

Lyken17 avatar Apr 07 '25 14:04 Lyken17