Skip to content

Commit 194baa3

Browse files
iden-kalemajfacebook-github-bot
authored andcommitted
Add mixed precision tests to ci_gpu (#768)
Summary: Pull Request resolved: #768 Mixed precision tests need gpu Differential Revision: D76459337
1 parent a62bc2d commit 194baa3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci_gpu.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,28 @@ jobs:
3333
# run: |
3434
# python3 -m unittest opacus.tests.multigpu_gradcheck.GradientComputationTest.test_gradient_correct
3535

36+
unittest_mixed_precision:
37+
runs-on: 4-core-ubuntu-gpu-t4
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v2
41+
42+
- name: Display Python version
43+
run: python3 -c "import sys; print(sys.version)"
44+
45+
- name: Set up Python
46+
uses: actions/setup-python@v2
47+
with:
48+
python-version: '3.x'
49+
50+
- name: Install dependencies
51+
run: |
52+
python -m pip install --upgrade pip
53+
./scripts/install_via_pip.sh -c
54+
55+
- name: Run mixed precision unit tests
56+
run: |
57+
python3 -m unittest opacus.tests.mixed_precision_test
3658
3759
integrationtest_py39_torch_release_cuda:
3860
runs-on: 4-core-ubuntu-gpu-t4

0 commit comments

Comments
 (0)