Load a pipeline object from Hugging Face - pipelines usually include a model, tokenizer and task.
Source:R/transformers.R
hf_load_pipeline.RdLoad Model from Hugging Face
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