hf_load_pipeline | R Documentation |
Load Model from Hugging Face
hf_load_pipeline(model_id, tokenizer = NULL, task = NULL, ...)
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 |
A Hugging Face model ready for prediction.
https://huggingface.co/docs/transformers/main/en/pipeline_tutorial
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.