@@ -35,9 +35,7 @@ def __init__(self, params: dict[str, Any]):
3535 self .engine = params .get ("engine" , "vllm" )
3636 self .is_multinode = int (self .params ["num_nodes" ]) > 1
3737 self .use_container = self .params ["venv" ] == CONTAINER_MODULE_NAME
38- self .additional_binds = (
39- self .params ["bind" ] if self .params .get ("bind" ) else ""
40- )
38+ self .additional_binds = self .params ["bind" ] if self .params .get ("bind" ) else ""
4139 self .model_weights_path = str (
4240 Path (self .params ["model_weights_parent_dir" ], self .params ["model_name" ])
4341 )
@@ -187,7 +185,8 @@ def _generate_launch_cmd(self) -> str:
187185
188186 launch_cmd .append (
189187 "\n " .join (SLURM_SCRIPT_TEMPLATE ["launch_cmd" ][self .engine ]).format ( # type: ignore[literal-required]
190- model_weights_path = self .params .get ("hf_model" ) or self .model_weights_path ,
188+ model_weights_path = self .params .get ("hf_model" )
189+ or self .model_weights_path ,
191190 model_name = self .params ["model_name" ],
192191 )
193192 )
@@ -352,7 +351,8 @@ def _generate_model_launch_script(self, model_name: str) -> Path:
352351 "\n " .join (
353352 BATCH_MODEL_LAUNCH_SCRIPT_TEMPLATE ["launch_cmd" ][model_params ["engine" ]]
354353 ).format (
355- model_weights_path = model_params .get ("hf_model" ) or model_params ["model_weights_path" ],
354+ model_weights_path = model_params .get ("hf_model" )
355+ or model_params ["model_weights_path" ],
356356 model_name = model_name ,
357357 )
358358 )
0 commit comments