Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lenglaender committed Nov 12, 2023
1 parent c6dc931 commit b54d127
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion tests_adapters/models/test_albert.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import AlbertAdapterModel
from tests.models.albert.test_modeling_albert import *
from hf_transformers.tests.models.albert.test_modeling_albert import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
2 changes: 1 addition & 1 deletion tests_adapters/models/test_bart.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import BartAdapterModel
from tests.models.bart.test_modeling_bart import *
from hf_transformers.tests.models.bart.test_modeling_bart import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
2 changes: 1 addition & 1 deletion tests_adapters/models/test_beit.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import BeitAdapterModel
from tests.models.beit.test_modeling_beit import *
from hf_transformers.tests.models.beit.test_modeling_beit import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
2 changes: 1 addition & 1 deletion tests_adapters/models/test_bert.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import BertAdapterModel
from tests.models.bert.test_modeling_bert import *
from hf_transformers.tests.models.bert.test_modeling_bert import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
2 changes: 1 addition & 1 deletion tests_adapters/models/test_bert_generation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import BertGenerationAdapterModel
from tests.models.bert_generation.test_modeling_bert_generation import *
from hf_transformers.tests.models.bert_generation.test_modeling_bert_generation import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
4 changes: 2 additions & 2 deletions tests_adapters/models/test_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import numpy as np

from adapters import CLIPAdapterModel
from tests.models.clip.test_modeling_clip import * # Imported to execute model tests
from tests.test_modeling_common import _config_zero_init
from hf_transformers.tests.models.clip.test_modeling_clip import * # Imported to execute model tests
from hf_transformers.tests.test_modeling_common import _config_zero_init
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
2 changes: 1 addition & 1 deletion tests_adapters/models/test_deberta.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import DebertaAdapterModel
from tests.models.deberta.test_modeling_deberta import *
from hf_transformers.tests.models.deberta.test_modeling_deberta import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
2 changes: 1 addition & 1 deletion tests_adapters/models/test_debertaV2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import DebertaV2AdapterModel
from tests.models.deberta_v2.test_modeling_deberta_v2 import *
from hf_transformers.tests.models.deberta_v2.test_modeling_deberta_v2 import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
2 changes: 1 addition & 1 deletion tests_adapters/models/test_distilbert.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import DistilBertAdapterModel
from tests.models.distilbert.test_modeling_distilbert import *
from hf_transformers.tests.models.distilbert.test_modeling_distilbert import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
2 changes: 1 addition & 1 deletion tests_adapters/models/test_encoder_decoder.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# flake8: noqa
from tests.models.encoder_decoder.test_modeling_encoder_decoder import * # Imported to execute model tests
from hf_transformers.tests.models.encoder_decoder.test_modeling_encoder_decoder import * # Imported to execute model tests
2 changes: 1 addition & 1 deletion tests_adapters/models/test_gpt2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import GPT2AdapterModel
from tests.models.gpt2.test_modeling_gpt2 import *
from hf_transformers.tests.models.gpt2.test_modeling_gpt2 import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
2 changes: 1 addition & 1 deletion tests_adapters/models/test_gptj.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import GPTJAdapterModel
from tests.models.gptj.test_modeling_gptj import *
from hf_transformers.tests.models.gptj.test_modeling_gptj import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
2 changes: 1 addition & 1 deletion tests_adapters/models/test_mbart.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import MBartAdapterModel
from tests.models.mbart.test_modeling_mbart import *
from hf_transformers.tests.models.mbart.test_modeling_mbart import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
2 changes: 1 addition & 1 deletion tests_adapters/models/test_roberta.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import RobertaAdapterModel
from tests.models.roberta.test_modeling_roberta import *
from hf_transformers.tests.models.roberta.test_modeling_roberta import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
2 changes: 1 addition & 1 deletion tests_adapters/models/test_t5.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import T5AdapterModel
from tests.models.t5.test_modeling_t5 import *
from hf_transformers.tests.models.t5.test_modeling_t5 import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
2 changes: 1 addition & 1 deletion tests_adapters/models/test_vit.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import ViTAdapterModel
from tests.models.vit.test_modeling_vit import *
from hf_transformers.tests.models.vit.test_modeling_vit import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down
2 changes: 1 addition & 1 deletion tests_adapters/models/test_xlm_roberta.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# flake8: noqa
from tests.models.xlm_roberta.test_modeling_xlm_roberta import * # Imported to execute model tests
from hf_transformers.tests.models.xlm_roberta.test_modeling_xlm_roberta import * # Imported to execute model tests
2 changes: 1 addition & 1 deletion tests_adapters/models/test_xmod.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa: F403,F405
from adapters import XmodAdapterModel
from tests.models.xmod.test_modeling_xmod import *
from hf_transformers.tests.models.xmod.test_modeling_xmod import *
from transformers.testing_utils import require_torch

from .base import AdapterModelTesterMixin
Expand Down

0 comments on commit b54d127

Please sign in to comment.