Skip to content

Commit 39b96d3

Browse files
committed
Simplify GPU admonition and add to all JAX lectures
- Simplify _admonition/gpu.md text (more concise messaging) - Add GPU admonition include to 17 JAX lectures that were missing it JAX lectures now with GPU admonition (21 total): - aiyagari.md, ak_aiyagari.md, ar1_bayes.md, back_prop.md - bayes_nonconj.md, endogenous_lake.md, ifp_advanced.md - ifp_discrete.md, ifp_egm.md, ifp_egm_transient_shocks.md - ifp_opi.md, lake_model.md, mccall_fitted_vfi.md - mccall_model.md, mccall_model_with_sep_markov.md - mccall_model_with_separation.md, mccall_persist_trans.md - mix_model.md, mle.md, newton_method.md, os_egm_jax.md
1 parent 1e2d0d3 commit 39b96d3

18 files changed

+51
-4
lines changed

lectures/_admonition/gpu.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
```{admonition} GPU
22
:class: warning
33
4-
This lecture was built using a machine with the latest CUDA and CUDANN frameworks installed with access to a GPU.
4+
This lecture is designed to run on a GPU. To use Google Colab's free GPUs, click the play icon top right, select Colab, and set the runtime to include a GPU.
55
6-
To run this lecture on [Google Colab](https://colab.research.google.com/), click on the "play" icon top right, select Colab, and set the runtime environment to include a GPU.
7-
8-
To run this lecture on your own machine, you need to install the software listed following this notice.
6+
For local GPU setup, see the [JAX installation guide](https://github.com/google/jax).
97
```

lectures/aiyagari.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ kernelspec:
2222

2323
# The Aiyagari Model
2424

25+
```{include} _admonition/gpu.md
26+
```
27+
2528
```{contents} Contents
2629
:depth: 2
2730
```

lectures/ak_aiyagari.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ kernelspec:
1414

1515
# A Long-Lived, Heterogeneous Agent, Overlapping Generations Model
1616

17+
```{include} _admonition/gpu.md
18+
```
19+
1720
In addition to what's in Anaconda, this lecture will need the following library
1821

1922
```{code-cell} ipython3

lectures/endogenous_lake.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ kernelspec:
2222

2323
# Lake Model with an Endogenous Job Finding Rate
2424

25+
```{include} _admonition/gpu.md
26+
```
27+
2528
```{index} single: Lake Model, Endogenous
2629
```
2730

lectures/ifp_advanced.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ kernelspec:
1919

2020
# {index}`The Income Fluctuation Problem V: Stochastic Returns on Assets <single: The Income Fluctuation Problem V: Stochastic Returns on Assets>`
2121

22+
```{include} _admonition/gpu.md
23+
```
24+
2225
```{contents} Contents
2326
:depth: 2
2427
```

lectures/ifp_discrete.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ kernelspec:
1313

1414
# The Income Fluctuation Problem I: Discretization and VFI
1515

16+
```{include} _admonition/gpu.md
17+
```
1618

1719
## Overview
1820

lectures/ifp_egm.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ kernelspec:
2121

2222
# {index}`The Income Fluctuation Problem III: The Endogenous Grid Method <single: The Income Fluctuation Problem III: The Endogenous Grid Method>`
2323

24+
```{include} _admonition/gpu.md
25+
```
26+
2427
```{contents} Contents
2528
:depth: 2
2629
```

lectures/ifp_egm_transient_shocks.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ kernelspec:
2121

2222
# {index}`The Income Fluctuation Problem IV: Transient Income Shocks <single: The Income Fluctuation Problem IV: Transient Income Shocks>`
2323

24+
```{include} _admonition/gpu.md
25+
```
26+
2427
```{contents} Contents
2528
:depth: 2
2629
```

lectures/ifp_opi.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ kernelspec:
1313

1414
# The Income Fluctuation Problem II: Optimistic Policy Iteration
1515

16+
```{include} _admonition/gpu.md
17+
```
1618

1719
## Overview
1820

lectures/lake_model.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ kernelspec:
2222

2323
# A Lake Model of Employment and Unemployment
2424

25+
```{include} _admonition/gpu.md
26+
```
27+
2528
```{index} single: Lake Model
2629
```
2730

0 commit comments

Comments
 (0)