Skip to content

Commit

Permalink
Merge pull request #143 from pnnl/develop
Browse files Browse the repository at this point in the history
hotfix -- toml
  • Loading branch information
RBirmiwal authored Apr 10, 2024
2 parents 51f88cb + e054d81 commit 77aa81f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"\n",
"This notebook also describes how to use **multi-GPU** distributed training.\n",
"\n",
"*For performance reasons, we only demonstrate single-GPU training. For a multi-GPU training example please refer to Part 6_lightning_multi_gpu.py*"
"*For performance reasons, we only demonstrate single-GPU training. For a multi-GPU training example please refer to Part 6_lightning_multi_gpu.py*\n",
"\n",
"**When running on Colab**: Please ensure your runtime has a GPU. Note that if using a single GPU runtime then the distributed GPU training example at the bottom of this notebook cannot be run"
]
},
{
Expand Down Expand Up @@ -276,11 +278,11 @@
],
"source": [
"# train with single GPU \n",
"lit_trainer = LitTrainer(epochs=200, accelerator='gpu', strategy='auto', devices=[1], custom_optimizer=optimizer)\n",
"lit_trainer = LitTrainer(epochs=200, accelerator='gpu', strategy='auto', devices=[0], custom_optimizer=optimizer)\n",
"lit_trainer.fit(problem, data_setup_function)\n",
"\n",
"# train with two GPU. \n",
"lit_trainer = LitTrainer(epochs=200, accelerator='gpu', strategy='ddp_notebook', devices=[1,2], custom_optimizer=optimizer)\n",
"lit_trainer = LitTrainer(epochs=200, accelerator='gpu', strategy='ddp_notebook', devices=[0,1], custom_optimizer=optimizer)\n",
"lit_trainer.fit(problem, data_setup_function)\n"
]
},
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ dependencies = [
"lightning",
"cvxpy",
"cvxpylayers",
"casadi"
"casadi",
"wandb"
]

version = "1.5.0"
Expand All @@ -72,4 +73,4 @@ where = ["src"]
[project.optional-dependencies]
tests = ["pytest", "hypothesis"]
examples = ["casadi", "cvxpy", "imageio", "cvxpylayers"]
docs = ["sphinx", "sphinx-rtd-theme"]
docs = ["sphinx", "sphinx-rtd-theme"]

0 comments on commit 77aa81f

Please sign in to comment.