Skip to content

Commit 116801e

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

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

vec_inf/cli/_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def format_table_output(self) -> Table:
7676
table.add_row("Memory/Node", self.params["mem_per_node"])
7777

7878
# Add job config details
79+
table.add_row("Virtual Environment", self.params["venv"])
7980
table.add_row(
8081
"Model Weights Directory",
8182
str(Path(self.params["model_weights_parent_dir"], self.model_name)),

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)