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
9692aa05
"...git@developer.sourcefind.cn:modelzoo/solov2-pytorch.git" did not exist on "5055cdf2dfba008fbb8e6041a2f525e502e0f277"
Commit
9692aa05
authored
Jul 09, 2024
by
haileyschoelkopf
Browse files
add lintang's changes to hf_vlms.py
parent
1c94a54d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lm_eval/models/hf_vlms.py
lm_eval/models/hf_vlms.py
+4
-4
No files found.
lm_eval/models/hf_vlms.py
View file @
9692aa05
...
@@ -213,13 +213,13 @@ class HFMultimodalLM(HFLM):
...
@@ -213,13 +213,13 @@ class HFMultimodalLM(HFLM):
### Up to here: was identical to non-multimodal HFLM generate_until ###
### Up to here: was identical to non-multimodal HFLM generate_until ###
for
chunk
in
chunks
:
for
chunk
in
chunks
:
contexts
,
all_gen_kwargs
,
doc_to_visual
,
doc
=
zip
(
contexts
,
all_gen_kwargs
,
aux_arguments
=
zip
(
*
chunk
*
chunk
)
# TODO:
what should be passed in her
e as
part of a ch
un
k
?
)
# TODO:
can we cut down further on number of distinct things w
e
p
as
s aro
un
d
?
visuals
=
[
visuals
=
[
vis
(
d
)
for
vis
,
d
in
zip
(
doc_to_visual
,
doc
)
arg
[
"visual"
]
for
arg
in
aux_arguments
]
# TODO: I think *fully* flattening is just wrong for bs>1 ?
]
# TODO: I think *fully* flattening is just wrong for bs>1 ?
?
### this part onward: same as HFLM ###
### this part onward: same as HFLM ###
...
...
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