From b475e9e8035a891567ca584c78b5bcca59b87de7 Mon Sep 17 00:00:00 2001 From: Jason Senthil Date: Wed, 26 Jul 2023 10:50:33 -0700 Subject: [PATCH] fix torch compile tests in OSS Differential Revision: D47803991 fbshipit-source-id: ffd45a41835a11b5e58960f377a9fa33fb6fa3e6 --- dev-requirements.txt | 5 +++++ tests/framework/test_auto_unit.py | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index 9d82cac567..30463a7562 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,5 +1,10 @@ parameterized pytest + +--pre +--index-url https://download.pytorch.org/whl/nightly/cpu +torch + pytest-cov torcheval-nightly torchsnapshot-nightly diff --git a/tests/framework/test_auto_unit.py b/tests/framework/test_auto_unit.py index 4b43fc07be..7d911a440a 100644 --- a/tests/framework/test_auto_unit.py +++ b/tests/framework/test_auto_unit.py @@ -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