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
8bca751c
Commit
8bca751c
authored
Feb 05, 2024
by
lintangsutawika
Browse files
merged with latest update from main
parent
cb8889cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
lm_eval/api/task.py
lm_eval/api/task.py
+0
-14
No files found.
lm_eval/api/task.py
View file @
8bca751c
...
@@ -101,14 +101,7 @@ class TaskConfig(dict):
...
@@ -101,14 +101,7 @@ class TaskConfig(dict):
filter_list
:
Union
[
str
,
list
]
=
None
filter_list
:
Union
[
str
,
list
]
=
None
should_decontaminate
:
bool
=
False
should_decontaminate
:
bool
=
False
doc_to_decontamination_query
:
str
=
None
doc_to_decontamination_query
:
str
=
None
<<<<<<<
HEAD
weight_by_size
:
bool
=
False
metadata
:
Union
[
str
,
list
]
=
None
# by default, not used in the code. allows for users to pass arbitrary info to tasks
=======
metadata
:
dict
=
None
# by default, not used in the code. allows for users to pass arbitrary info to tasks
metadata
:
dict
=
None
# by default, not used in the code. allows for users to pass arbitrary info to tasks
>>>>>>>
7411947112117e0339
fe207fb620a70bcec22690
def
__post_init__
(
self
)
->
None
:
def
__post_init__
(
self
)
->
None
:
if
self
.
generation_kwargs
is
not
None
:
if
self
.
generation_kwargs
is
not
None
:
...
@@ -135,13 +128,6 @@ class TaskConfig(dict):
...
@@ -135,13 +128,6 @@ class TaskConfig(dict):
"do_sample"
:
False
,
"do_sample"
:
False
,
}
}
<<<<<<<
HEAD
# TODO: how to make TaskConfigs be de- and re-serializable, even when using the !function constructor?
# if self.dataset_kwargs is None:
# self.dataset_kwargs = {"trust_remote_code": True}
=======
>>>>>>>
7411947112117e0339
fe207fb620a70bcec22690
def
__getitem__
(
self
,
item
):
def
__getitem__
(
self
,
item
):
return
getattr
(
self
,
item
)
return
getattr
(
self
,
item
)
...
...
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