| 1 |
name: Gaudi3 tests (scheduled) |
| 2 |
|
| 3 |
on: |
| 4 |
workflow_dispatch: |
| 5 |
schedule: # every day at 6 AM UTC |
| 6 |
- cron: "0 6 * * *" |
| 7 |
|
| 8 |
concurrency: |
| 9 |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
| 10 |
cancel-in-progress: true |
| 11 |
|
| 12 |
jobs: |
| 13 |
run-gaudi3-tests: |
| 14 |
runs-on: |
| 15 |
group: itac-bm-emr-gaudi3-dell-2gaudi |
| 16 |
|
| 17 |
container: |
| 18 |
image: docker://vault.habana.ai/gaudi-docker/1.21.1/ubuntu22.04/habanalabs/pytorch-installer-2.6.0:latest |
| 19 |
options: --runtime=habana --shm-size=64G --cap-add=sys_nice --env HABANA_VISIBLE_DEVICES |
| 20 |
env: |
| 21 |
OMPI_MCA_btl_vader_single_copy_mechanism: none |
| 22 |
PT_ENABLE_INT64_SUPPORT: 1 |
| 23 |
PT_HPU_LAZY_MODE: 0 |
| 24 |
RUN_SLOW: 1 |
| 25 |
|
| 26 |
steps: |
| 27 |
- name: HL-SMI (1) |
| 28 |
run: | |
| 29 |
hl-smi |
| 30 |
echo "HABANA_VISIBLE_DEVICES=${HABANA_VISIBLE_DEVICES}" |
| 31 |
echo "HABANA_VISIBLE_MODULES=${HABANA_VISIBLE_MODULES}" |
| 32 |
|
| 33 |
- name: Extract HPU visible modules |
| 34 |
id: add-modules |
| 35 |
run: | |
| 36 |
export HABANA_VISIBLE_MODULES=$(hl-smi -Q module_id -f csv,noheader | tr '\n' ',' | sed 's/,$//') |
| 37 |
echo "HABANA_VISIBLE_MODULES=${HABANA_VISIBLE_MODULES}" >> $GITHUB_ENV |
| 38 |
|
| 39 |
- name: HL-SMI (2) |
| 40 |
run: | |
| 41 |
hl-smi |
| 42 |
echo "HABANA_VISIBLE_DEVICES=${HABANA_VISIBLE_DEVICES}" |
| 43 |
echo "HABANA_VISIBLE_MODULES=${HABANA_VISIBLE_MODULES}" |
| 44 |
|
| 45 |
- name: Checkout to Accelerate |
| 46 |
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 47 |
|
| 48 |
- name: Install Accelerate with Transformers & DeepSpeed |
| 49 |
run: | |
| 50 |
pip install -e .[testing] \ |
| 51 |
git+https://github.com/HabanaAI/[email protected] \ |
| 52 |
git+https://github.com/huggingface/transformers.git |
| 53 |
|
| 54 |
- name: Run CLI tests |
| 55 |
if: ${{ !cancelled() && (success() || failure()) }} |
| 56 |
run: | |
| 57 |
make test_cli |
| 58 |
|
| 59 |
- name: Run Core tests |
| 60 |
if: ${{ !cancelled() && (success() || failure()) }} |
| 61 |
run: | |
| 62 |
make test_core |
| 63 |
|
| 64 |
- name: Run Big Modeling tests |
| 65 |
if: ${{ !cancelled() && (success() || failure()) }} |
| 66 |
run: | |
| 67 |
make test_big_modeling |
| 68 |
|
| 69 |
- name: Run DeepSpeed integration tests |
| 70 |
if: ${{ !cancelled() && (success() || failure()) }} |
| 71 |
run: | |
| 72 |
make test_deepspeed |
| 73 |
|
| 74 |
- name: Run FSDP integration tests |
| 75 |
if: ${{ !cancelled() && (success() || failure()) }} |
| 76 |
run: | |
| 77 |
make test_fsdp |
| 78 |
|
| 79 |
- name: Run TP integration tests |
| 80 |
if: ${{ !cancelled() && (success() || failure()) }} |
| 81 |
run: | |
| 82 |
make test_tp |
| 83 |
|
| 84 |
- name: Run Examples tests |
| 85 |
if: ${{ !cancelled() && (success() || failure()) }} |
| 86 |
run: | |
| 87 |
make test_examples |