From 213e10bbafd1539d8cd3202e9f6b66dc5785d3da Mon Sep 17 00:00:00 2001 From: Kevin P Murphy Date: Wed, 12 Jun 2024 12:59:00 -0700 Subject: [PATCH 1/2] Update README.md --- README.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5cc20df66f..8d2b87dc9f 100644 --- a/README.md +++ b/README.md @@ -62,20 +62,29 @@ pip install -r requirements.txt * Option 3 -Run +Run the following. (Note the `--depth 1` prevents installing the whole history, which is very large). ``` git clone --depth 1 https://github.com/probml/pyprobml.git ``` Then install manually. -## GCP, TPUs, and all that +If you want to save the figures, you first need to execute something like this +``` +export FIG_DIR="/teamspace/studios/this_studio/figures" +``` +This is used by the [savefig](https://github.com/probml/probml-utils/blob/main/probml_utils/plotting.py#L78) function +to store pdf files. + + +## Cloud computing When you want more power or control than colab gives you, -you should get a Google Cloud Platform (GCP) account -(or you can use some other cloud provider, like Paperspace) -to get a virtual machine with GPUs or TPUs. -You can then use this as a virtual desktop which you can access via ssh from inside VScode. -We have created [a short tutorial on Colab, GCP and TPUs](https://github.com/probml/pyprobml/blob/master/notebooks/tutorials/colab_gcp_tpu_tutorial.md) with more information. +I recommend you use +https://lightning.ai/studios, +which makes it very easy to develop using VScode, running on a VM accessed from your web browser; +you can then launch on one or more GPUs when needed with a single button click. +Alternatively, if you are a power user, you can try Google Cloud Platform, which supports GPUs and TPUs; +see this [short tutorial on Colab, GCP and TPUs](https://github.com/probml/pyprobml/blob/master/notebooks/tutorials/colab_gcp_tpu_tutorial.md). ## How to contribute From cc2856e06dce25397028f874a801ee2ebc420435 Mon Sep 17 00:00:00 2001 From: Kevin P Murphy Date: Wed, 12 Jun 2024 13:49:59 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8d2b87dc9f..bcd2f6f37c 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,11 @@ Then install manually. If you want to save the figures, you first need to execute something like this ``` -export FIG_DIR="/teamspace/studios/this_studio/figures" +#export FIG_DIR="/teamspace/studios/this_studio/figures" + +import os +os.environ["FIG_DIR"] = "/teamspace/studios/this_studio/pyprobml/notebooks/figures" +os.environ["DUAL_SAVE"] = "1" # both pdf and png ``` This is used by the [savefig](https://github.com/probml/probml-utils/blob/main/probml_utils/plotting.py#L78) function to store pdf files. @@ -80,7 +84,7 @@ to store pdf files. When you want more power or control than colab gives you, I recommend you use -https://lightning.ai/studios, +https://lightning.ai/docs/overview/studios, which makes it very easy to develop using VScode, running on a VM accessed from your web browser; you can then launch on one or more GPUs when needed with a single button click. Alternatively, if you are a power user, you can try Google Cloud Platform, which supports GPUs and TPUs;