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

Function main

tools/list_configs.py:20–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19
20def main():
21 args = parse_args()
22 models = match_files('opencompass/configs/models/',
23 args.pattern,
24 fuzzy=True)
25 if models:
26 table = [['Model', 'Config Path'], *models]
27 print(tabulate.tabulate(table, headers='firstrow', tablefmt='psql'))
28 datasets = match_files('opencompass/configs/datasets/',
29 args.pattern,
30 fuzzy=True)
31 if datasets:
32 table = [['Dataset', 'Config Path'], *datasets]
33 print(tabulate.tabulate(table, headers='firstrow', tablefmt='psql'))
34
35
36if __name__ == '__main__':

Callers 1

list_configs.pyFile · 0.70

Calls 2

match_filesFunction · 0.90
parse_argsFunction · 0.70

Tested by

no test coverage detected