delegate_parallel takes a list of tasks. Each one picks its own model through the same scoring as delegate, up to eight are spawned at once, and their pipes are picked up by one poll loop - nobody waits behind the task in front of them. Measured against a provider that takes 12 s per answer: two tasks returned in 12 s total, and the observation says so ([parallel: 2 tasks, 12 s]); serial would have been 24. max_parallel still applies per delegate: a full delegate skips its task with a note rather than queueing silently - verified with two tasks on one delegate at max_parallel 1, where the model reported that only one ran.
140 KiB
Executable File
140 KiB
Executable File