@@ -53,7 +53,7 @@ def singularity_params(self, basic_params):
5353 singularity = basic_params .copy ()
5454 singularity .update (
5555 {
56- "venv" : "singularity " ,
56+ "venv" : "apptainer " ,
5757 "bind" : "/scratch:/scratch,/data:/data" ,
5858 "env" : {
5959 "CACHE_DIR" : "/cache" ,
@@ -109,7 +109,7 @@ def test_init_singularity(self, singularity_params):
109109 def test_init_singularity_no_bind (self , basic_params ):
110110 """Test Singularity initialization without additional binds."""
111111 params = basic_params .copy ()
112- params ["venv" ] = "singularity "
112+ params ["venv" ] = "apptainer "
113113 generator = SlurmScriptGenerator (params )
114114
115115 assert generator .params == params
@@ -185,7 +185,7 @@ def test_generate_launch_cmd_singularity(self, singularity_params):
185185 generator = SlurmScriptGenerator (singularity_params )
186186 launch_cmd = generator ._generate_launch_cmd ()
187187
188- assert "exec --nv" in launch_cmd
188+ assert "apptainer exec --nv" in launch_cmd
189189 assert "--bind /path/to/model_weights/test-model" in launch_cmd
190190 assert "--bind /scratch:/scratch,/data:/data" in launch_cmd
191191 assert "source" not in launch_cmd
@@ -306,9 +306,9 @@ def batch_params(self):
306306 def batch_singularity_params (self , batch_params ):
307307 """Generate batch SLURM configuration parameters with Singularity."""
308308 singularity_params = batch_params .copy ()
309- singularity_params ["venv" ] = "singularity " # Set top-level venv to singularity
309+ singularity_params ["venv" ] = "apptainer " # Set top-level venv to apptainer
310310 for model_name in singularity_params ["models" ]:
311- singularity_params ["models" ][model_name ]["venv" ] = "singularity "
311+ singularity_params ["models" ][model_name ]["venv" ] = "apptainer "
312312 singularity_params ["models" ][model_name ]["bind" ] = (
313313 "/scratch:/scratch,/data:/data"
314314 )
@@ -341,9 +341,9 @@ def test_init_singularity(self, batch_singularity_params):
341341 def test_init_singularity_no_bind (self , batch_params ):
342342 """Test Singularity initialization without additional binds."""
343343 params = batch_params .copy ()
344- params ["venv" ] = "singularity " # Set top-level venv to singularity
344+ params ["venv" ] = "apptainer " # Set top-level venv to apptainer
345345 for model_name in params ["models" ]:
346- params ["models" ][model_name ]["venv" ] = "singularity "
346+ params ["models" ][model_name ]["venv" ] = "apptainer "
347347
348348 generator = BatchSlurmScriptGenerator (params )
349349
0 commit comments