Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
uses: actions/upload-artifact@v4
if: failure()
with:
name: execution-reports
name: execution-reports-notebooks
path: _build/jupyter/reports
- name: Build PDF from LaTeX
shell: bash -l {0}
Expand Down
1 change: 1 addition & 0 deletions lectures/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ sphinx:
# false-positive links
linkcheck_ignore: ['https://online.stat.psu.edu/stat415/book/export/html/834']
bibtex_reference_style: author_year
suppress_warnings: ["mystnb.unknown_mime_type"]
nb_mime_priority_overrides: [
# HTML
['html', 'application/vnd.jupyter.widget-view+json', 10],
Expand Down
33 changes: 19 additions & 14 deletions lectures/back_prop.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,17 @@ kernelspec:
```{include} _admonition/gpu.md
```

```{code-cell} ipython3
:tags: [skip-execution]

!pip install --upgrade jax
```

```{code-cell} ipython3
import jax
## to check that gpu is activated in environment
print(f"JAX backend: {jax.devices()[0].platform}")
```

In addition to what's included in base Anaconda, we need to install the following packages

```{code-cell} ipython3
:tags: [hide-output]

!pip install kaleido
!conda install -y -c plotly plotly plotly-orca retrying
!pip install -U kaleido plotly
!conda install -y -c plotly plotly-orca

# kaleido needs chrome to build images
import kaleido
kaleido.get_chrome_sync()
```

```{note}
Expand All @@ -44,6 +36,19 @@ the Python packages. However this lecture will still execute as Google Colab
has `plotly` installed.
```

We also need to install JAX to run this lecture

```{code-cell} ipython3
:tags: [skip-execution]

!pip install --upgrade jax
```

```{code-cell} ipython3
import jax
print(f"JAX backend: {jax.devices()[0].platform}") # to check that gpu is activated in environment
```

## Overview

Substantial parts of **machine learning** and **artificial intelligence** are about
Expand Down
12 changes: 6 additions & 6 deletions lectures/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ and the following package versions
!conda list
```

This lecture series has access to the following GPU

```{code-cell} ipython
!nvidia-smi
```

You can check the backend used by JAX using:

```{code-cell} ipython3
import jax
# Check if JAX is using GPU
print(f"JAX backend: {jax.devices()[0].platform}")
```

and this lecture series also has access to the following GPU

```{code-cell} ipython
!nvidia-smi
```
Loading