Skip to content

Commit

Permalink
merege
Browse files Browse the repository at this point in the history
Merge branch 'master' of https://github.com/probml/pyprobml
  • Loading branch information
murphyk committed Jun 12, 2024
2 parents 73977f5 + cc2856e commit 96a7bae
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,33 @@ 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"
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.


## 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/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;
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
Expand Down

0 comments on commit 96a7bae

Please sign in to comment.