File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed
Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,8 @@ class SlurmScriptTemplate(TypedDict):
129129 Commands for Singularity container setup
130130 imports : str
131131 Import statements and source commands
132+ env_vars : list[str]
133+ Environment variables to set
132134 singularity_command : str
133135 Template for Singularity execution command
134136 activate_venv : str
@@ -146,6 +148,7 @@ class SlurmScriptTemplate(TypedDict):
146148 shebang : ShebangConfig
147149 singularity_setup : list [str ]
148150 imports : str
151+ env_vars : list [str ]
149152 singularity_command : str
150153 activate_venv : str
151154 server_setup : ServerSetupConfig
Original file line number Diff line number Diff line change 55"""
66
77import json
8- import os
98import time
109import warnings
1110from pathlib import Path
Original file line number Diff line number Diff line change @@ -89,12 +89,8 @@ def _generate_server_setup(self) -> str:
8989 """
9090 server_script = ["\n " ]
9191 if self .use_singularity :
92- server_script .append (
93- "\n " .join (SLURM_SCRIPT_TEMPLATE ["singularity_setup" ])
94- )
95- server_script .append (
96- "\n " .join (SLURM_SCRIPT_TEMPLATE ["env_vars" ])
97- )
92+ server_script .append ("\n " .join (SLURM_SCRIPT_TEMPLATE ["singularity_setup" ]))
93+ server_script .append ("\n " .join (SLURM_SCRIPT_TEMPLATE ["env_vars" ]))
9894 server_script .append (
9995 SLURM_SCRIPT_TEMPLATE ["imports" ].format (src_dir = self .params ["src_dir" ])
10096 )
Original file line number Diff line number Diff line change @@ -109,7 +109,8 @@ class ModelConfig(BaseModel):
109109 default = cast (str , DEFAULT_ARGS ["partition" ]), description = "GPU partition type"
110110 )
111111 exclude : Optional [str ] = Field (
112- default = None , description = "Exclude certain nodes from the resources granted to the job"
112+ default = None ,
113+ description = "Exclude certain nodes from the resources granted to the job" ,
113114 )
114115 node_list : Optional [str ] = Field (
115116 default = None , description = "Request a specific list of nodes for deployment"
You can’t perform that action at this time.
0 commit comments