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)What the rule reports
Section titled “What the rule reports”Calls to dspy.Evaluate(...) or Evaluate(...) that omit num_threads (excluding calls forwarding **kwargs).
How to fix it
Section titled “How to fix it”Pass an explicit num_threads=... budget suited to your model proxy or provider rate limits.
Diagnostic message
Section titled “Diagnostic message”dspy.Evaluate(...) without num_threads runs sequentially on one thread. Pass num_threads=... for concurrent evaluation.See all rules in the DSPy pack.