Skip to content

Commit 4e54dfe

Browse files
[Tests/LoRA/PEFT] Test also on PEFT / transformers / accelerate latest (huggingface#5820)
* add also peft latest on peft CI * up * up * up * Update .github/workflows/pr_test_peft_backend.yml --------- Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
1 parent 6f14353 commit 4e54dfe

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

.github/workflows/pr_test_peft_backend.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,15 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
config:
24-
- name: LoRA
25-
framework: lora
26-
runner: docker-cpu
27-
image: diffusers/diffusers-pytorch-cpu
28-
report: torch_cpu_lora
23+
lib-versions: ["main", "latest"]
2924

3025

31-
name: ${{ matrix.config.name }}
26+
name: LoRA - ${{ matrix.lib-versions }}
3227

33-
runs-on: ${{ matrix.config.runner }}
28+
runs-on: docker-cpu
3429

3530
container:
36-
image: ${{ matrix.config.image }}
31+
image: diffusers/diffusers-pytorch-cpu
3732
options: --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/
3833

3934
defaults:
@@ -50,16 +45,19 @@ jobs:
5045
run: |
5146
apt-get update && apt-get install libsndfile1-dev libgl1 -y
5247
python -m pip install -e .[quality,test]
53-
python -m pip install git+https://github.com/huggingface/accelerate.git
54-
python -m pip install -U git+https://github.com/huggingface/transformers.git
55-
python -m pip install -U git+https://github.com/huggingface/peft.git
48+
if [ "${{ matrix.lib-version }}" == "main" ]; then
49+
python -m pip install -U git+https://github.com/huggingface/peft.git
50+
python -m pip install -U git+https://github.com/huggingface/transformers.git
51+
python -m pip install -U git+https://github.com/huggingface/accelerate.git
52+
else
53+
python -m pip install -U peft transformers accelerate
54+
fi
5655
5756
- name: Environment
5857
run: |
5958
python utils/print_env.py
6059
6160
- name: Run fast PyTorch LoRA CPU tests with PEFT backend
62-
if: ${{ matrix.config.framework == 'lora' }}
6361
run: |
6462
python -m pytest -n 2 --max-worker-restart=0 --dist=loadfile \
6563
-s -v \

0 commit comments

Comments
 (0)