]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
convert : yield Mamba2Model/GraniteMoeModel modify_tensors (#19157)
authorDaniel Bevenius <redacted>
Wed, 28 Jan 2026 15:49:36 +0000 (16:49 +0100)
committerGitHub <redacted>
Wed, 28 Jan 2026 15:49:36 +0000 (16:49 +0100)
commitebf57258702b23098d7bdcbd46008a95b2401075
tree4b0014c3a91fe9c58c41ed523c33b4518e981260
parent0cd7032ca4f1f2ac0c9527a62a76ed4dc6ad26fe
convert : yield Mamba2Model/GraniteMoeModel modify_tensors (#19157)

* convert : yield Mamba2Model/GraniteMoeModel modify_tensors

This commit updates the `GraniteHybridModel` class' modify_tensors
function to properly delegate to `Mamba2Model.modify_tensors` and
`GraniteMoeModel.modify_tensors` using 'yield from' instead of 'return'.

The motivation for this is that modify_tensors is a generator function
(it uses 'yield from'), but the two calls above use return statements
but don't yield anything which means that the the caller of this
function will not receive any yielded values from it. And this causes
layer tensors to be silently dropped during conversion.
convert_hf_to_gguf.py