-
Notifications
You must be signed in to change notification settings - Fork 646
Expand file tree
/
Copy pathtest_fx_automatic_parallelism.yml
More file actions
59 lines (49 loc) · 1.28 KB
/
test_fx_automatic_parallelism.yml
File metadata and controls
59 lines (49 loc) · 1.28 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: FX Automatic Parallelism on GPU / Python - Test
on:
workflow_dispatch:
# TODO: Uncomment when fixed
# push:
# branches:
# - main
# paths:
# - 'optimum/fx/parallelization/**.py'
# pull_request:
# branches:
# - main
# paths:
# - 'optimum/fx/parallelization/**.py'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
TRANSFORMERS_IS_CI: true
jobs:
run_gpu_tests:
runs-on:
group: aws-g5-12xlarge-plus
container:
image: nvidia/cuda:12.4.1-devel-ubuntu22.04
options: --mount type=tmpfs,destination=/tmp --shm-size 64gb --gpus all --ipc host -v /mnt/hf_cache:/mnt/cache/
env:
NCCL_DEBUG: INFO
defaults:
run:
shell: bash
steps:
- name: Checkout optimum
uses: actions/checkout@v6
with:
fetch-depth: 1
- uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Run nvidia-smi
run: |
nvidia-smi
- name: Install dependencies
run: |
pip install -U pip
pip install .[tests]
- name: Run automatic model parallelism tests
run: |
pytest tests/fx/parallelization -s -v -o log_cli=true