You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update jax box at top of lecture, update CUDA to 11.8 (#319)
* Fix jax upgrade with GPU
* check using cuda
* try cudnn82
* revert back to default
* check cudnn installation status
* try docker/cuda=11.8
* remove failing cmd
* set jax==0.4.2
* adjust pip install and moved the jax[cpu] into the gpu warning box
---------
Co-authored-by: Humphrey Yang <u6474961@anu.edu.au>
Co-authored-by: mmcky <mamckay@gmail.com>
Copy file name to clipboardExpand all lines: lectures/kesten_processes.md
+13-16Lines changed: 13 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,14 @@ kernelspec:
19
19
20
20
# Kesten Processes and Firm Dynamics
21
21
22
-
```{admonition} GPU in use
22
+
```{admonition} GPU
23
23
:class: warning
24
24
25
-
This lecture is accelerated via [hardware](status:machine-details) that has access to a GPU and JAX for GPU programming.
25
+
This lecture is accelerated via [hardware](status:machine-details) that has access to a GPU and JAX for GPU programming.
26
26
27
27
Free GPUs are available on Google Colab. To use this option, please click on the play icon top right, select Colab, and set the runtime environment to include a GPU.
28
28
29
-
Alternatively, if you have your own GPU, you can follow the [instructions](https://github.com/google/jax) for installing JAX with GPU support.
29
+
Alternatively, if you have your own GPU, you can follow the [instructions](https://github.com/google/jax) for installing JAX with GPU support. If you would like to install jax running on the `cpu` only you can use `pip install jax[cpu]`
30
30
```
31
31
32
32
```{index} single: Linear State Space Models
@@ -44,9 +44,6 @@ tags: [hide-output]
44
44
---
45
45
!pip install quantecon
46
46
!pip install --upgrade yfinance
47
-
# If your machine has CUDA support, please follow the guide in GPU Warning.
48
-
# Otherwise, run the line below:
49
-
!pip install --upgrade "jax[CPU]"
50
47
```
51
48
52
49
## Overview
@@ -686,7 +683,7 @@ s_init = 1.0 # initial condition for each firm
686
683
:class: dropdown
687
684
```
688
685
689
-
Here's one solution in [JAX](https://python-programming.quantecon.org/jax_intro.html).
686
+
Here's one solution in [JAX](https://python-programming.quantecon.org/jax_intro.html).
690
687
691
688
First let's import the necessary modules and check the backend for JAX
The plot produces a straight line, consistent with a Pareto tail.
763
760
764
-
It is possible to further speed up our code by replacing the `for` loop with [`lax.scan`](https://jax.readthedocs.io/en/latest/_autosummary/jax.lax.scan.html)
761
+
It is possible to further speed up our code by replacing the `for` loop with [`lax.scan`](https://jax.readthedocs.io/en/latest/_autosummary/jax.lax.scan.html)
765
762
to reduce the loop overhead in the compilation of the jitted function
Copy file name to clipboardExpand all lines: lectures/wealth_dynamics.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,14 @@ kernelspec:
19
19
20
20
# Wealth Distribution Dynamics
21
21
22
-
```{admonition} GPU in use
22
+
```{admonition} GPU
23
23
:class: warning
24
24
25
25
This lecture is accelerated via [hardware](status:machine-details) that has access to a GPU and JAX for GPU programming.
26
26
27
27
Free GPUs are available on Google Colab. To use this option, please click on the play icon top right, select Colab, and set the runtime environment to include a GPU.
28
28
29
-
Alternatively, if you have your own GPU, you can follow the [instructions](https://github.com/google/jax#pip-installation-gpu-cuda) for installing JAX with GPU support.
29
+
Alternatively, if you have your own GPU, you can follow the [instructions](https://github.com/google/jax) for installing JAX with GPU support. If you would like to install jax running on the `cpu` only you can use `pip install jax[cpu]`
30
30
```
31
31
32
32
```{contents} Contents
@@ -40,9 +40,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
40
40
tags: [hide-output]
41
41
---
42
42
!pip install quantecon
43
-
# If your machine has CUDA support, please follow the guide in GPU Warning.
0 commit comments