llama_cpp_for_radxa_dragon_.../common
Berk Idem d7ff074c87
common : enable reasoning budget sampler for gemma4 (#21697)
* fix: enable reasoning budget sampler for gemma4

Add thinking_start_tag and thinking_end_tag to
common_chat_params_init_gemma4(). Without these, the reasoning
budget sampler never activates for gemma4.

Make the newline after "thought" optional in the PEG parser to
handle budget=0 (sampler forces end tag before the newline).

Add test case for empty thinking block.

Fixes #21487

* use p.space() instead of p.optional(p.literal("\n")) in gemma4 thought parser
2026-04-10 11:49:14 +02:00
..
jinja jinja : support ensure_ascii=true, string repetition and int/float self-filtering (#21623) 2026-04-09 11:28:33 +02:00
arg.cpp ggml: backend-agnostic tensor parallelism (experimental) (#19378) 2026-04-09 16:42:19 +02:00
arg.h
base64.hpp
build-info.cpp.in
chat-auto-parser-generator.cpp common : simplify autoparser tagged parser rules (#21216) 2026-04-09 12:24:20 +02:00
chat-auto-parser-helpers.cpp
chat-auto-parser-helpers.h chat : avoid including json in chat.h (#21306) 2026-04-03 09:07:59 +03:00
chat-auto-parser.h common : add gemma 4 specialized parser (#21418) 2026-04-04 20:39:00 +02:00
chat-diff-analyzer.cpp common : add gemma 4 specialized parser (#21418) 2026-04-04 20:39:00 +02:00
chat-peg-parser.cpp common : add gemma 4 specialized parser (#21418) 2026-04-04 20:39:00 +02:00
chat-peg-parser.h common : add gemma 4 specialized parser (#21418) 2026-04-04 20:39:00 +02:00
chat.cpp common : enable reasoning budget sampler for gemma4 (#21697) 2026-04-10 11:49:14 +02:00
chat.h common : add gemma 4 specialized parser (#21418) 2026-04-04 20:39:00 +02:00
CMakeLists.txt
common.cpp tests: allow exporting graph ops from HF file without downloading weights (#21182) 2026-04-02 18:19:20 +02:00
common.h server: save and clear idle slots on new task (--clear-idle) (#20993) 2026-04-03 19:02:27 +02:00
console.cpp cli: fix stripping of \n in multiline input (#21485) 2026-04-06 20:54:06 +02:00
console.h
debug.cpp
debug.h
download.cpp common : add fluidity to the progress bar (#21671) 2026-04-10 08:24:53 +02:00
download.h
hf-cache.cpp
hf-cache.h
http.h
json-partial.cpp
json-partial.h
json-schema-to-grammar.cpp
json-schema-to-grammar.h
llguidance.cpp
log.cpp
log.h
ngram-cache.cpp
ngram-cache.h
ngram-map.cpp
ngram-map.h
ngram-mod.cpp
ngram-mod.h
peg-parser.cpp common : add gemma 4 specialized parser (#21418) 2026-04-04 20:39:00 +02:00
peg-parser.h common : add gemma 4 specialized parser (#21418) 2026-04-04 20:39:00 +02:00
preset.cpp
preset.h
reasoning-budget.cpp
reasoning-budget.h
regex-partial.cpp
regex-partial.h
sampling.cpp
sampling.h
speculative.cpp
speculative.h
unicode.cpp
unicode.h