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
e700f3d8
Commit
e700f3d8
authored
Dec 28, 2023
by
baberabb
Browse files
test
parent
f744bfad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
lm_eval/tasks/arc/arc_easy.yaml
lm_eval/tasks/arc/arc_easy.yaml
+1
-0
scripts/make_table_tasks.py
scripts/make_table_tasks.py
+6
-2
No files found.
lm_eval/tasks/arc/arc_easy.yaml
View file @
e700f3d8
...
@@ -3,6 +3,7 @@ group:
...
@@ -3,6 +3,7 @@ group:
task
:
arc_easy
task
:
arc_easy
dataset_path
:
ai2_arc
dataset_path
:
ai2_arc
dataset_name
:
ARC-Easy
dataset_name
:
ARC-Easy
# test
output_type
:
multiple_choice
output_type
:
multiple_choice
training_split
:
train
training_split
:
train
validation_split
:
validation
validation_split
:
validation
...
...
scripts/make_table_tasks.py
View file @
e700f3d8
...
@@ -44,6 +44,7 @@ def maketable(df):
...
@@ -44,6 +44,7 @@ def maketable(df):
else
:
else
:
task_classes
=
new_tasks
()
task_classes
=
new_tasks
()
_tasks
=
[(
x
,
TASK_REGISTRY
.
get
(
x
))
for
x
in
task_classes
]
_tasks
=
[(
x
,
TASK_REGISTRY
.
get
(
x
))
for
x
in
task_classes
]
count
=
0
for
tname
,
Task
in
_tasks
:
for
tname
,
Task
in
_tasks
:
task
=
Task
()
task
=
Task
()
v
=
[
v
=
[
...
@@ -66,6 +67,9 @@ def maketable(df):
...
@@ -66,6 +67,9 @@ def maketable(df):
]
]
logger
.
info
(
v
)
logger
.
info
(
v
)
values
.
append
(
v
)
values
.
append
(
v
)
count
+=
1
if
count
==
10
:
break
if
not
df
:
if
not
df
:
df
=
pd
.
DataFrame
(
values
,
columns
=
headers
)
df
=
pd
.
DataFrame
(
values
,
columns
=
headers
)
table
=
df
.
to_markdown
(
index
=
False
)
table
=
df
.
to_markdown
(
index
=
False
)
...
@@ -85,8 +89,8 @@ def maketable(df):
...
@@ -85,8 +89,8 @@ def maketable(df):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
csv_file
=
Path
(
f
"
{
Path
(
__file__
).
parent
.
parent
.
resolve
()
}
/docs/task_
guid
e.csv"
)
csv_file
=
Path
(
f
"
{
Path
(
__file__
).
parent
.
parent
.
resolve
()
}
/docs/task_
tabl
e.csv"
)
md_file
=
Path
(
f
"
{
Path
(
__file__
).
parent
.
parent
.
resolve
()
}
/docs/task_
guid
e.md"
)
md_file
=
Path
(
f
"
{
Path
(
__file__
).
parent
.
parent
.
resolve
()
}
/docs/task_
tabl
e.md"
)
try
:
try
:
df
=
pd
.
read_csv
(
csv_file
)
df
=
pd
.
read_csv
(
csv_file
)
...
...
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