We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 796a6c3 commit c575753Copy full SHA for c575753
vec_inf/client/_helper.py
@@ -31,6 +31,7 @@
31
BatchSlurmScriptGenerator,
32
SlurmScriptGenerator,
33
)
34
+from vec_inf.client._slurm_vars import CONTAINER_MODULE_NAME, IMAGE_PATH
35
from vec_inf.client.config import ModelConfig
36
from vec_inf.client.models import (
37
BatchLaunchResponse,
@@ -332,6 +333,10 @@ def launch(self) -> LaunchResponse:
332
333
job_log_dir / f"{self.model_name}.{self.slurm_job_id}.sbatch"
334
335
336
+ # Replace venv with image path if using container
337
+ if self.params["venv"] == CONTAINER_MODULE_NAME:
338
+ self.params["venv"] = IMAGE_PATH
339
+
340
with job_json.open("w") as file:
341
json.dump(self.params, file, indent=4)
342
0 commit comments