forked from karpathy/nanoGPT
-
Notifications
You must be signed in to change notification settings - Fork 17
32 lines (31 loc) · 1.25 KB
/
cpu-test-run-exp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Install Then Test Run Experiments script
on: [push, pull_request]
jobs:
Install-And-Test-Run-Exp:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "${{ github.repository }} repository has been cloned to the runner."
- run: echo "Currently on ${{ github.ref }} branch"
- name: ls of directory
run: |
ls ${{ github.workspace }}
# Caching pip dependencies
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_cpu.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install CPU Dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
python3 -m pip install numpy transformers datasets tiktoken wandb tqdm tensorboard
python3 -m pip install -r requirements_cpu.txt
- name: Test all softmax variations
run: |
python3 data/shakespeare_char/prepare.py
python3 run_experiments.py --config explorations/config_cpu.json