Skip to content

Commit

Permalink
Fix CI linux_job permissions (#1576)
Browse files Browse the repository at this point in the history
  • Loading branch information
jainapurva authored Jan 18, 2025
1 parent 1240b19 commit 32d9b0b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/float8_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
gpu-arch-type: "cuda"
gpu-arch-version: "12.1"

permissions:
id-token: write
contents: read
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
with:
timeout: 60
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/nightly_smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
cancel-in-progress: true

env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_TOKEN: ${{ secrets.HF_TOKEN }}

jobs:
test:
Expand All @@ -25,7 +25,9 @@ jobs:
gpu-arch-type: "cuda"
gpu-arch-version: "12.1"


permissions:
id-token: write
contents: read
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
with:
runner: ${{ matrix.runs-on }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/regression_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
gpu-arch-type: "cpu"
gpu-arch-version: ""

permissions:
id-token: write
contents: read
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
with:
timeout: 120
Expand Down
2 changes: 1 addition & 1 deletion test/integration/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ def test_autoquant_int4wo(self, device, dtype):
self.assertGreater(compute_error(ref, out), 20)

@parameterized.expand(COMMON_DEVICE_DTYPE)
@unittest.skipIf(not torch.cuda.is_available(), "Need CUDA available")
@unittest.skipIf(not is_sm_at_least_90(), "Need cuda arch greater than SM90")
@unittest.skipIf(
not TORCH_VERSION_AT_LEAST_2_5, "autoquant int4 option requires 2.5+."
)
Expand Down

0 comments on commit 32d9b0b

Please sign in to comment.