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
98747638
Commit
98747638
authored
Sep 14, 2023
by
haileyschoelkopf
Browse files
remove omegaconf usage
parent
57b20eef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lm_eval/utils.py
lm_eval/utils.py
+1
-2
No files found.
lm_eval/utils.py
View file @
98747638
...
...
@@ -16,7 +16,6 @@ import gc
import
torch
import
transformers
from
omegaconf
import
OmegaConf
from
jinja2
import
BaseLoader
,
Environment
,
StrictUndefined
from
itertools
import
islice
...
...
@@ -56,7 +55,7 @@ def simple_parse_args_string(args_string):
if
not
args_string
:
return
{}
arg_list
=
args_string
.
split
(
","
)
args_dict
=
OmegaConf
.
to_object
(
OmegaConf
.
from_dot
li
s
t
(
arg_list
))
args_dict
=
{
k
:
v
for
k
,
v
in
[
arg
.
sp
lit
(
"="
)
for
arg
in
arg_list
]}
return
args_dict
...
...
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