@@ -49,18 +49,6 @@ def _get_args_megatron(config: DictConfig):
4949 return args
5050
5151
52- def _get_args_robotics (config : DictConfig ):
53- assert config .experiment .task .backend == "robotics" , (
54- "This function only supports robotics backend."
55- )
56-
57- # Convert the DictConfig to a regular dictionary
58- config_dict = OmegaConf .to_container (config , resolve = True )
59- config_dict = config_dict ["train" ]
60- args = flatten_dict_to_args ({"config_path" : config_dict ["config_path" ]})
61- return args
62-
63-
6452def _get_args_native (config : DictConfig ):
6553 """
6654 Use Hydra-generated config.yaml for native backend.
@@ -387,8 +375,6 @@ def _prepare(self):
387375 _update_config_train (self .config )
388376 if self .config .experiment .task .backend == "megatron" :
389377 self .user_args = _get_args_megatron (self .config )
390- elif self .config .experiment .task .backend == "robotics" :
391- self .user_args = _get_args_robotics (self .config )
392378 elif self .config .experiment .task .backend == "native" :
393379 self .user_args = _get_args_native (self .config )
394380 else :
@@ -827,8 +813,6 @@ def _prepare(self):
827813 _update_config_train (self .config )
828814 if self .config .experiment .task .backend == "megatron" :
829815 self .user_args = _get_args_megatron (self .config )
830- elif self .config .experiment .task .backend == "robotics" :
831- self .user_args = _get_args_robotics (self .config )
832816 logger .info ("\n ************** configuration ***********" )
833817 logger .info (f"\n { OmegaConf .to_yaml (self .config )} " )
834818
0 commit comments