We need a functionality to use pipelines directly in the HuggingFace model. Lot of DataScientists are very well comfortable with declaring pipelines from Hugging face directly instead of passing it through model_kwargs and pipeline_kwargs which makes it too confusing for them:
While the latter needs more lines of code it gives much more control and customisability in the hands of the data scientist in declaring his model. We can add one more kwarg pipeline in which the user can specify the pipeline directly.
We need a functionality to use pipelines directly in the HuggingFace model. Lot of DataScientists are very well comfortable with declaring pipelines from Hugging face directly instead of passing it through model_kwargs and pipeline_kwargs which makes it too confusing for them:
How we are currently building pipelines:
How some data scientists are expecting to use hugging face:
While the latter needs more lines of code it gives much more control and customisability in the hands of the data scientist in declaring his model. We can add one more kwarg pipeline in which the user can specify the pipeline directly.