Chat template: sync with zai-org/GLM-5.3-Flash (linear tool-result reordering)

#17
by vMaroon - opened

The chat template here matches zai-org/GLM-5.3-Flash at 3f1971b7, two commits behind its main. With it, render time grows with the square of the parallel tool calls in one turn, so a large fan-out passes vLLM's 30 s render timeout. Upstream fixed this in https://huggingface.co/zai-org/GLM-5.3-Flash/discussions/63.

This replaces the file with upstream's current one (46a050be), which also brings the early break in the reordering check (690b7052). Nothing else changes.

Parallel tool calls main this PR
400 1.69 s 0.02 s
800 6.8 s 0.04 s
1,600 27.0 s 0.09 s

transformers 5.22.1 with jinja2 3.1.6, one M4 core. Output is byte-identical to main on 18,000 randomized conversations.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment