fix: TextIteratorStreamer cannot work with pipeline (#23641)
* fix: TextIteratorStreamer cannot work with pipeline Deepcopying the TextIteratorStreamer object causes the exception. Signed-off-by:yuanwu <yuan.wu@intel.com> * Update src/transformers/pipelines/text_generation.py Got it. I will update the patch. Co-authored-by:
Joao Gante <joaofranciscocardosogante@gmail.com> * Update src/transformers/pipelines/text_generation.py Co-authored-by:
Joao Gante <joaofranciscocardosogante@gmail.com> * Update text_generation.py --------- Signed-off-by:
yuanwu <yuan.wu@intel.com> Co-authored-by:
Joao Gante <joaofranciscocardosogante@gmail.com>
Showing
Please register or sign in to comment