Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fastembed/parallel_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ def start(self, **kwargs: Any) -> None:

for worker_id in range(0, self.num_workers):
worker_kwargs = deepcopy(kwargs)
worker_kwargs["cuda"] = self.cuda
if self.device_ids:
device_id = self.device_ids[worker_id % len(self.device_ids)]
worker_kwargs["device_id"] = device_id
worker_kwargs["cuda"] = self.cuda

assert hasattr(self.ctx, "Process")
process = self.ctx.Process(
Expand Down
Loading