Why JSON escaping broke llama.cpp prompt lookup (79% –> 11%), but not native MTP
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
A Mac Studio benchmark from l8w8 finds that llama.cpp's prompt-lookup speculative decoding (ngram-mod) loses most of its speedup when code edits are wrapped in JSON tool-call payloads, because newlines and quotes become escape sequences that no longer match the prompt's token IDs.