We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0499f16 commit 735acf5Copy full SHA for 735acf5
mGPT/config.py
@@ -14,7 +14,7 @@ def get_module_config(cfg, filepath="./configs"):
14
yamls = glob.glob(pjoin(filepath, '*', '*.yaml'))
15
yamls = [y.replace(filepath, '') for y in yamls]
16
for yaml in yamls:
17
- nodes = yaml.replace('.yaml', '').replace('/', '.')
+ nodes = yaml.replace('.yaml', '').replace(os.sep, '.')
18
nodes = nodes[1:] if nodes[0] == '.' else nodes
19
OmegaConf.update(cfg, nodes, OmegaConf.load('./configs' + yaml))
20
0 commit comments