Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-c authored and fabiocapsouza committed Nov 15, 2020
1 parent 0b9e660 commit 4d6ad0f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions src/transformers/configuration_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@

logger = logging.get_logger(__name__)

OPENAI_GPT_PRETRAINED_CONFIG_ARCHIVE_MAP = {
"openai-gpt": "https://huggingface.co/openai-gpt/resolve/main/config.json"
}
OPENAI_GPT_PRETRAINED_CONFIG_ARCHIVE_MAP = {"openai-gpt": "https://huggingface.co/openai-gpt/resolve/main/config.json"}


class OpenAIGPTConfig(PretrainedConfig):
Expand Down
4 changes: 1 addition & 3 deletions src/transformers/tokenization_bert_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@

VOCAB_FILES_NAMES = {"vocab_file": "spiece.model"}

tokenizer_url = (
"https://huggingface.co/google/bert_for_seq_generation_L-24_bbc_encoder/resolve/main/spiece.model"
)
tokenizer_url = "https://huggingface.co/google/bert_for_seq_generation_L-24_bbc_encoder/resolve/main/spiece.model"


class BertGenerationTokenizer(PreTrainedTokenizer):
Expand Down
4 changes: 1 addition & 3 deletions src/transformers/tokenization_mobilebert.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
VOCAB_FILES_NAMES = {"vocab_file": "vocab.txt"}

PRETRAINED_VOCAB_FILES_MAP = {
"vocab_file": {
"mobilebert-uncased": "https://huggingface.co/google/mobilebert-uncased/resolve/main/vocab.txt"
}
"vocab_file": {"mobilebert-uncased": "https://huggingface.co/google/mobilebert-uncased/resolve/main/vocab.txt"}
}

PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES = {"mobilebert-uncased": 512}
Expand Down
4 changes: 1 addition & 3 deletions src/transformers/tokenization_mobilebert_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
VOCAB_FILES_NAMES = {"vocab_file": "vocab.txt", "tokenizer_file": "tokenizer.json"}

PRETRAINED_VOCAB_FILES_MAP = {
"vocab_file": {
"mobilebert-uncased": "https://huggingface.co/google/mobilebert-uncased/resolve/main/vocab.txt"
},
"vocab_file": {"mobilebert-uncased": "https://huggingface.co/google/mobilebert-uncased/resolve/main/vocab.txt"},
"tokenizer_file": {
"mobilebert-uncased": "https://huggingface.co/google/mobilebert-uncased/resolve/main/tokenizer.json"
},
Expand Down

0 comments on commit 4d6ad0f

Please sign in to comment.