Closed tom-doerr closed 9 months ago
Could you try one of the following options?
(True|False)
to specify a selection. https://github.com/sgl-project/sglang/tree/main?tab=readme-ov-file#json-decodingThe difference is documented here https://github.com/sgl-project/sglang?tab=readme-ov-file#tips-and-implementation-details
Oh wow, that's great. Just for documentation, the relevant code is:
meta_info = state.get_meta_info("tool")
print("logprobs of choice 1", meta_info["prompt_logprob"][0])
print("logprobs of choice 2", meta_info["prompt_logprob"][1])
I often need an LLM to generate scalar values. I look at the logprobs of True and False and do True - False. Works very well for me:
Also the values are nicely distributed:
Could you add something like this into sglang?