-
Notifications
You must be signed in to change notification settings - Fork 216
46 lines (39 loc) · 1.44 KB
/
unit_tests.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Unit Tests
on: [push, pull_request]
concurrency:
# run only one unit test for a branch / tag.
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python dependencies
run: |
# change to a single installation bash.
pip install black
pip install --upgrade pip # enable PEP 660 support
wget https://github.com/Dao-AILab/flash-attention/releases/download/v2.4.2/flash_attn-2.4.2+cu118torch2.0cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
pip install flash_attn-2.4.2+cu118torch2.0cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
pip install -e .
pip install -e ".[train]"
pip install pytorchvideo
pip install decord
pip install datasets
pip install scikit-learn
pip install openai
pip install git+https://github.com/huggingface/[email protected]
export PPATH=$(python -c 'import site; print(site.getsitepackages()[0])')
cp -rv ./llava/train/transformers_replace/* $PPATH/transformers/models/
- name: Run tests
run: |
#TODO(ligeng): switch to pytest
for f in tests/*.py; do
python $f
done