Skip to content

Commit 5719f30

Browse files
jerryzh168facebook-github-bot
authored andcommitted
Fix internal tests after recent chagnes
Summary: att Reviewed By: shreydesai Differential Revision: D79936256
1 parent 4fc4068 commit 5719f30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/integration/test_loading_deprecated_checkpoint.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from transformers import AutoModelForCausalLM, AutoTokenizer, TorchAoConfig
1616

1717
from torchao.utils import is_sm_at_least_89
18+
from torchao.utils import is_fbcode
1819

1920
_MODEL_NAME_AND_VERSIONS = [
2021
("torchao-testing/opt-125m-float8dq-row-v1-0.13-dev", 1),
@@ -23,6 +24,7 @@
2324

2425
@unittest.skipIf(not torch.cuda.is_available(), "Need CUDA available")
2526
@unittest.skipIf(not is_sm_at_least_89(), "Nedd sm89+")
27+
@unittest.skipIf(is_fbcode(), "Skipping the test in fbcode for now, not sure how to download from transformers")
2628
class TestLoadingDeprecatedCheckpoint(TestCase):
2729
@common_utils.parametrize("model_name_and_version", _MODEL_NAME_AND_VERSIONS)
2830
def test_load_model_and_run(self, model_name_and_version):

0 commit comments

Comments
 (0)