Skip to content

Commit

Permalink
Fix pytorch env path (#55)
Browse files Browse the repository at this point in the history
* Fix path

* Update

---------

Co-authored-by: Matteo Bunino <[email protected]>
  • Loading branch information
matbun and Matteo Bunino authored Aug 17, 2023
1 parent f0e407b commit ccb5cf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions use-cases/mnist/mnist-ai-train.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ train:

# Lightning Trainer configuration
trainer:
# Set to "cpu" when using pytorch "cpuonly" package
accelerator: auto
strategy: auto
devices: auto
Expand Down
6 changes: 3 additions & 3 deletions use-cases/mnist/training-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ steps:
doc: Run MLFlow server on localhost
command: python ${root}/mlflow-server.py
env:
file: ${ai-root}/env-files/pytorch-lock.yml
file: ${ai-root}/env-files/pytorch-gpu-lock.yml
prefix: ${ai-root}/.venv-pytorch
source: ${ai-root}
args:
Expand All @@ -30,7 +30,7 @@ steps:
doc: Train a neural network to classify MNIST images
command: itwinai train
env:
file: ${ai-root}/env-files/pytorch-env-gpu.yml
file: ${ai-root}/env-files/pytorch-gpu-lock.yml
prefix: ${ai-root}/.venv-pytorch
source: ${ai-root}
args:
Expand All @@ -41,7 +41,7 @@ steps:
doc: Stop MLFlow server on localhost, if running
command: python ${root}/mlflow-server.py
env:
file: ${ai-root}/env-files/pytorch-lock.yml
file: ${ai-root}/env-files/pytorch-gpu-lock.yml
prefix: ${ai-root}/.venv-pytorch
source: ${ai-root}
args:
Expand Down

0 comments on commit ccb5cf8

Please sign in to comment.