dot-download_weights: Download and Cache Weights

.download_weightsR Documentation

Download and Cache Weights

Description

Download weights for this model to the torchtransformers cache, or load them if they're already downloaded.

Usage

.download_weights(bert_type = "bert_tiny_uncased", redownload = FALSE)

Arguments

bert_type

Character; which flavor of BERT to use. See available_berts() for known models.

redownload

Logical; should the weights be downloaded fresh even if they're cached?

Value

The parsed weights as a named list.


macmillancontentscience/torchtransformers documentation built on Aug. 6, 2023, 5:35 a.m.