]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
model : add support for Phi4ForCausalLMV (#20168)
authorDAN™ <redacted>
Wed, 11 Mar 2026 23:25:54 +0000 (19:25 -0400)
committerGitHub <redacted>
Wed, 11 Mar 2026 23:25:54 +0000 (00:25 +0100)
commitfdb17643d379cd35bf6acf0f57cfaa500f88a145
treeee7b8e86b8a2ca479031551e707cfd49158e506d
parent1eea6a2968b401c8377bc9d4d49a7a64ffbfb3d0
model : add support for Phi4ForCausalLMV (#20168)

* Add support for Phi4ForCausalLMV.

* Fix Phi-4 vision parity (correcting SigLIP2 patch-kernel export layout) and matching HF NaFlex resize behavior in mtmd.

* Rename contants + fix tokenizer label

* Clean-ups.

* Fix GGUF export.

* Set tokenizer.ggml.pre explicitly.

* Default vocab name rather than forcing it.

* Clean-ups.

* Fix indent.

* Fix subscriptable error.

* remov overcomplicated code path

* Clean-ups.

---------

Co-authored-by: Xuan Son Nguyen <redacted>
convert_hf_to_gguf.py
gguf-py/gguf/constants.py
tools/mtmd/clip-impl.h
tools/mtmd/clip.cpp
tools/mtmd/models/siglip.cpp
tools/mtmd/mtmd.cpp