Skip to content

Commit

Permalink
torch 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Jul 2, 2024
1 parent 2e04768 commit 1121e37
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/model_jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ jobs:
run: |
python3 -m pip install --no-cache-dir git+https://github.com/huggingface/accelerate@main#egg=accelerate
- name: Reinstall torch 2.4 RC
working-directory: /transformers
run: python3 -m pip uninstall -y torch torchvision torchaudio && python3 -m pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/test/cu121

- name: NVIDIA-SMI
run: |
nvidia-smi
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/self-scheduled-caller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- cron: "17 2 * * *"
push:
branches:
- run_scheduled_ci*
- trigger_ci_with_torch_2_4

jobs:
model-ci:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/self-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ jobs:
working-directory: /transformers
run: python3 -m pip uninstall -y transformers && python3 -m pip install -e .

- name: Reinstall torch 2.4 RC
working-directory: /transformers
run: python3 -m pip uninstall -y torch torchvision torchaudio && python3 -m pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/test/cu121

- name: NVIDIA-SMI
run: |
nvidia-smi
Expand Down Expand Up @@ -234,6 +238,10 @@ jobs:
working-directory: /transformers
run: python3 -m pip uninstall -y transformers && python3 -m pip install -e .

- name: Reinstall torch 2.4 RC
working-directory: /transformers
run: python3 -m pip uninstall -y torch torchvision torchaudio && python3 -m pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/test/cu121

- name: NVIDIA-SMI
run: |
nvidia-smi
Expand Down Expand Up @@ -292,6 +300,9 @@ jobs:
python3 -m pip install -U datasets
python3 -m pip install --no-cache-dir git+https://github.com/huggingface/accelerate@main#egg=accelerate
- name: Reinstall torch 2.4 RC
run: python3 -m pip uninstall -y torch torchvision torchaudio && python3 -m pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/test/cu121

- name: Remove cached torch extensions
run: rm -rf /github/home/.cache/torch_extensions/

Expand Down Expand Up @@ -375,6 +386,10 @@ jobs:
working-directory: /transformers
run: python3 -m pip uninstall -y transformers && python3 -m pip install -e .

- name: Reinstall torch 2.4 RC
working-directory: /transformers
run: python3 -m pip uninstall -y torch torchvision torchaudio && python3 -m pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/test/cu121

- name: NVIDIA-SMI
run: |
nvidia-smi
Expand Down

0 comments on commit 1121e37

Please sign in to comment.