promptflow icon indicating copy to clipboard operation
promptflow copied to clipboard

[Feature Request] Is it possible to limit the run/eval batch size?

Open 0mza987 opened this issue 1 year ago • 1 comments

Discussed in https://github.com/microsoft/promptflow/discussions/3579

Originally posted by ebotiab July 25, 2024 When making a run is it possible to limit the quantity of the data that is passed to be executed at once?

0mza987 avatar Jul 25 '24 03:07 0mza987

This can be done by setting the environment variable PF_WORKER_COUNT like follows in your flow yaml file:

environment_variables:
  PF_WORKER_COUNT: "1"

I do this to avoid throttling limits or when running inference against local models

jomalsan avatar Oct 07 '24 18:10 jomalsan