Skip to content

Commit 434f3d3

Browse files
juliendenizegemini-code-assist[bot]patrickvonplaten
authored
Fix mistral config (#29172)
Signed-off-by: Julien Denize <[email protected]> Signed-off-by: Julien Denize <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Patrick von Platen <[email protected]>
1 parent 2092ce8 commit 434f3d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vllm/transformers_utils/configs/mistral.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ def _remap_mistral_yarn_args(config: dict) -> dict:
9090
"rope_type": "yarn",
9191
"mscale_all_dim": 1,
9292
}
93+
94+
if rope_theta := config.pop("rope_theta", None):
95+
config["rope_parameters"]["rope_theta"] = rope_theta
96+
9397
for old_name, new_name in yarn_config_map.items():
9498
if old_name in yarn_config:
9599
config["rope_parameters"][new_name] = yarn_config.pop(old_name)

0 commit comments

Comments
 (0)