update loading logics

This commit is contained in:
thomwolf
2019-09-24 14:03:58 +02:00
parent 271f213621
commit f5397ffc3b
4 changed files with 55 additions and 35 deletions

View File

@@ -49,6 +49,7 @@ except (AttributeError, ImportError):
PYTORCH_TRANSFORMERS_CACHE = PYTORCH_PRETRAINED_BERT_CACHE # Kept for backward compatibility
WEIGHTS_NAME = "pytorch_model.bin"
TF2_WEIGHTS_NAME = 'tf_model.h5'
TF_WEIGHTS_NAME = 'model.ckpt'
CONFIG_NAME = "config.json"