-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1 KB
/
Copy pathtest.yml
File metadata and controls
42 lines (33 loc) · 1 KB
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
32
33
34
35
36
37
38
39
40
41
42
name: Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install QEMU and dependencies
run: |
sudo apt-get update
sudo apt-get install -y qemu-system-x86 qemu-utils dosfstools expect
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Download 9front image
run: ./qemu/install-9front.sh
- name: Download model weights
run: |
curl -L -o stories15M.bin \
"https://huggingface.co/karpathy/tinyllamas/resolve/main/stories15M.bin"
curl -L -o tokenizer.bin \
"https://github.com/karpathy/llama2.c/raw/master/tokenizer.bin"
- name: Create shared disk
run: ./qemu/create-shared.sh
- name: Run tests
run: python3 tests/run_tests.py