Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
9b6e3b34
Commit
9b6e3b34
authored
Aug 30, 2019
by
LysandreJik
Browse files
Docstrings
parent
dec8f4d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
hubconfs/automodels_hubconf.py
hubconfs/automodels_hubconf.py
+4
-0
No files found.
hubconfs/automodels_hubconf.py
View file @
9b6e3b34
...
@@ -113,6 +113,7 @@ def autoModel(*args, **kwargs):
...
@@ -113,6 +113,7 @@ def autoModel(*args, **kwargs):
The model class to instantiate is selected as the first pattern matching
The model class to instantiate is selected as the first pattern matching
in the `pretrained_model_name_or_path` string (in the following order):
in the `pretrained_model_name_or_path` string (in the following order):
- contains `distilbert`: DistilBertModel (DistilBERT model)
- contains `roberta`: RobertaModel (RoBERTa model)
- contains `roberta`: RobertaModel (RoBERTa model)
- contains `bert`: BertModel (Bert model)
- contains `bert`: BertModel (Bert model)
- contains `openai-gpt`: OpenAIGPTModel (OpenAI GPT model)
- contains `openai-gpt`: OpenAIGPTModel (OpenAI GPT model)
...
@@ -190,6 +191,7 @@ def autoModelWithLMHead(*args, **kwargs):
...
@@ -190,6 +191,7 @@ def autoModelWithLMHead(*args, **kwargs):
The model class to instantiate is selected as the first pattern matching
The model class to instantiate is selected as the first pattern matching
in the `pretrained_model_name_or_path` string (in the following order):
in the `pretrained_model_name_or_path` string (in the following order):
- contains `distilbert`: DistilBertModelForMaskedLM (DistilBERT model)
- contains `roberta`: RobertaForMaskedLM (RoBERTa model)
- contains `roberta`: RobertaForMaskedLM (RoBERTa model)
- contains `bert`: BertForMaskedLM (Bert model)
- contains `bert`: BertForMaskedLM (Bert model)
- contains `openai-gpt`: OpenAIGPTLMHeadModel (OpenAI GPT model)
- contains `openai-gpt`: OpenAIGPTLMHeadModel (OpenAI GPT model)
...
@@ -266,6 +268,7 @@ def autoModelForSequenceClassification(*args, **kwargs):
...
@@ -266,6 +268,7 @@ def autoModelForSequenceClassification(*args, **kwargs):
The model class to instantiate is selected as the first pattern matching
The model class to instantiate is selected as the first pattern matching
in the `pretrained_model_name_or_path` string (in the following order):
in the `pretrained_model_name_or_path` string (in the following order):
- contains `distilbert`: DistilBertModelForSequenceClassification (DistilBERT model)
- contains `roberta`: RobertaForSequenceClassification (RoBERTa model)
- contains `roberta`: RobertaForSequenceClassification (RoBERTa model)
- contains `bert`: BertForSequenceClassification (Bert model)
- contains `bert`: BertForSequenceClassification (Bert model)
- contains `xlnet`: XLNetForSequenceClassification (XLNet model)
- contains `xlnet`: XLNetForSequenceClassification (XLNet model)
...
@@ -340,6 +343,7 @@ def autoModelForQuestionAnswering(*args, **kwargs):
...
@@ -340,6 +343,7 @@ def autoModelForQuestionAnswering(*args, **kwargs):
The model class to instantiate is selected as the first pattern matching
The model class to instantiate is selected as the first pattern matching
in the `pretrained_model_name_or_path` string (in the following order):
in the `pretrained_model_name_or_path` string (in the following order):
- contains `distilbert`: DistilBertModelForQuestionAnswering (DistilBERT model)
- contains `bert`: BertForQuestionAnswering (Bert model)
- contains `bert`: BertForQuestionAnswering (Bert model)
- contains `xlnet`: XLNetForQuestionAnswering (XLNet model)
- contains `xlnet`: XLNetForQuestionAnswering (XLNet model)
- contains `xlm`: XLMForQuestionAnswering (XLM model)
- contains `xlm`: XLMForQuestionAnswering (XLM model)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment