G

mobilebert-uncased

Otherby Google·Model page

Google's MobileBERT, a compact BERT variant with a bottleneck structure designed for on-device NLP inference.

Share:

Model Card

MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices

MobileBERT is a thin version of BERT_LARGE, while equipped with bottleneck structures and a carefully designed balance between self-attentions and feed-forward networks.

This checkpoint is the original MobileBert Optimized Uncased English: uncased_L-24_H-128_B-512_A-4_F-4_OPT checkpoint.

How to use MobileBERT in transformers

from transformers import pipeline

fill_mask = pipeline(
	"fill-mask",
	model="google/mobilebert-uncased",
	tokenizer="google/mobilebert-uncased"
)

print(
	fill_mask(f"HuggingFace is creating a {fill_mask.tokenizer.mask_token} that the community uses to solve NLP tasks.")
)
Author
G
Google
Organization · ✓
google
Details
Downloads1.2M
Likes74
AccessOpen Source
Licenseapache-2.0
Librarytransformers
CreatedMar 2, 2022
UpdatedApr 19, 2021
View on Hugging Face
Languages
en
Get the full context.

Sign up to read complete case studies, access detailed metrics, and unlock all use cases.

mobilebert-uncased — AI Model Details | Applied