mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
move dependecies list to hubconf
This commit is contained in:
parent
19ef2b0a66
commit
c8bd026ef6
@ -1,3 +1,5 @@
|
||||
dependencies = ['torch', 'tqdm', 'boto3', 'requests', 'regex', 'ftfy', 'spacy']
|
||||
|
||||
from hubconfs.bert_hubconf import (
|
||||
bertTokenizer,
|
||||
bertModel,
|
||||
|
@ -10,8 +10,6 @@ from pytorch_pretrained_bert.modeling import (
|
||||
BertForTokenClassification,
|
||||
)
|
||||
|
||||
dependencies = ['torch', 'tqdm', 'boto3', 'requests', 'regex']
|
||||
|
||||
# A lot of models share the same param doc. Use a decorator
|
||||
# to save typing
|
||||
bert_docstring = """
|
||||
|
@ -5,8 +5,6 @@ from pytorch_pretrained_bert.modeling_openai import (
|
||||
OpenAIGPTDoubleHeadsModel
|
||||
)
|
||||
|
||||
dependencies = ['torch', 'tqdm', 'boto3', 'requests', 'regex', 'ftfy', 'spacy']
|
||||
|
||||
# A lot of models share the same param doc. Use a decorator
|
||||
# to save typing
|
||||
gpt_docstring = """
|
||||
|
Loading…
Reference in New Issue
Block a user