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
OpenDAS
diffusers
Commits
b1c5817a
Unverified
Commit
b1c5817a
authored
Apr 29, 2024
by
Dhruv Nair
Committed by
GitHub
Apr 29, 2024
Browse files
Add debugging workflow (#7778)
add debug workflow Co-authored-by:
Sayak Paul
<
spsayakpaul@gmail.com
>
parent
235d34cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
.github/workflows/ssh-runner.yml
.github/workflows/ssh-runner.yml
+55
-0
No files found.
.github/workflows/ssh-runner.yml
0 → 100644
View file @
b1c5817a
name
:
SSH into runners
on
:
workflow_dispatch
:
inputs
:
runner_type
:
description
:
'
Type
of
runner
to
test
(a10
or
t4)'
required
:
true
docker_image
:
description
:
'
Name
of
the
Docker
image'
required
:
true
env
:
IS_GITHUB_CI
:
"
1"
HF_HUB_READ_TOKEN
:
${{ secrets.HF_HUB_READ_TOKEN }}
HF_HOME
:
/mnt/cache
DIFFUSERS_IS_CI
:
yes
OMP_NUM_THREADS
:
8
MKL_NUM_THREADS
:
8
RUN_SLOW
:
yes
jobs
:
ssh_runner
:
name
:
"
SSH"
runs-on
:
[
single-gpu
,
nvidia-gpu
,
"
${{
github.event.inputs.runner_type
}}"
,
ci
]
container
:
image
:
${{ github.event.inputs.docker_image }}
options
:
--gpus all --privileged --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
steps
:
-
name
:
Update clone
working-directory
:
/diffusers
run
:
|
git fetch && git checkout ${{ github.sha }}
-
name
:
Cleanup
working-directory
:
/diffusers
run
:
|
rm -rf tests/__pycache__
rm -rf tests/models/__pycache__
rm -rf reports
-
name
:
Show installed libraries and their versions
working-directory
:
/diffusers
run
:
pip freeze
-
name
:
NVIDIA-SMI
run
:
|
nvidia-smi
-
name
:
Tailscale
# In order to be able to SSH when a test fails
uses
:
huggingface/tailscale-action@v1
with
:
authkey
:
${{ secrets.TAILSCALE_SSH_AUTHKEY }}
slackChannel
:
${{ secrets.SLACK_CIFEEDBACK_CHANNEL }}
slackToken
:
${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
waitForSSH
:
true
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