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
c473d7e0
"vscode:/vscode.git/clone" did not exist on "c6eb983b2ee124c1e980f2f2f14dda5a54448881"
Commit
c473d7e0
authored
May 08, 2023
by
janEbert
Browse files
Create output path directory if necessary
parent
3d14707a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
main.py
main.py
+2
-0
No files found.
main.py
View file @
c473d7e0
...
...
@@ -2,6 +2,7 @@ import argparse
import
json
import
logging
import
fnmatch
import
os
from
lm_eval
import
tasks
,
evaluator
...
...
@@ -94,6 +95,7 @@ def main():
print
(
dumped
)
if
args
.
output_path
:
os
.
makedirs
(
os
.
path
.
dirname
(
args
.
output_path
),
exist_ok
=
True
)
with
open
(
args
.
output_path
,
"w"
)
as
f
:
f
.
write
(
dumped
)
...
...
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