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
01ad787d
Commit
01ad787d
authored
Sep 05, 2023
by
lintangsutawika
Browse files
format for pre-commit
parent
c417292d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
lm_eval/api/task.py
lm_eval/api/task.py
+0
-1
lm_eval/models/huggingface.py
lm_eval/models/huggingface.py
+3
-3
No files found.
lm_eval/api/task.py
View file @
01ad787d
...
...
@@ -88,7 +88,6 @@ class TaskConfig(dict):
metadata
:
str
=
None
# by default, not used in the code. allows for users to pass arbitrary info to tasks
def
__post_init__
(
self
)
->
None
:
if
"."
in
self
.
dataset_path
:
import
inspect
...
...
lm_eval/models/huggingface.py
View file @
01ad787d
...
...
@@ -432,9 +432,9 @@ class HFLM(LM):
return
encoding
def
tok_batch_encode
(
self
,
strings
:
List
[
str
],
padding_side
:
str
=
"left"
,
self
,
strings
:
List
[
str
],
padding_side
:
str
=
"left"
,
left_truncate_len
:
int
=
None
,
truncation
:
bool
=
False
,
):
...
...
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