MCPcopy Create free account
hub / github.com/CONE-MT/LLaMAX / load_module_from_path

Function load_module_from_path

scripts/inference/eval.py:48–52  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

46 return ob
47
48def load_module_from_path(path):
49 spec = importlib.util.spec_from_file_location("module.name", path)
50 module = importlib.util.module_from_spec(spec)
51 spec.loader.exec_module(module)
52 return module
53
54def get_args(parser):
55 parser.add_argument('--cfg', type=str, help='config file')

Callers 1

eval.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected