-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
251 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from tests.models.bart.test_modeling_bart import * | ||
from transformers import BartAdapterModel | ||
from transformers.testing_utils import require_torch | ||
|
||
from .base import AdapterModelTesterMixin | ||
|
||
|
||
@require_torch | ||
class BartAdapterModelTest(AdapterModelTesterMixin, BartModelTest): | ||
all_model_classes = (BartAdapterModel,) | ||
fx_compatible = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from tests.models.beit.test_modeling_beit import * | ||
from transformers import BeitAdapterModel | ||
from transformers.testing_utils import require_torch | ||
|
||
from .base import AdapterModelTesterMixin | ||
|
||
|
||
@require_torch | ||
class BeitAdapterModelTest(AdapterModelTesterMixin, BeitModelTest): | ||
all_model_classes = (BeitAdapterModel,) | ||
fx_compatible = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from tests.models.bert.test_modeling_bert import * | ||
from transformers import BertAdapterModel | ||
from transformers.testing_utils import require_torch | ||
|
||
from .base import AdapterModelTesterMixin | ||
|
||
|
||
@require_torch | ||
class BertAdapterModelTest(AdapterModelTesterMixin, BertModelTest): | ||
all_model_classes = (BertAdapterModel,) | ||
fx_compatible = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# flake8: noqa | ||
from tests.models.clip.test_modeling_clip import * # Imported to execute model tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from tests.models.deberta.test_modeling_deberta import * | ||
from transformers import DebertaAdapterModel | ||
from transformers.testing_utils import require_torch | ||
|
||
from .base import AdapterModelTesterMixin | ||
|
||
|
||
@require_torch | ||
class DebertaAdapterModelTest(AdapterModelTesterMixin, DebertaModelTest): | ||
all_model_classes = (DebertaAdapterModel,) | ||
fx_compatible = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from tests.models.deberta_v2.test_modeling_deberta_v2 import * | ||
from transformers import DebertaV2AdapterModel | ||
from transformers.testing_utils import require_torch | ||
|
||
from .base import AdapterModelTesterMixin | ||
|
||
|
||
@require_torch | ||
class DebertaV2AdapterModelTest(AdapterModelTesterMixin, DebertaV2ModelTest): | ||
all_model_classes = (DebertaV2AdapterModel,) | ||
fx_compatible = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from tests.models.distilbert.test_modeling_distilbert import * | ||
from transformers import DistilBertAdapterModel | ||
from transformers.testing_utils import require_torch | ||
|
||
from .base import AdapterModelTesterMixin | ||
|
||
|
||
@require_torch | ||
class DistilBertAdapterModelTest(AdapterModelTesterMixin, DistilBertModelTest): | ||
all_model_classes = (DistilBertAdapterModel,) | ||
fx_compatible = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# flake8: noqa | ||
from tests.models.encoder_decoder.test_modeling_encoder_decoder import * # Imported to execute model tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from tests.models.gpt2.test_modeling_gpt2 import * | ||
from transformers import GPT2AdapterModel | ||
from transformers.testing_utils import require_torch | ||
|
||
from .base import AdapterModelTesterMixin | ||
|
||
|
||
@require_torch | ||
class GPT2AdapterModelTest(AdapterModelTesterMixin, GPT2ModelTest): | ||
all_model_classes = (GPT2AdapterModel,) | ||
fx_compatible = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from tests.models.gptj.test_modeling_gptj import * | ||
from transformers import GPTJAdapterModel | ||
from transformers.testing_utils import require_torch | ||
|
||
from .base import AdapterModelTesterMixin | ||
|
||
|
||
@require_torch | ||
class GPTJAdapterModelTest(AdapterModelTesterMixin, GPTJModelTest): | ||
all_model_classes = (GPTJAdapterModel,) | ||
fx_compatible = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from tests.models.mbart.test_modeling_mbart import * | ||
from transformers import MBartAdapterModel | ||
from transformers.testing_utils import require_torch | ||
|
||
from .base import AdapterModelTesterMixin | ||
|
||
|
||
@require_torch | ||
class MBartAdapterModelTest(AdapterModelTesterMixin, MBartModelTest): | ||
all_model_classes = (MBartAdapterModel,) | ||
fx_compatible = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from tests.models.roberta.test_modeling_roberta import * | ||
from transformers import RobertaAdapterModel | ||
from transformers.testing_utils import require_torch | ||
|
||
from .base import AdapterModelTesterMixin | ||
|
||
|
||
@require_torch | ||
class RobertaAdapterModelTest(AdapterModelTesterMixin, RobertaModelTest): | ||
all_model_classes = (RobertaAdapterModel,) | ||
fx_compatible = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from tests.models.t5.test_modeling_t5 import * | ||
from transformers import T5AdapterModel | ||
from transformers.testing_utils import require_torch | ||
|
||
from .base import AdapterModelTesterMixin | ||
|
||
|
||
@require_torch | ||
class T5AdapterModelTest(AdapterModelTesterMixin, T5ModelTest): | ||
all_model_classes = (T5AdapterModel,) | ||
fx_compatible = False |
Oops, something went wrong.