Skip to content

dspy/single-threaded-eval

Pack Severity Fix Versions
DSPy warning none, edit by hand All versions

dspy.Evaluate(...) defaults to num_threads=None, executing evaluation examples sequentially on a single thread and magnifying wall-clock latency.

evaluator = dspy.Evaluate(devset=devset, metric=metric)
evaluator = dspy.Evaluate(devset=devset, metric=metric, num_threads=8)

Calls to dspy.Evaluate(...) or Evaluate(...) that omit num_threads (excluding calls forwarding **kwargs).

Pass an explicit num_threads=... budget suited to your model proxy or provider rate limits.

dspy.Evaluate(...) without num_threads runs sequentially on one thread. Pass num_threads=... for concurrent evaluation.

See all rules in the DSPy pack.