github ggml-org/llama.cpp b9833

one hour ago
Details

chat : implement minicpm5 parser (#24889)

  • Add minicpm5 tool call parser

  • Refactor MiniCPM5 PEG parser per review feedback

  • Fix jinja min/max API to match Jinja2

  • modify by review

  • MiniCPM5: use autoparser for XML tool calls and fix grammar preserved-token triggers

  • MiniCPM5: fix streaming tool-arg placeholder and remove alt XML markers

  • skip min/max attribute tests in -py mode

  • test-jinja: use real expected output for min/max attribute tests

  • MiniCPM5: revert shared mapper and history fallbacks per review

Drop streaming tool-arg placeholder workarounds from the generic PEG
mapper and restore strict tool-call argument JSON parsing so MiniCPM5
support stays limited to autoparser/diff-analyzer changes.

  • chat : refactor minicpm5 back to dedicated parser

  • cont : simplify grammar

  • cont : refactor

  • cont : fixes

  • cont : rename template to openbmb-MiniCPM5-1B.jinja

  • cont : add message delimiters

  • cont : fix tests


Co-authored-by: zhangtao zhangtao2@modelbest.cn
Co-authored-by: 张涛 <>

macOS/iOS:

Linux:

Android:

Windows:

openEuler:

  • DISABLED
  • openEuler x86 (310p)
  • openEuler x86 (910b, ACL Graph)
  • openEuler aarch64 (310p)
  • openEuler aarch64 (910b, ACL Graph)

UI:

Don't miss a new llama.cpp release

NewReleases is sending notifications on new releases.