AIAny
AI Model2022
Icon for item

BERT base model (uncased)

Pretrained uncased English BERT base model for masked language modeling and next-sentence prediction. ~110M parameters, pretrained on BookCorpus and English Wikipedia; commonly fine-tuned for classification, token labeling, and question answering.

Introduction

BERT’s core insight changed transfer learning for NLP by pretraining a deep bidirectional Transformer with masked language modeling and a next-sentence objective. That bidirectional context enables much stronger contextual embeddings than left-to-right or shallowly bidirectional alternatives, and those embeddings remain a standard baseline for many downstream NLP tasks.

Key Capabilities
  • Bidirectional contextual embeddings via Masked Language Modeling (MLM): produces token representations that incorporate both left and right context, improving tasks like NER, QA, and sentence-pair classification.
  • Next Sentence Prediction (NSP) pretraining: helps with sentence-pair understanding tasks (e.g., entailment, relevance ranking) when fine-tuned.
  • Practical transfer: the base uncased variant (~110M params, WordPiece vocab of 30k) is optimized to be fine-tuned on modest labeled datasets and integrates with common toolchains (Transformers, PyTorch, TensorFlow).
Who it’s a good fit for — and tradeoffs

Great fit if you need a proven, well-documented encoder to extract contextual features or to fine-tune for classification, token-level tasks, or extractive QA on English text. It’s easy to plug into downstream pipelines and has abundant reference results.

Look elsewhere if you need autoregressive generation, multilingual coverage beyond the provided multilingual or cased variants, or state-of-the-art performance on very large-scale benchmarks—more recent architectures and larger pretrained models often outperform BERT on many leaderboards. Also note pretrained biases from BookCorpus and English Wikipedia and that training from scratch requires substantial compute.

Information

  • Websitehuggingface.co
  • OrganizationsGoogle Research, Hugging Face
  • AuthorsJacob Devlin, Ming-Wei Chang, Kenton Lee, Kristina Toutanova
  • Published date2022/03/02

Categories

More Items

Hugging Face
AI Model2022

A compact pretrained bidirectional Transformer distilled from BERT base for masked language modeling and downstream NLP fine-tuning. Trained via knowledge distillation on BookCorpus and English Wikipedia, it reduces size/latency (≈67M params) while preserving BERT-like representations.

Hugging Face
AI Model2022

Autoregressive transformer that generates English text from a prompt and can be fine-tuned for downstream NLP tasks. This is the 124M-parameter GPT-2 checkpoint (causal LM, byte-level BPE, 1024-token context) hosted on Hugging Face.

Hugging Face
AI Model2026

A 4B-parameter on-device general-purpose LLM for chat, writing, translation, coding and agentic workflows with native 1,000,000-token context. Uses a hybrid attention design to enable long-context efficiency, pretrained on ~20T tokens, and compatible with vLLM, llama.cpp, Ollama and LM Studio.