Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix torch compile tests in OSS #479

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
set -eux
conda activate test
conda install pytorch cpuonly -c pytorch-nightly
pip install -r requirements.txt
pip install $(grep -v '^ *#\|^torch' requirements.txt | grep .)
pip install -r dev-requirements.txt
python setup.py sdist bdist_wheel
pip install dist/*.whl
Expand All @@ -36,7 +36,7 @@ jobs:
set -eux
conda activate test
cd docs
pip install -r requirements.txt
pip install $(grep -v '^ *#\|^torch' requirements.txt | grep .)
make html
touch build/html/.nojekyll
cd ..
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly_build_cpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
set -eux
conda activate test
conda install pytorch cpuonly -c pytorch-nightly
pip install -r requirements.txt
pip install $(grep -v '^ *#\|^torch' requirements.txt | grep .)
python setup.py sdist bdist_wheel
pip install dist/*.whl
pip install -r dev-requirements.txt
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
set -eux
conda activate test
conda install pytorch cpuonly -c pytorch-nightly
pip install -r requirements.txt
pip install $(grep -v '^ *#\|^torch' requirements.txt | grep .)
pip install --no-build-isolation -e ".[dev]"
- name: Upload to PyPI
shell: bash -l {0}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
set -eux
conda activate test
conda install pytorch cpuonly -c pytorch-nightly
pip install -r requirements.txt
pip install $(grep -v '^ *#\|^torch' requirements.txt | grep .)
python setup.py sdist bdist_wheel
pip install dist/*.whl
pip install -r dev-requirements.txt
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
set -eux
conda activate test
conda install pytorch cpuonly -c pytorch-nightly
pip install -r requirements.txt
pip install $(grep -v '^ *#\|^torch' requirements.txt | grep .)
pip install --no-build-isolation -e ".[dev]"
- name: Upload to PyPI
shell: bash -l {0}
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
set -eux
conda activate test
conda install pytorch cpuonly -c pytorch-nightly
pip install -r requirements.txt
pip install $(grep -v '^ *#\|^torch' requirements.txt | grep .)
pip install -r dev-requirements.txt
python setup.py sdist bdist_wheel
pip install dist/*.whl
Expand All @@ -92,7 +92,7 @@ jobs:
set -eux
conda activate test
cd docs
pip install -r requirements.txt
pip install $(grep -v '^ *#\|^torch' requirements.txt | grep .)
RELEASE_BUILD=1 make html
touch build/html/.nojekyll
cd ..
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
set -eux
conda activate test
conda install pytorch cpuonly -c pytorch-nightly
pip install -r requirements.txt
pip install $(grep -v '^ *#\|^torch' requirements.txt | grep .)
pip install -r dev-requirements.txt
pip install --no-build-isolation -e .
- name: Run unit tests with coverage
Expand Down
1 change: 0 additions & 1 deletion tests/framework/test_auto_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
COMPILE_AVAIL = False
if is_torch_version_geq_1_13():
COMPILE_AVAIL = True
import torch._dynamo

from torch.distributed import GradBucket, launcher
from torch.distributed.fsdp import FullyShardedDataParallel as FSDP
Expand Down