MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / simple_parse_args_string

Function simple_parse_args_string

test/general/lm_eval/utils.py:49–60  ·  view source on GitHub ↗

Parses something like args1=val1,arg2=val2 Into a dictionary

(args_string)

Source from the content-addressed store, hash-verified

47
48
49def simple_parse_args_string(args_string):
50 """
51 Parses something like
52 args1=val1,arg2=val2
53 Into a dictionary
54 """
55 args_string = args_string.strip()
56 if not args_string:
57 return {}
58 arg_list = args_string.split(",")
59 args_dict = OmegaConf.to_object(OmegaConf.from_dotlist(arg_list))
60 return args_dict
61
62
63def join_iters(iters):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected