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
25950dca
Unverified
Commit
25950dca
authored
Jul 04, 2025
by
汪志鹏
Committed by
GitHub
Jul 04, 2025
Browse files
Add ignore consolidated file in mistral example code (#20420)
Signed-off-by:
汪志鹏
<
wangzhipeng628@gmail.com
>
parent
a4113b03
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
examples/offline_inference/vision_language.py
examples/offline_inference/vision_language.py
+1
-0
examples/offline_inference/vision_language_multi_image.py
examples/offline_inference/vision_language_multi_image.py
+1
-0
No files found.
examples/offline_inference/vision_language.py
View file @
25950dca
...
...
@@ -677,6 +677,7 @@ def run_mistral3(questions: list[str], modality: str) -> ModelRequestData:
max_num_seqs
=
2
,
tensor_parallel_size
=
2
,
limit_mm_per_prompt
=
{
modality
:
1
},
ignore_patterns
=
[
"consolidated.safetensors"
],
)
prompts
=
[
f
"<s>[INST]
{
question
}
\n
[IMG][/INST]"
for
question
in
questions
]
...
...
examples/offline_inference/vision_language_multi_image.py
View file @
25950dca
...
...
@@ -505,6 +505,7 @@ def load_mistral3(question: str, image_urls: list[str]) -> ModelRequestData:
max_num_seqs
=
2
,
tensor_parallel_size
=
2
,
limit_mm_per_prompt
=
{
"image"
:
len
(
image_urls
)},
ignore_patterns
=
[
"consolidated.safetensors"
],
)
placeholders
=
"[IMG]"
*
len
(
image_urls
)
...
...
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