]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
convert : force setting sliding_window from original config (#15867)
authorDaniel Bevenius <redacted>
Mon, 8 Sep 2025 07:44:34 +0000 (09:44 +0200)
committerGitHub <redacted>
Mon, 8 Sep 2025 07:44:34 +0000 (09:44 +0200)
commit233d773d02c37982badddf3994e9953a175f34da
tree97b99d9a95d88abb92fc82cebef00d351f776cd9
parenta885dcff11a7b73f9377812d6151f6b15d307de0
convert : force setting sliding_window from original config (#15867)

* convert : force setting sliding_window from original config

This commit modifies the set_gguf_parameters method for EmbeddingGemma
so that it reads the sliding_window parameter from the original model
config.json and uses that value.

The motivation for this change is that the Gemma3TextConfig
constructor adjusts the sliding_window value, which can lead to
inconsistencies when converting models as we expects this value to
match the original model's configuration.

Refs: https://github.com/huggingface/transformers/blob/bb45d3631ec7026db04a77d33a52b31766372160/src/transformers/models/gemma3/configuration_gemma3.py#L230

* fix flake8 error

* add link to huggingface PR
convert_hf_to_gguf.py