UPSTREAM PR #19495: jinja: add missing tojson filter for undefined type#1162
UPSTREAM PR #19495: jinja: add missing tojson filter for undefined type#1162
Conversation
OverviewAnalysis of llama.cpp across 115,762 functions (33 modified, 0 new, 0 removed, 115,729 unchanged) reveals negligible performance impact. All changes occur in non-critical paths—template engine initialization, HTTP library utilities, and STL functions—with zero modifications to core inference operations (matrix multiplication, attention mechanisms, KV cache management). Power Consumption Changes:
Function AnalysisJinja Template Engine ( HTTP Library ( STL Functions: All changes represent correctness improvements (template filter support, HTTP security) with acceptable performance trade-offs in non-critical initialization paths. 🔎 Full breakdown: Loci Inspector. |
823244c to
bab7d39
Compare
a92fe2a to
6495042
Compare
504cad7 to
9f4f332
Compare
8019888 to
17452e3
Compare
Note
Source pull request: ggml-org/llama.cpp#19495
jinja: add missing tojson filter for undefined type
value_undefined_t::get_builtins() was the only type missing the
tojson filter, causing "unknown filter 'tojson' for type Undefined"
when templates reference undefined variables (e.g. tools | tojson
with no tools defined).