Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ jobs:
cp -u _build/jupyter/*.ipynb _build/html/_notebooks
- name: Upload Execution Reports (Download Notebooks)
uses: actions/upload-artifact@v4
Comment thread
mmcky marked this conversation as resolved.
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
22 changes: 12 additions & 10 deletions lectures/back_prop.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ kernelspec:
```{include} _admonition/gpu.md
```

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

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

!pip install -U kaleido plotly
!conda install -y -c plotly plotly-orca
Comment thread
mmcky marked this conversation as resolved.
```

We also need to install JAX to run this lecture

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

Expand All @@ -28,15 +39,6 @@ import jax
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
```

```{note}
If you are running this on Google Colab the above cell will
present an error. This is because Google Colab doesn't use Anaconda to manage
Expand Down Expand Up @@ -521,7 +523,7 @@ predictions = vmap(compute_xδw_seq, in_axes=(None, 0))(params_ex1, grid)[0][:,

```{code-cell} ipython3
fig = go.Figure()
fig.add_trace(go.Scatter(x=grid, y=f_val, name=r'$-3x+2$'))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HumphreyYang the failure in back_prop in the pdf builder could be due to the removal of these $ signs?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will run locally to check and confirm.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mmcky,

I removed them because of the error but it doesn't seem to be working : (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HumphreyYang I think the error was due to big changes in plotly and Kaleido versions. It also seems to have been re-written around chrome.

fig.add_trace(go.Scatter(x=grid, y=f_val, name=r'-3x+2'))
fig.add_trace(go.Scatter(x=grid, y=predictions, name='Approximation'))

# Export to PNG file
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