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
e4acfcaa
Commit
e4acfcaa
authored
Jul 12, 2023
by
Benjamin Fattori
Browse files
remove TODO comment
parent
74076cf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lm_eval/models/huggingface.py
lm_eval/models/huggingface.py
+1
-2
No files found.
lm_eval/models/huggingface.py
View file @
e4acfcaa
...
@@ -224,7 +224,6 @@ class HFLM(LM):
...
@@ -224,7 +224,6 @@ class HFLM(LM):
self
.
_max_length
=
max_length
self
.
_max_length
=
max_length
#TODO: Where to put this
self
.
batch_schedule
=
1
self
.
batch_schedule
=
1
self
.
batch_sizes
=
{}
self
.
batch_sizes
=
{}
self
.
max_batch_size
=
max_batch_size
self
.
max_batch_size
=
max_batch_size
...
@@ -339,7 +338,7 @@ class HFLM(LM):
...
@@ -339,7 +338,7 @@ class HFLM(LM):
)
)
else
:
else
:
max_length
=
self
.
max_length
max_length
=
self
.
max_length
# if OOM, then halves batch_size and tries again
# if OOM, then halves batch_size and tries again
@
find_executable_batch_size
(
starting_batch_size
=
self
.
max_batch_size
)
@
find_executable_batch_size
(
starting_batch_size
=
self
.
max_batch_size
)
def
forward_batch
(
batch_size
):
def
forward_batch
(
batch_size
):
...
...
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