Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
model_validator
in InferenceEndpoints
due to Pipeline
pickl…
…ing (#552) * Allow nested connect calls and overload rshift method to connect steps (#490) * Allow nested connect calls and overload rshift method to connect steps * Update src/distilabel/steps/base.py Co-authored-by: Alvaro Bartolome <[email protected]> * Update tests/unit/pipeline/test_base.py Co-authored-by: Alvaro Bartolome <[email protected]> * Update tests/unit/pipeline/test_base.py Co-authored-by: Alvaro Bartolome <[email protected]> * Update tests/unit/pipeline/test_base.py Co-authored-by: Alvaro Bartolome <[email protected]> * Update tests/unit/pipeline/test_base.py Co-authored-by: Alvaro Bartolome <[email protected]> * Update tests/unit/pipeline/test_base.py Co-authored-by: Alvaro Bartolome <[email protected]> * Add comment to simplify reading the tests * Add reference on the Pipeline of alternative ways of connecting the steps --------- Co-authored-by: Alvaro Bartolome <[email protected]> * Fix `model_validator` in `InferenceEndpointsLLM` as called after `load` too Due to the `pickle` usage within the `Pipeline`, the `model_validator` is not only called the first time `InferenceEndpointsLLM` is instantiated, but also once the `load` method has been run, so that it means that `base_url` will always have a value already, and then will always raise a `pydantic.ValidationError`; but that's been fixed already * Set `1.0.1` version to release bug-fix * Revert "Allow nested connect calls and overload rshift method to connect steps (#490)" This reverts commit c3e7b0d. --------- Co-authored-by: Agus <[email protected]> Co-authored-by: Gabriel Martín Blázquez <[email protected]>
- Loading branch information