Another derivation for "Obtaining logprobs from an LLM API"
OpenAI has modified their API to return the log probabilities before any logit bias is applied. Hence the methods described in this article are no longer applicable. The aim of this article is to provide an alternative derivation of the results in Mattew Finlayson’s article Obtaining logprobs from an LLM API. Most LLM APIs return the logprobs of only the top-$ k $ predictions. The value of $ k $ is often small, in the order of 10....