Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
520ca380
Unverified
Commit
520ca380
authored
Sep 12, 2024
by
Roger Wang
Committed by
GitHub
Sep 12, 2024
Browse files
[Hotfix][VLM] Fixing max position embeddings for Pixtral (#8399)
parent
7de49aa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vllm/transformers_utils/config.py
vllm/transformers_utils/config.py
+2
-0
No files found.
vllm/transformers_utils/config.py
View file @
520ca380
...
...
@@ -206,6 +206,8 @@ def load_params_config(model, revision) -> PretrainedConfig:
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"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment