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
84a3a968
Commit
84a3a968
authored
Aug 26, 2019
by
LysandreJik
Browse files
Pytorch Hub & AutoModels
parent
f6833963
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
27 deletions
+2
-27
hubconf.py
hubconf.py
+2
-27
No files found.
hubconf.py
View file @
84a3a968
dependencies
=
[
'torch'
,
'tqdm'
,
'boto3'
,
'requests'
,
'regex'
]
dependencies
=
[
'torch'
,
'tqdm'
,
'boto3'
,
'requests'
,
'regex'
]
from
hubconfs.bert_hubconf
import
(
from
pytorch_transformers
import
(
bertTokenizer
,
AutoTokenizer
,
AutoModel
,
AutoModelWithLMHead
,
AutoModelForSequenceClassification
,
AutoModelForQuestionAnswering
bertModel
,
bertForNextSentencePrediction
,
bertForPreTraining
,
bertForMaskedLM
,
bertForSequenceClassification
,
bertForMultipleChoice
,
bertForQuestionAnswering
,
bertForTokenClassification
)
from
hubconfs.gpt_hubconf
import
(
openAIGPTTokenizer
,
openAIGPTModel
,
openAIGPTLMHeadModel
,
openAIGPTDoubleHeadsModel
)
from
hubconfs.gpt2_hubconf
import
(
gpt2Tokenizer
,
gpt2Model
,
gpt2LMHeadModel
,
gpt2DoubleHeadsModel
)
from
hubconfs.transformer_xl_hubconf
import
(
transformerXLTokenizer
,
transformerXLModel
,
transformerXLLMHeadModel
)
)
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