Skip to content

Commit c575753

Browse files
committed
Print venv in launch
1 parent 796a6c3 commit c575753

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vec_inf/client/_helper.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
BatchSlurmScriptGenerator,
3232
SlurmScriptGenerator,
3333
)
34+
from vec_inf.client._slurm_vars import CONTAINER_MODULE_NAME, IMAGE_PATH
3435
from vec_inf.client.config import ModelConfig
3536
from vec_inf.client.models import (
3637
BatchLaunchResponse,
@@ -332,6 +333,10 @@ def launch(self) -> LaunchResponse:
332333
job_log_dir / f"{self.model_name}.{self.slurm_job_id}.sbatch"
333334
)
334335

336+
# Replace venv with image path if using container
337+
if self.params["venv"] == CONTAINER_MODULE_NAME:
338+
self.params["venv"] = IMAGE_PATH
339+
335340
with job_json.open("w") as file:
336341
json.dump(self.params, file, indent=4)
337342

0 commit comments

Comments
 (0)