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
c8bd026e
Commit
c8bd026e
authored
May 31, 2019
by
VictorSanh
Browse files
move dependecies list to hubconf
parent
19ef2b0a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
hubconf.py
hubconf.py
+2
-0
hubconfs/bert_hubconf.py
hubconfs/bert_hubconf.py
+0
-2
hubconfs/gpt_hubconf.py
hubconfs/gpt_hubconf.py
+0
-2
No files found.
hubconf.py
View file @
c8bd026e
dependencies
=
[
'torch'
,
'tqdm'
,
'boto3'
,
'requests'
,
'regex'
,
'ftfy'
,
'spacy'
]
from
hubconfs.bert_hubconf
import
(
from
hubconfs.bert_hubconf
import
(
bertTokenizer
,
bertTokenizer
,
bertModel
,
bertModel
,
...
...
hubconfs/bert_hubconf.py
View file @
c8bd026e
...
@@ -10,8 +10,6 @@ from pytorch_pretrained_bert.modeling import (
...
@@ -10,8 +10,6 @@ from pytorch_pretrained_bert.modeling import (
BertForTokenClassification
,
BertForTokenClassification
,
)
)
dependencies
=
[
'torch'
,
'tqdm'
,
'boto3'
,
'requests'
,
'regex'
]
# A lot of models share the same param doc. Use a decorator
# A lot of models share the same param doc. Use a decorator
# to save typing
# to save typing
bert_docstring
=
"""
bert_docstring
=
"""
...
...
hubconfs/gpt_hubconf.py
View file @
c8bd026e
...
@@ -5,8 +5,6 @@ from pytorch_pretrained_bert.modeling_openai import (
...
@@ -5,8 +5,6 @@ from pytorch_pretrained_bert.modeling_openai import (
OpenAIGPTDoubleHeadsModel
OpenAIGPTDoubleHeadsModel
)
)
dependencies
=
[
'torch'
,
'tqdm'
,
'boto3'
,
'requests'
,
'regex'
,
'ftfy'
,
'spacy'
]
# A lot of models share the same param doc. Use a decorator
# A lot of models share the same param doc. Use a decorator
# to save typing
# to save typing
gpt_docstring
=
"""
gpt_docstring
=
"""
...
...
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