Skip to content

caps : recheck typed content if template checks for string - #28511

Merged
CISC merged 1 commit into
masterfrom
cisc/jinja-caps-typed-content-recheck
Sep 7, 2026
Merged

CISC merged 1 commit into
masterfrom
cisc/jinja-caps-typed-content-recheck

Conversation

@CISC

@CISC CISC commented Sep 6, 2026

Copy link
Copy Markdown
Member

Overview

Fixes #28509

Additional information

A template may check if content is a string before checking for an array, in which case supports_typed_content will never be set even though it may very well support it.

In this case, run another check to see if it will attempt to access the array if content is not a string.

Requirements

@CISC
CISC requested review from aldehir, ngxson and pwilkin September 6, 2026 18:50
@github-actions github-actions Bot added the jinja parser Issues related to the jinja parser label Sep 6, 2026
@CISC
CISC merged commit 5202104 into master Sep 7, 2026
23 of 26 checks passed
@CISC
CISC deleted the cisc/jinja-caps-typed-content-recheck branch September 7, 2026 07:14
SteelPh0enix pushed a commit to SteelPh0enix/llama.cpp-qwen4exp that referenced this pull request Sep 8, 2026
x1250 pushed a commit to x1250/llama.cpp that referenced this pull request Sep 9, 2026
zbrad pushed a commit to zbrad/llama.cpp that referenced this pull request Sep 10, 2026
roverdrubber added a commit to roverdrubber/llama.cpp that referenced this pull request Oct 15, 2026
The branch is far behind upstream master and the parts that a card other than
this one needs had drifted. This ports the non-backend half of that sync,
content-matched against upstream rather than replayed by hash: the parser and
JSON schema chain (ggml-org#27764, ggml-org#28736, ggml-org#28742, which adds common/parsers/,
common/json-schema.* and tests/test-json-schema.cpp and retires the three
example scripts it replaces), the chat, grammar, jinja and server fixes
(ggml-org#28302, ggml-org#28469, ggml-org#26885, ggml-org#28279, ggml-org#28511, ggml-org#28620, ggml-org#28817, ggml-org#28749), the
qwen4exp RMSNorm and multiply fusion (ggml-org#28896, hand-ported because the norm
tensors here load with a different shape), the GDN q/k l2 norm as
flash-linear-attention defines it (ggml-org#28068), the ggml_prec_set_acc API that
replaces ggml_mul_mat_set_prec and ggml_flash_attn_ext_set_prec at every call
site, and the scheduler fixes for zero-sized expert ids (ggml-org#28739) and split
inputs (ggml-org#28387).

The GPU backend half of the same sync lands in the following two commits; this
one alone does not build the CUDA or HIP backend, because their call sites move
to the new precision API there.

test-chat, test-json-schema, test-json-schema-to-grammar,
test-grammar-integration and test-grammar-parser pass.

Assisted-by: Claude Opus 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jinja parser Issues related to the jinja parser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Eval bug: Gemma 4 26B-A4B Template Misclassified as supports_typed_content = false

3 participants