From 2c5cd8fecde86ebc7479134526ea0ad53f9dadac Mon Sep 17 00:00:00 2001 From: Tai An Date: Wed, 22 Apr 2026 06:14:10 -0700 Subject: [PATCH] docs(pipeline): fix num_workers docstring default from 8 to 0 --- src/transformers/pipelines/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/pipelines/base.py b/src/transformers/pipelines/base.py index 916576c4c6e9..6d7493f937fd 100644 --- a/src/transformers/pipelines/base.py +++ b/src/transformers/pipelines/base.py @@ -676,7 +676,7 @@ def build_pipeline_init_args( docstring += r""" task (`str`, defaults to `""`): A task-identifier for the pipeline. - num_workers (`int`, *optional*, defaults to 8): + num_workers (`int`, *optional*, defaults to 0): When the pipeline will use *DataLoader* (when passing a dataset, on GPU for a Pytorch model), the number of workers to be used. batch_size (`int`, *optional*, defaults to 1):