name: SSH into GPU runners on: workflow_dispatch: inputs: runner_type: description: 'Type of runner to test (aws-g6-4xlarge-plus: a10, aws-g4dn-2xlarge: t4, aws-g6e-xlarge-plus: L40)' type: choice required: true options: - aws-g6-4xlarge-plus - aws-g4dn-2xlarge - aws-g6e-xlarge-plus 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 permissions: {} jobs: ssh_runner: permissions: contents: read name: "SSH" runs-on: group: "${{ github.event.inputs.runner_type }}" container: image: ${{ github.event.inputs.docker_image }} options: --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface/diffusers:/mnt/cache/ --gpus all --privileged steps: - name: Checkout diffusers uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 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@9d1a67c46875a956cf2d1975473da978a970a2a9 # main with: authkey: ${{ secrets.TAILSCALE_SSH_AUTHKEY }} slackChannel: ${{ secrets.SLACK_CIFEEDBACK_CHANNEL }} slackToken: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} waitForSSH: true