Load community pipelines
Last updated
Last updated
Community pipelines are any class that are different from the original implementation as specified in their paper (for example, the corresponds to the paper). They provide additional functionality or extend the original implementation of a pipeline.
There are many cool community pipelines like or , and you can find all the official community pipelines .
To load any community pipeline on the Hub, pass the repository id of the community pipeline to the custom_pipeline
argument and the model repository where youβd like to load the pipeline weights and components from. For example, the example below loads a dummy pipeline from and the pipeline weights and components from :
π By loading a community pipeline from the BOINC AI Hub, you are trusting that the code you are loading is safe. Make sure to inspect the code online before loading and running it automatically!
Copied
Loading an official community pipeline is similar, but you can mix loading weights from an official repository id and pass pipeline components directly. The example below loads the community pipeline, and you can pass the CLIP model components directly to it:
Copied
For more information about community pipelines, take a look at the guide for how to use them and if youβre interested in adding a community pipeline check out the guide!