mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-13 20:15:42 +08:00
Fix mistral config (#29172)
Signed-off-by: Julien Denize <julien.denize@mistral.ai> Signed-off-by: Julien Denize <40604584+juliendenize@users.noreply.github.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
This commit is contained in:
parent
2092ce8c39
commit
434f3d3eb8
@ -90,6 +90,10 @@ def _remap_mistral_yarn_args(config: dict) -> dict:
|
|||||||
"rope_type": "yarn",
|
"rope_type": "yarn",
|
||||||
"mscale_all_dim": 1,
|
"mscale_all_dim": 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if rope_theta := config.pop("rope_theta", None):
|
||||||
|
config["rope_parameters"]["rope_theta"] = rope_theta
|
||||||
|
|
||||||
for old_name, new_name in yarn_config_map.items():
|
for old_name, new_name in yarn_config_map.items():
|
||||||
if old_name in yarn_config:
|
if old_name in yarn_config:
|
||||||
config["rope_parameters"][new_name] = yarn_config.pop(old_name)
|
config["rope_parameters"][new_name] = yarn_config.pop(old_name)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user