File tree Expand file tree Collapse file tree 5 files changed +21
-83
lines changed Expand file tree Collapse file tree 5 files changed +21
-83
lines changed Original file line number Diff line number Diff line change 4
4
branches :
5
5
- main
6
6
jobs :
7
- deploy-runner :
8
- runs-on : ubuntu-latest
9
- steps :
10
- - uses : iterative/setup-cml@v2
11
- - uses : actions/checkout@v4
12
- with :
13
- ref : ${{ github.event.pull_request.head.sha }}
14
- - name : Deploy runner on EC2
15
- env :
16
- REPO_TOKEN : ${{ secrets.QUANTECON_SERVICES_PAT }}
17
- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
18
- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
19
- run : |
20
- cml runner launch \
21
- --cloud=aws \
22
- --cloud-region=us-west-2 \
23
- --cloud-type=p3.2xlarge \
24
- --labels=cml-gpu \
25
- --cloud-hdd-size=40
26
7
cache :
27
- needs : deploy-runner
28
- runs-on : [self-hosted, cml-gpu]
8
+ runs-on : ubuntu-latest-gpu
29
9
container :
30
- image : docker://mmcky/ quantecon- lecture-python:cuda-12.3.1 -anaconda-2024-02-py311
10
+ image : ghcr.io/ quantecon/ lecture-python-container :cuda-12.5.0 -anaconda-2024-02-py311
31
11
options : --gpus all
32
12
steps :
33
13
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1
- name : Build Project [using jupyter-book]
1
+ name : Build Preview [using jupyter-book]
2
2
on : [pull_request]
3
3
jobs :
4
- deploy-runner :
5
- runs-on : ubuntu-latest
6
- steps :
7
- - uses : iterative/setup-cml@v2
8
- - uses : actions/checkout@v4
9
- with :
10
- ref : ${{ github.event.pull_request.head.sha }}
11
- - name : Deploy runner on EC2
12
- env :
13
- REPO_TOKEN : ${{ secrets.QUANTECON_SERVICES_PAT }}
14
- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
15
- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
16
- run : |
17
- cml runner launch \
18
- --cloud=aws \
19
- --cloud-region=us-west-2 \
20
- --cloud-type=p3.2xlarge \
21
- --labels=cml-gpu \
22
- --cloud-hdd-size=40
23
4
preview :
24
- needs : deploy-runner
25
- runs-on : [self-hosted, cml-gpu]
5
+ runs-on : ubuntu-latest-gpu
26
6
container :
27
- image : docker://mmcky/ quantecon- lecture-python:cuda-12.3.1 -anaconda-2024-02-py311
7
+ image : ghcr.io/ quantecon/ lecture-python-container :cuda-12.5.0 -anaconda-2024-02-py311
28
8
options : --gpus all
29
9
steps :
30
10
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 4
4
tags :
5
5
- ' publish*'
6
6
jobs :
7
- deploy-runner :
8
- runs-on : ubuntu-latest
9
- steps :
10
- - uses : iterative/setup-cml@v2
11
- - uses : actions/checkout@v4
12
- with :
13
- ref : ${{ github.event.pull_request.head.sha }}
14
- - name : Deploy runner on EC2
15
- env :
16
- REPO_TOKEN : ${{ secrets.QUANTECON_SERVICES_PAT }}
17
- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
18
- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
19
- run : |
20
- cml runner launch \
21
- --cloud=aws \
22
- --cloud-region=us-west-2 \
23
- --cloud-type=p3.2xlarge \
24
- --labels=cml-gpu \
25
- --cloud-hdd-size=40
26
7
publish :
27
8
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
28
- needs : deploy-runner
29
- runs-on : [self-hosted, cml-gpu]
9
+ runs-on : ubuntu-latest-gpu
30
10
container :
31
- image : docker://mmcky/ quantecon- lecture-python:cuda-12.3.1 -anaconda-2024-02-py311
11
+ image : ghcr.io/ quantecon/ lecture-python-container :cuda-12.5.0 -anaconda-2024-02-py311
32
12
options : --gpus all
33
13
steps :
34
14
- name : Checkout
46
26
run : pip list
47
27
# Download Build Cache from cache.yml
48
28
- name : Download "build" folder (cache)
49
- uses : dawidd6/action-download-artifact@v2
29
+ uses : dawidd6/action-download-artifact@v3
50
30
with :
51
31
workflow : cache.yml
52
32
branch : main
Original file line number Diff line number Diff line change 1
- name : lecture-jax
1
+ name : quantecon
2
2
channels :
3
3
- default
4
4
dependencies :
5
5
- python=3.11
6
- - anaconda=2023.09
6
+ - anaconda=2024.02
7
7
- pip
8
8
- pip :
9
9
- jupyter-book==0.15.1
10
- - docutils==0.17.1
11
10
- quantecon-book-theme==0.7.1
12
11
- sphinx-tojupyter==0.3.0
13
12
- sphinxext-rediraffe==0.2.7
13
+ - sphinx-reredirects==0.1.3
14
14
- sphinx-exercise==0.4.1
15
15
- ghp-import==1.1.0
16
16
- sphinxcontrib-youtube==1.1.0
17
17
- sphinx-togglebutton==0.3.1
18
- - arviz==0.13.0
18
+ - array-to-latex
19
+ - prettytable
19
20
- kaleido
20
- # Sandpit Requirements
21
- # - quantecon
22
- # - array-to-latex
23
- # - PuLP
24
- # - cvxpy
25
- # - cvxopt
26
- # - cylp
27
- # - prettytable
21
+ - arviz
22
+ # Docker Requirements
23
+ - pytz
24
+ # Docutils Issue (https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/322)
25
+ - docutils==0.17.1
26
+
Original file line number Diff line number Diff line change @@ -18,9 +18,8 @@ This table contains the latest execution statistics.
18
18
19
19
(status: machine-details )=
20
20
21
- These lectures are built on ` linux ` instances through ` github actions ` and ` amazon web services (aws) ` to
22
- enable access to a ` gpu ` . These lectures are built on a [ p3.2xlarge] ( https://aws.amazon.com/ec2/instance-types/p3/ )
23
- that has access to ` 8 vcpu's ` , a ` V100 NVIDIA Tesla GPU ` , and ` 61 Gb ` of memory.
21
+ These lectures are built on ` linux ` instances through ` github actions ` that has
22
+ access to a ` gpu ` . These lectures make use of the nvidia ` T4 ` card.
24
23
25
24
You can check the backend used by JAX using:
26
25
You can’t perform that action at this time.
0 commit comments