From 6de06fc3aa0234b66eaf3f7af7227f59a99943be Mon Sep 17 00:00:00 2001 From: Dhruv Nair Date: Wed, 17 Jul 2024 13:53:39 +0000 Subject: [PATCH] update --- .github/workflows/ssh-pr-runner.yml | 43 +++++++++++++++++++++++++++++ .github/workflows/ssh-runner.yml | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ssh-pr-runner.yml diff --git a/.github/workflows/ssh-pr-runner.yml b/.github/workflows/ssh-pr-runner.yml new file mode 100644 index 000000000000..c7b7a5d631d5 --- /dev/null +++ b/.github/workflows/ssh-pr-runner.yml @@ -0,0 +1,43 @@ +name: SSH into PR runners + +on: + workflow_dispatch: + inputs: + 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: [self-hosted, intel-cpu, 32-cpu, 256-ram, ci] + container: + image: ${{ github.event.inputs.docker_image }} + options: --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface/diffusers:/mnt/cache/ --gpus 0 --privileged + + steps: + - name: Checkout diffusers + uses: actions/checkout@v3 + with: + fetch-depth: 2 + + - name: NVIDIA-SMI + run: | + nvidia-smi + + - name: Tailscale # In order to be able to SSH when a test fails + uses: huggingface/tailscale-action@main + with: + authkey: ${{ secrets.TAILSCALE_SSH_AUTHKEY }} + slackChannel: ${{ secrets.SLACK_CIFEEDBACK_CHANNEL }} + slackToken: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} + waitForSSH: true diff --git a/.github/workflows/ssh-runner.yml b/.github/workflows/ssh-runner.yml index c24905772c8d..984eb4270544 100644 --- a/.github/workflows/ssh-runner.yml +++ b/.github/workflows/ssh-runner.yml @@ -1,4 +1,4 @@ -name: SSH into runners +name: SSH into GPU runners on: workflow_dispatch: