Geotrend/bert-base-15lang-cased

Model

6

stars

19

commits

1

linked in READMEs

Sep 15, 2023

updated

bert
endpoints_compatible
fill-mask
jax
multilingual
pytorch
safetensors
tf
transformers
Browse cluster: Multilingual BERT Models

README

bert-base-15lang-cased

We are sharing smaller versions of bert-base-multilingual-cased that handle a custom number of languages.

Unlike distilbert-base-multilingual-cased, our versions give exactly the same representations produced by the original model which preserves the original accuracy.

The measurements below have been computed on a Google Cloud n1-standard-1 machine (1 vCPU, 3.75 GB):

ModelNum parametersSizeMemoryLoading time
bert-base-multilingual-cased178 million714 MB1400 MB4.2 sec
Geotrend/bert-base-15lang-cased141 million564 MB1098 MB3.1 sec

Handled languages: en, fr, es, de, zh, ar, ru, vi, el, bg, th, tr, hi, ur and sw.

For more information please visit our paper: Load What You Need: Smaller Versions of Multilingual BERT.

How to use

from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("Geotrend/bert-base-15lang-cased")
model = AutoModel.from_pretrained("Geotrend/bert-base-15lang-cased")

To generate other smaller versions of multilingual transformers please visit our Github repo.

How to cite

@inproceedings{smallermbert,
  title={Load What You Need: Smaller Versions of Multilingual BERT},
  author={Abdaoui, Amine and Pradel, Camille and Sigel, Grégoire},
  booktitle={SustaiNLP / EMNLP},
  year={2020}
}

Contact

Please contact amine@geotrend.fr for any question, feedback or request.

Contributors

system

9 commits

amine

3 commits

lbourdois

2 commits

Geotrend/bert-base-15lang-cased

Model

6

stars

19

commits

1

linked in READMEs

Sep 15, 2023

updated

bert
endpoints_compatible
fill-mask
jax
multilingual
pytorch
safetensors
tf
transformers
Browse cluster: Multilingual BERT Models

README

bert-base-15lang-cased

We are sharing smaller versions of bert-base-multilingual-cased that handle a custom number of languages.

Unlike distilbert-base-multilingual-cased, our versions give exactly the same representations produced by the original model which preserves the original accuracy.

The measurements below have been computed on a Google Cloud n1-standard-1 machine (1 vCPU, 3.75 GB):

ModelNum parametersSizeMemoryLoading time
bert-base-multilingual-cased178 million714 MB1400 MB4.2 sec
Geotrend/bert-base-15lang-cased141 million564 MB1098 MB3.1 sec

Handled languages: en, fr, es, de, zh, ar, ru, vi, el, bg, th, tr, hi, ur and sw.

For more information please visit our paper: Load What You Need: Smaller Versions of Multilingual BERT.

How to use

from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("Geotrend/bert-base-15lang-cased")
model = AutoModel.from_pretrained("Geotrend/bert-base-15lang-cased")

To generate other smaller versions of multilingual transformers please visit our Github repo.

How to cite

@inproceedings{smallermbert,
  title={Load What You Need: Smaller Versions of Multilingual BERT},
  author={Abdaoui, Amine and Pradel, Camille and Sigel, Grégoire},
  booktitle={SustaiNLP / EMNLP},
  year={2020}
}

Contact

Please contact amine@geotrend.fr for any question, feedback or request.

Contributors

system

9 commits

amine

3 commits

lbourdois

2 commits