File tree Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 2828 'roberta-base' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-base-config.json" ,
2929 'roberta-large' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-large-config.json" ,
3030 'roberta-large-mnli' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-large-mnli-config.json" ,
31+ 'distilroberta-base' : "https://s3.amazonaws.com/models.huggingface.co/bert/distilroberta-base-config.json" ,
3132}
3233
3334
Original file line number Diff line number Diff line change 3434 'roberta-base' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-base-pytorch_model.bin" ,
3535 'roberta-large' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-large-pytorch_model.bin" ,
3636 'roberta-large-mnli' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-large-mnli-pytorch_model.bin" ,
37+ 'distilroberta-base' : "https://s3.amazonaws.com/models.huggingface.co/bert/distilroberta-base-pytorch_model.bin" ,
3738}
3839
3940class RobertaEmbeddings (BertEmbeddings ):
Original file line number Diff line number Diff line change 3535 'roberta-base' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-base-tf_model.h5" ,
3636 'roberta-large' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-large-tf_model.h5" ,
3737 'roberta-large-mnli' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-large-mnli-tf_model.h5" ,
38+ 'distilroberta-base' : "https://s3.amazonaws.com/models.huggingface.co/bert/distilroberta-base-tf_model.h5" ,
3839}
3940
4041class TFRobertaEmbeddings (TFBertEmbeddings ):
Original file line number Diff line number Diff line change @@ -46,19 +46,22 @@ def lru_cache():
4646 'roberta-base' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-base-vocab.json" ,
4747 'roberta-large' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-large-vocab.json" ,
4848 'roberta-large-mnli' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-large-mnli-vocab.json" ,
49+ 'distilroberta-base' : "https://s3.amazonaws.com/models.huggingface.co/bert/distilroberta-base-vocab.json" ,
4950 },
5051 'merges_file' :
5152 {
5253 'roberta-base' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-base-merges.txt" ,
5354 'roberta-large' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-large-merges.txt" ,
5455 'roberta-large-mnli' : "https://s3.amazonaws.com/models.huggingface.co/bert/roberta-large-mnli-merges.txt" ,
56+ 'distilroberta-base' : "https://s3.amazonaws.com/models.huggingface.co/bert/distilroberta-base-merges.txt" ,
5557 },
5658}
5759
5860PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES = {
5961 'roberta-base' : 512 ,
6062 'roberta-large' : 512 ,
6163 'roberta-large-mnli' : 512 ,
64+ 'distilroberta-base' : 512 ,
6265}
6366
6467
You can’t perform that action at this time.
0 commit comments