Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
e540587c
"tests/vscode:/vscode.git/clone" did not exist on "9289e577ec185bd9feb2c03bb86b82f1bf9bb633"
Commit
e540587c
authored
Oct 02, 2024
by
Baber
Browse files
convert limit_mm_per_prompt to dict
parent
15ffb0da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lm_eval/models/vllm_vlms.py
lm_eval/models/vllm_vlms.py
+3
-1
No files found.
lm_eval/models/vllm_vlms.py
View file @
e540587c
import
ast
import
copy
from
typing
import
Dict
,
List
,
Optional
...
...
@@ -36,9 +37,10 @@ class VLLM_VLM(VLLM):
interleave
:
bool
=
True
,
# TODO<baber>: handle max_images and limit_mm_per_prompt better
max_images
:
int
=
999
,
limit_mm_per_prompt
:
str
=
"
image=1
"
,
limit_mm_per_prompt
:
str
=
"
None
"
,
**
kwargs
,
):
limit_mm_per_prompt
=
ast
.
literal_eval
(
limit_mm_per_prompt
)
kwargs
[
"limit_mm_per_prompt"
]
=
simple_parse_args_string
(
limit_mm_per_prompt
)
super
().
__init__
(
pretrained
=
pretrained
,
...
...
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