Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
e1df77ee
Unverified
Commit
e1df77ee
authored
May 21, 2024
by
Lucain
Committed by
GitHub
May 21, 2024
Browse files
Use HF_TOKEN env var in CI (#7993)
parent
fdb1baa0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
18 deletions
+18
-18
.github/workflows/benchmark.yml
.github/workflows/benchmark.yml
+1
-1
.github/workflows/nightly_tests.yml
.github/workflows/nightly_tests.yml
+7
-7
.github/workflows/push_tests.yml
.github/workflows/push_tests.yml
+8
-8
.github/workflows/push_tests_mps.yml
.github/workflows/push_tests_mps.yml
+1
-1
.github/workflows/update_metadata.yml
.github/workflows/update_metadata.yml
+1
-1
No files found.
.github/workflows/benchmark.yml
View file @
e1df77ee
...
...
@@ -39,7 +39,7 @@ jobs:
python utils/print_env.py
-
name
:
Diffusers Benchmarking
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.DIFFUSERS_BOT_TOKEN }}
H
F
_TOKEN
:
${{ secrets.DIFFUSERS_BOT_TOKEN }}
BASE_PATH
:
benchmark_outputs
run
:
|
export TOTAL_GPU_MEMORY=$(python -c "import torch; print(torch.cuda.get_device_properties(0).total_memory / (1024**3))")
...
...
.github/workflows/nightly_tests.yml
View file @
e1df77ee
...
...
@@ -81,7 +81,7 @@ jobs:
-
name
:
Nightly PyTorch CUDA checkpoint (pipelines) tests
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
CUBLAS_WORKSPACE_CONFIG
:
:16:8
run
:
|
...
...
@@ -141,7 +141,7 @@ jobs:
-
name
:
Run nightly PyTorch CUDA tests for non-pipeline modules
if
:
${{ matrix.module != 'examples'}}
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
CUBLAS_WORKSPACE_CONFIG
:
:16:8
run
:
|
...
...
@@ -154,7 +154,7 @@ jobs:
-
name
:
Run nightly example tests with Torch
if
:
${{ matrix.module == 'examples' }}
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
CUBLAS_WORKSPACE_CONFIG
:
:16:8
run
:
|
...
...
@@ -211,7 +211,7 @@ jobs:
-
name
:
Run nightly LoRA tests with PEFT and Torch
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
CUBLAS_WORKSPACE_CONFIG
:
:16:8
run
:
|
...
...
@@ -269,7 +269,7 @@ jobs:
-
name
:
Run nightly Flax TPU tests
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
run
:
|
python -m pytest -n 0 \
-s -v -k "Flax" \
...
...
@@ -324,7 +324,7 @@ jobs:
-
name
:
Run nightly ONNXRuntime CUDA tests
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
run
:
|
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
-s -v -k "Onnx" \
...
...
@@ -390,7 +390,7 @@ jobs:
shell
:
arch -arch arm64 bash {0}
env
:
HF_HOME
:
/System/Volumes/Data/mnt/cache
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
run
:
|
${CONDA_RUN} python -m pytest -n 1 -s -v --make-reports=tests_torch_mps \
--report-log=tests_torch_mps.log \
...
...
.github/workflows/push_tests.yml
View file @
e1df77ee
...
...
@@ -87,7 +87,7 @@ jobs:
python utils/print_env.py
-
name
:
Slow PyTorch CUDA checkpoint tests on Ubuntu
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
CUBLAS_WORKSPACE_CONFIG
:
:16:8
run
:
|
...
...
@@ -144,7 +144,7 @@ jobs:
-
name
:
Run slow PyTorch CUDA tests
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
CUBLAS_WORKSPACE_CONFIG
:
:16:8
run
:
|
...
...
@@ -194,7 +194,7 @@ jobs:
-
name
:
Run slow PEFT CUDA tests
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
CUBLAS_WORKSPACE_CONFIG
:
:16:8
run
:
|
...
...
@@ -243,7 +243,7 @@ jobs:
-
name
:
Run slow Flax TPU tests
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
run
:
|
python -m pytest -n 0 \
-s -v -k "Flax" \
...
...
@@ -290,7 +290,7 @@ jobs:
-
name
:
Run slow ONNXRuntime CUDA tests
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
run
:
|
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
-s -v -k "Onnx" \
...
...
@@ -337,7 +337,7 @@ jobs:
python utils/print_env.py
-
name
:
Run example tests on GPU
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
run
:
|
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile -s -v -k "compile" --make-reports=tests_torch_compile_cuda tests/
-
name
:
Failure short reports
...
...
@@ -378,7 +378,7 @@ jobs:
python utils/print_env.py
-
name
:
Run example tests on GPU
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
run
:
|
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile -s -v -k "xformers" --make-reports=tests_torch_xformers_cuda tests/
-
name
:
Failure short reports
...
...
@@ -423,7 +423,7 @@ jobs:
-
name
:
Run example tests on GPU
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
run
:
|
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
python -m uv pip install timm
...
...
.github/workflows/push_tests_mps.yml
View file @
e1df77ee
...
...
@@ -59,7 +59,7 @@ jobs:
shell
:
arch -arch arm64 bash {0}
env
:
HF_HOME
:
/System/Volumes/Data/mnt/cache
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.H
UGGING_FACE_HUB
_TOKEN }}
H
F
_TOKEN
:
${{ secrets.H
F
_TOKEN }}
run
:
|
${CONDA_RUN} python -m pytest -n 0 -s -v --make-reports=tests_torch_mps tests/
...
...
.github/workflows/update_metadata.yml
View file @
e1df77ee
...
...
@@ -25,6 +25,6 @@ jobs:
-
name
:
Update metadata
env
:
H
UGGING_FACE_HUB
_TOKEN
:
${{ secrets.SAYAK_HF_TOKEN }}
H
F
_TOKEN
:
${{ secrets.SAYAK_HF_TOKEN }}
run
:
|
python utils/update_metadata.py --commit_sha ${{ github.sha }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment