distilabel icon indicating copy to clipboard operation
distilabel copied to clipboard

[FEATURE] Make `pipeline` argument of `Step` optional

Open gabrielmbmb opened this issue 10 months ago • 0 comments

Description

When creating an Step it's required to pass a pipeline argument or to create the Step within the pipeline context manager, so one is assigned automatically. This can be cumbersome when creating an instance of an Step just to test it.

I propose modifying the model_post_init function of the _Step class to give a warning to the user instead of raising an error when pipeline==None.

gabrielmbmb avatar Apr 22 '24 08:04 gabrielmbmb