@@ -151,27 +151,29 @@ class MMLearnConf:
151151 },
152152 metadata = {"help" : "Configuration for torch.jit.compile." },
153153 )
154- hydra : HydraConf = HydraConf (
155- searchpath = ["pkg://mmlearn.conf" ],
156- run = RunDir (
157- dir = SI ("./outputs/${experiment_name}/${now:%Y-%m-%d}/${now:%H-%M-%S}" )
158- ),
159- sweep = SweepDir (
160- dir = SI ("./outputs/${experiment_name}/${now:%Y-%m-%d}/${now:%H-%M-%S}" ),
161- subdir = SI ("${hydra.job.num}_${hydra.job.id}" ),
162- ),
163- help = HelpConf (
164- app_name = "mmlearn" ,
165- header = "mmlearn: A modular framework for research on multimodal representation learning." ,
166- ),
167- job = JobConf (
168- name = II ("experiment_name" ),
169- env_set = {
170- "NCCL_IB_DISABLE" : "1" , # disable InfiniBand (the Vector cluster does not have it)
171- "TORCH_NCCL_ASYNC_ERROR_HANDLING" : "3" ,
172- "HYDRA_FULL_ERROR" : "1" ,
173- },
174- ),
154+ hydra : HydraConf = field (
155+ default_factory = lambda : HydraConf (
156+ searchpath = ["pkg://mmlearn.conf" ],
157+ run = RunDir (
158+ dir = SI ("./outputs/${experiment_name}/${now:%Y-%m-%d}/${now:%H-%M-%S}" )
159+ ),
160+ sweep = SweepDir (
161+ dir = SI ("./outputs/${experiment_name}/${now:%Y-%m-%d}/${now:%H-%M-%S}" ),
162+ subdir = SI ("${hydra.job.num}_${hydra.job.id}" ),
163+ ),
164+ help = HelpConf (
165+ app_name = "mmlearn" ,
166+ header = "mmlearn: A modular framework for research on multimodal representation learning." ,
167+ ),
168+ job = JobConf (
169+ name = II ("experiment_name" ),
170+ env_set = {
171+ "NCCL_IB_DISABLE" : "1" ,
172+ "TORCH_NCCL_ASYNC_ERROR_HANDLING" : "3" ,
173+ "HYDRA_FULL_ERROR" : "1" ,
174+ },
175+ ),
176+ )
175177 )
176178
177179
0 commit comments