News for hackers. Stuff that matters.
Re:DeepSeek-v3.1 Release by refulgentis on Thursday August 21, 2025 @08:33PM (#44979848)
I maintain a cross-platform llama.cpp client - you're right to point out that generally we expect nuking logits can take care of it.

There is a substantial performance cost to nuking, the open source internals discussion may have glossed over that for clarity (see github.com/llama.cpp/... below). The cost is very high, default in API* is not artificially lower other logits, and only do that if the first inference attempt yields a token invalid in the compiled grammar.

Similarly, I was hoping to be on target w/r/t to what strict mode is in an API, and am sort of describing the "outer loop" of sampling

* blissfully, you do not have to implement it manually anymore - it is a parameter in the sampling params member of the inference params

* "the grammar constraints applied on the full vocabulary can be very taxing. To improve performance, the grammar can be applied only to the sampled token..and nd only if the token doesn't fit the grammar, the grammar constraints are applied to the full vocabulary and the token is resampled." https://github.com/ggml-org/llama.cpp/blob/54a241f505d515d62...

Re:DeepSeek-v3.1 Release by dragonwriter on Thursday August 21, 2025 @11:45PM (#44980832)
Thanks for the explanation!
Re:DeepSeek-v3.1 Release by 7thpower on Friday August 22, 2025 @08:27AM (#44983711)
This is a basic question but maybe you can help: what is a good resource to use to understand how to take advantage of logits?
Re:DeepSeek-v3.1 Release by ivape on Friday August 22, 2025 @12:12PM (#44986335)
Re:DeepSeek-v3.1 Release by 7thpower on Saturday August 23, 2025 @01:03PM (#44997321)
Thank you!