mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-23 02:20:49 +00:00
[fx] fixed unit tests for torch 1.12 (#1327)
This commit is contained in:
@@ -7,7 +7,6 @@ BATCH_SIZE = 2
|
||||
SEQ_LENGHT = 16
|
||||
|
||||
|
||||
@pytest.mark.skip("error with pytorch 1.10")
|
||||
def test_single_sentence_albert():
|
||||
MODEL_LIST = [
|
||||
transformers.AlbertModel,
|
||||
|
@@ -7,7 +7,6 @@ BATCH_SIZE = 2
|
||||
SEQ_LENGHT = 16
|
||||
|
||||
|
||||
@pytest.mark.skip("error with pytorch 1.10")
|
||||
def test_single_sentence_bert():
|
||||
MODEL_LIST = [
|
||||
transformers.BertModel,
|
||||
|
@@ -9,7 +9,6 @@ NUM_EPOCHS = 2
|
||||
NUM_CHUNKS = 1
|
||||
|
||||
|
||||
@pytest.mark.skip("error with pytorch 1.10")
|
||||
def test_gpt():
|
||||
MODEL_LIST = [
|
||||
transformers.GPT2Model,
|
||||
|
@@ -7,7 +7,6 @@ BATCH_SIZE = 1
|
||||
SEQ_LENGHT = 16
|
||||
|
||||
|
||||
@pytest.mark.skip("error with pytorch 1.10")
|
||||
def test_opt():
|
||||
MODEL_LIST = [
|
||||
transformers.OPTModel,
|
||||
|
@@ -7,7 +7,6 @@ BATCH_SIZE = 1
|
||||
SEQ_LENGHT = 16
|
||||
|
||||
|
||||
@pytest.mark.skip("error with pytorch 1.10")
|
||||
def test_t5():
|
||||
MODEL_LIST = [
|
||||
transformers.T5Model,
|
||||
|
@@ -7,7 +7,6 @@ except:
|
||||
from timm_utils import split_model_and_compare_output
|
||||
|
||||
|
||||
@pytest.mark.skip('skip as timm is required')
|
||||
def test_timm_models_without_control_flow():
|
||||
|
||||
MODEL_LIST = [
|
||||
@@ -28,7 +27,6 @@ def test_timm_models_without_control_flow():
|
||||
split_model_and_compare_output(model, data)
|
||||
|
||||
|
||||
@pytest.mark.skip('skip as timm is required')
|
||||
def test_timm_models_with_control_flow():
|
||||
torch.backends.cudnn.deterministic = True
|
||||
|
||||
|
@@ -19,7 +19,6 @@ torch.manual_seed(MANUAL_SEED)
|
||||
torch.backends.cudnn.deterministic = True
|
||||
|
||||
|
||||
@pytest.mark.skip('skip as torchvision is required')
|
||||
def test_torchvision_models():
|
||||
MODEL_LIST = [
|
||||
tm.vgg11, tm.resnet18, tm.densenet121, tm.mobilenet_v3_small, tm.resnext50_32x4d, tm.wide_resnet50_2,
|
||||
|
Reference in New Issue
Block a user