]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
common : add support for multiple end sequences in the reasoning budget sampler ...
authorAldehir Rojas <redacted>
Sat, 25 Jul 2026 09:58:09 +0000 (04:58 -0500)
committerGitHub <redacted>
Sat, 25 Jul 2026 09:58:09 +0000 (11:58 +0200)
commit910196f6b3dfc6aca88fa732e2b02f270ff9b56b
tree8aa816c831d1b6c0c9e940eb756b45af9e386a1d
parentd67c0b4107112e4790774c3a8169e2e3eb24643b
common : add support for multiple end sequences in the reasoning budget sampler (#25544)

* common : extract trie/ac to a separate file

* common : support multiple token sequences in the reasoning budget sampler

* common/trie : return matched word index

* common/trie : rename "word" to "pattern"

* common/reasoning-budget : expose matched end sequence

* common/sampling : replay end sequence when reasoning budget is done

* cont : update to use multiple end sequences

* cont : clean up
14 files changed:
common/CMakeLists.txt
common/chat.cpp
common/chat.h
common/common.h
common/peg-parser.cpp
common/reasoning-budget.cpp
common/reasoning-budget.h
common/sampling.cpp
common/trie.cpp [new file with mode: 0644]
common/trie.h [new file with mode: 0644]
tests/test-chat.cpp
tests/test-reasoning-budget.cpp
tools/server/server-common.cpp
tools/server/server-schema.cpp