Skip to content

Commit

Permalink
Merge pull request #2 from mailach/main
Browse files Browse the repository at this point in the history
Change sbatch template to pass mlflow credential variables and make account information optional
  • Loading branch information
BenGalewsky authored Nov 28, 2022
2 parents 5980504 + 64b4904 commit b19eddf
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 b19eddf

Please sign in to comment.