Skip to content

Commit

Permalink
[Hotfix][VLM] Fixing max position embeddings for Pixtral (#8399)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywang96 authored Sep 12, 2024
1 parent 7de49aa commit 520ca38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vllm/transformers_utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ def recurse_elems(elem: Any):
config_dict["tie_word_embeddings"] = config_dict.get(
"tie_embeddings", False)
config_dict["max_seq_len"] = config_dict.get("max_seq_len", 128_000)
config_dict["max_position_embeddings"] = config_dict.get(
"max_position_embeddings", 128_000)

if config_dict.get("moe") is not None:
config_dict["architectures"] = ["MixtralForCausalLM"]
Expand Down

0 comments on commit 520ca38

Please sign in to comment.