@@ -17,13 +17,14 @@ jobs:
1717 cml runner launch \
1818 --cloud=aws \
1919 --cloud-region=us-west-2 \
20- --cloud-type=p2.xlarge \
21- --labels=cml-gpu
20+ --cloud-type=p3.2xlarge \
21+ --labels=cml-gpu \
22+ --cloud-hdd-size=40
2223 preview :
2324 needs : deploy-runner
2425 runs-on : [self-hosted, cml-gpu]
2526 container :
26- image : docker://iterativeai/cml:latest-gpu
27+ image : docker://nvidia/cuda:11.2.1-devel-ubuntu20.04
2728 options : --gpus all
2829 steps :
2930 - uses : actions/checkout@v3
@@ -38,10 +39,18 @@ jobs:
3839 python-version : 3.9
3940 environment-file : environment.yml
4041 activate-environment : quantecon
42+ - name : Install Jax and Upgrade CUDA
43+ shell : bash -l {0}
44+ run : |
45+ pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
46+ nvidia-smi
4147 - name : Install latex dependencies
48+ shell : bash -l {0}
4249 run : |
43- sudo apt-get -qq update
44- sudo apt-get install -y \
50+ apt-get -qq update
51+ export DEBIAN_FRONTEND=noninteractive
52+ apt-get install -y tzdata
53+ apt-get install -y \
4554 texlive-latex-recommended \
4655 texlive-latex-extra \
4756 texlive-fonts-recommended \
8089 shell : bash -l {0}
8190 run : |
8291 jb build lectures --path-output ./ -n -W --keep-going
92+ - name : Upload Execution Reports
93+ uses : actions/upload-artifact@v2
94+ if : failure()
95+ with :
96+ name : execution-reports
97+ path : _build/html/reports
8398 - name : Preview Deploy to Netlify
8499 uses : nwtgck/actions-netlify@v1.1
85100 with :
0 commit comments