Skip to content

jinja: add --dump-prog for debugging#25086

Merged
ngxson merged 3 commits into
ggml-org:masterfrom
ngxson:xsn/jinja_dump_prog
Jun 28, 2026
Merged

jinja: add --dump-prog for debugging#25086
ngxson merged 3 commits into
ggml-org:masterfrom
ngxson:xsn/jinja_dump_prog

Conversation

@ngxson

@ngxson ngxson commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Overview

QoL tool for debugging jinja engine

Example usage:

test-chat-template --dump-prog models/templates/google-gemma-4-31B-it.jinja

Requirements

@ngxson ngxson requested review from CISC and ggerganov as code owners June 27, 2026 23:36
@github-actions github-actions Bot added testing Everything test related jinja parser Issues related to the jinja parser labels Jun 27, 2026

@CISC CISC left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Comment thread common/jinja/runtime.cpp Outdated
Co-authored-by: Sigbjørn Skjæret <1629204+CISC@users.noreply.github.com>
@ngxson ngxson merged commit f68a788 into ggml-org:master Jun 28, 2026
24 of 25 checks passed
turbo-tan pushed a commit to turbo-tan/llama.cpp-tq3 that referenced this pull request Jul 1, 2026
* jinja: add --dump-prog for debugging

* Update common/jinja/runtime.cpp

Co-authored-by: Sigbjørn Skjæret <1629204+CISC@users.noreply.github.com>

---------

Co-authored-by: Sigbjørn Skjæret <1629204+CISC@users.noreply.github.com>
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 testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants