b9553
ggml-org/llama.cppb9553Jun 7, 2026by github-actions[bot]same day as b9551
What changed since b9551
Sampler name parsing is relaxed to always accept canonical and alternative names case-insensitively, fixing llama-server UI recognition.
Breaking changes
- The `common_sampler_types_from_names` signature in common/sampling.cpp dropped the `bool allow_alt_names` parameter, so any downstream code calling it must be updated.
New features
- Sampler names are now matched against both canonical and alternative spellings (e.g. `top-k` as well as `top_k`) without needing an opt-in flag.
- Additional sampler aliases were added to the name mapping table.
Improvements
- Sampler name lookup is now case-insensitive and uses a single merged alias map instead of separate canonical/alternative passes.
- Sampler name mappings were unified and auto-generated, reducing duplicated alias definitions.
Bug fixes
- Samplers specified with alternative names in the llama-server UI are no longer rejected as invalid.
Upgrade notes
This is a small follow-up to b9551's KV-cache work and only touches the common sampling helper. If you embed llama.cpp's common library, update call sites of `common_sampler_types_from_names` to the new flag-less signature; CLI and server users need no config changes.
Analyzed Nov 1, 2026
Upgrading?
Release notes summary
This release improves sampler name recognition by removing a flag that restricted matching. The system now always matches canonical and alternative names in a case-insensitive manner, fixing issues with the llama-server UI.
Key Highlights
- Relaxed sampler name matching logic to accept all known names.
- Removed the `allow_alt_names` flag from the sampler function.
- Implemented case-insensitive matching for sampler names.
- Fixed sampler recognition issues in the llama-server UI.
Release Notes (excerpt)
<details open> common : relax sampler name matching (#23744) * common : relax sampler name matching Currently, in some cases, the alternative names for samplers (like `top-k` and `min-p` instead of the canonical `top_k` and `min_p`) are not always recognized by the `common_sampler_types_from_names` function in `common/sampling.cpp`. This PR changes the signature of this function to remove the `bool allow_alt_names` flag, and removes all occurences of the flag from call…
Published by ggml-org on GitHub.
Read the full release notesRelated Repositories
:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS
Godot Engine – Multi-platform 2D and 3D game engine
ClickHouse® is a real-time analytics database management system
Self-hosted game stream host for Moonlight.
DuckDB is a high-performance analytical database system