BERT_info: Get basic information of BERT models.

View source: R/FMAT.R

BERT_infoR Documentation

Get basic information of BERT models.

Description

Get basic information of BERT models.

Usage

BERT_info(models = NULL)

Arguments

models

A character vector of model names at HuggingFace.

Value

A data.table:

  • model name

  • model type

  • number of parameters

  • vocabulary size (of input token embeddings)

  • embedding dimensions (of input token embeddings)

  • hidden layers

  • attention heads

  • [MASK] token

See Also

BERT_download()

BERT_vocab()

Examples

## Not run: 
models = c("bert-base-uncased", "bert-base-cased")
BERT_info(models)

BERT_info()  # information of all downloaded models
# speed: ~1.2s/model for first use; <1s afterwards

## End(Not run)


FMAT documentation built on Jan. 12, 2026, 9:08 a.m.