Skip to content

Commit

Permalink
Pass credential variables and make account optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mailach committed Nov 8, 2022
1 parent 5980504 commit 64b4904
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mlflow_slurm/templates/sbatch_template.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash
#SBATCH --job-name=MLFlow{{ run_id }}
#SBATCH --partition={{ config.partition }}
{% if config.account %}
#SBATCH --account={{ config.account }}
#SBATCH --export=MLFLOW_TRACKING_URI,MLFLOW_S3_ENDPOINT_URL,AWS_SECRET_ACCESS_KEY,AWS_ACCESS_KEY_ID
{% endif %}
#SBATCH --export=MLFLOW_TRACKING_URI,MLFLOW_TRACKING_USERNAME,MLFLOW_TRACKING_PASSWORD,MLFLOW_S3_ENDPOINT_URL,AWS_SECRET_ACCESS_KEY,AWS_ACCESS_KEY_ID
{% if config.gpus_per_node %}
#SBATCH --gpus-per-node={{ config.gpus_per_node }}
{% endif %}
Expand Down

0 comments on commit 64b4904

Please sign in to comment.