|
65 | 65 | title: Results with Transformers ${{ inputs.transformers_ref }} |
66 | 66 | status: ${{ job.status }} |
67 | 67 | slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} |
| 68 | + |
| 69 | + distributed_smoke: |
| 70 | + name: Distributed smoke tests with Transformers ${{ inputs.transformers_ref }} |
| 71 | + runs-on: |
| 72 | + group: aws-g5-12xlarge-cache |
| 73 | + container: |
| 74 | + image: pytorch/pytorch:2.8.0-cuda12.8-cudnn9-devel |
| 75 | + options: --gpus all |
| 76 | + defaults: |
| 77 | + run: |
| 78 | + shell: bash |
| 79 | + env: |
| 80 | + CUDA_VISIBLE_DEVICES: "0,1" |
| 81 | + steps: |
| 82 | + - name: Git checkout |
| 83 | + uses: actions/checkout@v6 |
| 84 | + |
| 85 | + - name: Set up Python 3.12 |
| 86 | + uses: actions/setup-python@v6 |
| 87 | + with: |
| 88 | + python-version: '3.12' |
| 89 | + |
| 90 | + - name: Install Make and Git |
| 91 | + run: | |
| 92 | + apt-get update && apt-get install -y make git curl |
| 93 | +
|
| 94 | + - name: Install uv |
| 95 | + run: | |
| 96 | + curl -LsSf https://astral.sh/uv/install.sh | sh |
| 97 | +
|
| 98 | + - name: Create Python virtual environment |
| 99 | + run: | |
| 100 | + uv venv |
| 101 | + uv pip install --upgrade setuptools wheel |
| 102 | +
|
| 103 | + - name: Install dependencies |
| 104 | + run: | |
| 105 | + source .venv/bin/activate |
| 106 | + uv pip install ".[dev]" |
| 107 | + uv pip install -U git+https://github.com/huggingface/transformers.git@${{ inputs.transformers_ref }} |
| 108 | +
|
| 109 | + - name: Run distributed smoke tests |
| 110 | + run: | |
| 111 | + source .venv/bin/activate |
| 112 | + pytest -v tests/distributed/test_distributed.py |
| 113 | +
|
| 114 | + - name: Post to Slack |
| 115 | + if: github.ref == 'refs/heads/main' && always() |
| 116 | + uses: huggingface/hf-workflows/.github/actions/post-slack@main |
| 117 | + with: |
| 118 | + slack_channel: ${{ env.CI_SLACK_CHANNEL }} |
| 119 | + title: Results of distributed smoke tests with Transformers ${{ inputs.transformers_ref }} |
| 120 | + status: ${{ job.status }} |
| 121 | + slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} |
0 commit comments