Learn R Programming

FMAT (version 2025.3)

BERT_info: Get basic information of BERT models.

Description

Get basic information of BERT models.

Usage

BERT_info(models = NULL)

Value

A data.table:

  • model name

  • model type

  • number of parameters

  • vocabulary size (of word/token embeddings)

  • embedding dimensions (of word/token embeddings)

  • hidden layers

  • [MASK] token

Arguments

models

Model names at HuggingFace.

See Also

BERT_download

BERT_vocab

Examples

Run this code
if (FALSE) {
models = c("bert-base-uncased", "bert-base-cased")
BERT_info(models)

BERT_info()  # information of all downloaded models
}

Run the code above in your browser using DataLab