Mac local LLMs: Chat templates, reasoning and tool calling

Parent: Running LLM models locally on a Mac · Published reference · snapshot 2026-10-05

↓ Facts as markdownall context files

mlx_lm.server infers the tool parser from marker strings in the chat template (`_infer_tool_parser()`); no known marker means raw text stays in `content`. `tool_parser_type` in tokenizer_config.json is an override, not the only route.

These notes link each claim to its source. A source may be a research report hosted on this site rather than the primary document. A published reference means the content is available; it does not certify independent review or accuracy.Read the editorial policy and follow the sources before relying on a claim.

Parser and template wiring (who parses what)

Tool call lands inside thinking

llama.cpp auto-parser (template probing, chat-diff-analyzer.cpp)

Preserve thinking and cache reuse

Error strings and fixes

Decision rules

Corrections and open questions

Corrections and disagreements

Concepts in this cluster

Children

← the whole tree · 3D view· how to read this page