Skip to content

Commit eb24e4b

Browse files
authored
Add option to SSH into CPU runner. (#8884)
update
1 parent e02ec27 commit eb24e4b

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

.github/workflows/ssh-pr-runner.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: SSH into PR runners
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
docker_image:
7+
description: 'Name of the Docker image'
8+
required: true
9+
10+
env:
11+
IS_GITHUB_CI: "1"
12+
HF_HUB_READ_TOKEN: ${{ secrets.HF_HUB_READ_TOKEN }}
13+
HF_HOME: /mnt/cache
14+
DIFFUSERS_IS_CI: yes
15+
OMP_NUM_THREADS: 8
16+
MKL_NUM_THREADS: 8
17+
RUN_SLOW: yes
18+
19+
jobs:
20+
ssh_runner:
21+
name: "SSH"
22+
runs-on: [self-hosted, intel-cpu, 32-cpu, 256-ram, ci]
23+
container:
24+
image: ${{ github.event.inputs.docker_image }}
25+
options: --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface/diffusers:/mnt/cache/ --gpus 0 --privileged
26+
27+
steps:
28+
- name: Checkout diffusers
29+
uses: actions/checkout@v3
30+
with:
31+
fetch-depth: 2
32+
33+
- name: NVIDIA-SMI
34+
run: |
35+
nvidia-smi
36+
37+
- name: Tailscale # In order to be able to SSH when a test fails
38+
uses: huggingface/tailscale-action@main
39+
with:
40+
authkey: ${{ secrets.TAILSCALE_SSH_AUTHKEY }}
41+
slackChannel: ${{ secrets.SLACK_CIFEEDBACK_CHANNEL }}
42+
slackToken: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
43+
waitForSSH: true

.github/workflows/ssh-runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: SSH into runners
1+
name: SSH into GPU runners
22

33
on:
44
workflow_dispatch:

0 commit comments

Comments
 (0)