MCPcopy Create free account
hub / github.com/JinjieNi/MegaDLMs / load_config

Function load_config

tests/test_utils/python_scripts/common.py:62–68  ·  view source on GitHub ↗

Loads and parses a yaml file into a JETWorkloadManifest

(config_path: str)

Source from the content-addressed store, hash-verified

60
61
62def load_config(config_path: str) -> jetclient.JETWorkloadManifest:
63 """Loads and parses a yaml file into a JETWorkloadManifest"""
64 with open(config_path) as stream:
65 try:
66 return jetclient.JETWorkloadManifest(**yaml.safe_load(stream))
67 except yaml.YAMLError as exc:
68 raise exc
69
70
71def load_and_flatten(config_path: str) -> List[jetclient.JETWorkloadManifest]:

Callers 2

load_and_flattenFunction · 0.85
load_workloadsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected