Skip to content

Add async support to GEPA#9

Open
banana-bison wants to merge 2 commits into
swe-productivity:mainfrom
banana-bison:async_gepa
Open

Add async support to GEPA#9
banana-bison wants to merge 2 commits into
swe-productivity:mainfrom
banana-bison:async_gepa

Conversation

@banana-bison
Copy link
Copy Markdown

This patch adds support for passing async metric functions to GEPA. It's implemented by adding checks for async at all locations (3 in total) where the metric function is invoked and calling run_async from utilities to handle the actual invocation.

Fixes: #2

Signed-off-by: banana-bison <bananabison@gmail.com>
@TomeHirata TomeHirata self-requested a review March 2, 2026 09:26
@TomeHirata TomeHirata self-assigned this Mar 2, 2026
Comment thread dspy/evaluate/evaluate.py Outdated
Comment thread dspy/teleprompt/gepa/gepa.py Outdated
Comment thread dspy/teleprompt/bootstrap_trace.py Outdated
Comment thread tests/evaluate/test_evaluate.py Outdated
Comment thread tests/evaluate/test_evaluate.py Outdated
Comment thread tests/teleprompt/test_gepa.py Outdated
Comment thread tests/teleprompt/test_gepa.py
Signed-off-by: banana-bison <bananabison@gmail.com>
@banana-bison
Copy link
Copy Markdown
Author

banana-bison commented Apr 7, 2026

Hi @TomeHirata , apologies for the delayed reply. I've implemented the changes requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add asynchronous methods to GEPA (cant use a metric callback that has async code in it)

2 participants