]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
mtmd : use align_corners for qwen3vl vision position embedding interpolation (#25781)
authorGerben van V <redacted>
Tue, 21 Jul 2026 21:58:34 +0000 (23:58 +0200)
committerGitHub <redacted>
Tue, 21 Jul 2026 21:58:34 +0000 (23:58 +0200)
commitb4aa7dd477acf065a3b9c6a8cf324c904da1a834
tree1a09ba0e06dbaf88676785b4a05b370ecf00e590
parent71102a73f2042d9aacae2d6dc70874a8611b8361
mtmd : use align_corners for qwen3vl vision position embedding interpolation (#25781)

The Qwen3-VL learned position embedding is interpolated to the runtime patch
grid with the default bilinear+antialias (align_corners=False) sampling, while
the transformers reference uses align_corners=True (torch.linspace(0, side-1, T)).
The mismatch scales grounding coordinates about the image center, growing with
image size and per-axis for non-square images (see #16880).
tools/mtmd/models/qwen3vl.cpp