Skip to contents

Load Model from Hugging Face

Usage

hf_load_pipeline(model_id, tokenizer = NULL, task = NULL, ...)

Arguments

model_id

The id of the model given in the url by https://huggingface.co/model_name.

tokenizer

The tokenizer function used to tokenize inputs. Defaults to NULL (one will be automatically loaded).

task

The task the model will accomplish. Run hf_list_tasks() for options.

...

Fed to the hf_pipeline function

Value

A Hugging Face model ready for prediction.