fix: llama4 conversion script no_rope_layers (#37359)

fix conversion script no_rope_layers

`no_rope_layers` should either be a list of NoPE layers or None, such that it is created in the config from the `no_rope_layer_interval`

Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
This commit is contained in:
Jonas M. Kübler 2025-04-09 13:02:15 +02:00 committed by GitHub
parent 6f4058aee3
commit 1e6ff5fd55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -286,7 +286,6 @@ def write_model(
tie_word_embeddings=False, # Constant set to False
torch_dtype=torch_dtype,
for_llm_compressor=_OFFLINE_QUANT_COMPATIBLE,
no_rope_layers=no_rope_layer_interval,
**config_kwargs,
)
# default vision config frmo params