MCPcopy Create free account
hub / github.com/InternScience/SciReason / get_infer_output_path

Function get_infer_output_path

opencompass/utils/abbr.py:40–48  ·  view source on GitHub ↗
(model_cfg: ConfigDict,
                          dataset_cfg: ConfigDict,
                          root_path: str = None,
                          file_extension: str = 'json')

Source from the content-addressed store, hash-verified

38
39
40def get_infer_output_path(model_cfg: ConfigDict,
41 dataset_cfg: ConfigDict,
42 root_path: str = None,
43 file_extension: str = 'json') -> str:
44 # TODO: Rename this func
45 assert root_path is not None, 'default root_path is not allowed any more'
46 model_abbr = model_abbr_from_cfg(model_cfg)
47 dataset_abbr = dataset_abbr_from_cfg(dataset_cfg)
48 return osp.join(root_path, model_abbr, f'{dataset_abbr}.{file_extension}')
49
50
51def deal_with_judge_model_abbr(model_cfg, judge_model_cfg, meta=False):

Callers 15

mainFunction · 0.90
runMethod · 0.90
dispatch_tasksFunction · 0.90
runMethod · 0.90
partitionMethod · 0.90
partitionMethod · 0.90
partitionMethod · 0.90
partitionMethod · 0.90
remove_already_tasksFunction · 0.90
partitionMethod · 0.90
monkey_runFunction · 0.90
loadMethod · 0.90

Calls 2

model_abbr_from_cfgFunction · 0.85
dataset_abbr_from_cfgFunction · 0.85

Tested by

no test coverage detected