Skip to content

Commit 32d9b0b

Browse files
authored
Fix CI linux_job permissions (#1576)
1 parent 1240b19 commit 32d9b0b

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

Diff for: .github/workflows/float8_test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
gpu-arch-type: "cuda"
3030
gpu-arch-version: "12.1"
3131

32+
permissions:
33+
id-token: write
34+
contents: read
3235
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
3336
with:
3437
timeout: 60

Diff for: .github/workflows/nightly_smoke_test.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111
cancel-in-progress: true
1212

1313
env:
14-
HF_TOKEN: ${{ secrets.HF_TOKEN }}
14+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
1515

1616
jobs:
1717
test:
@@ -25,7 +25,9 @@ jobs:
2525
gpu-arch-type: "cuda"
2626
gpu-arch-version: "12.1"
2727

28-
28+
permissions:
29+
id-token: write
30+
contents: read
2931
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
3032
with:
3133
runner: ${{ matrix.runs-on }}

Diff for: .github/workflows/regression_test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
gpu-arch-type: "cpu"
3535
gpu-arch-version: ""
3636

37+
permissions:
38+
id-token: write
39+
contents: read
3740
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
3841
with:
3942
timeout: 120

Diff for: test/integration/test_integration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,7 @@ def test_autoquant_int4wo(self, device, dtype):
18211821
self.assertGreater(compute_error(ref, out), 20)
18221822

18231823
@parameterized.expand(COMMON_DEVICE_DTYPE)
1824-
@unittest.skipIf(not torch.cuda.is_available(), "Need CUDA available")
1824+
@unittest.skipIf(not is_sm_at_least_90(), "Need cuda arch greater than SM90")
18251825
@unittest.skipIf(
18261826
not TORCH_VERSION_AT_LEAST_2_5, "autoquant int4 option requires 2.5+."
18271827
)

0 commit comments

Comments
 (0)