Skip to content

Use Harbor's TrialQueue for GEPA trial execution#23

Merged
benediktstroebl merged 1 commit intomainfrom
update-gepa-with-task-queue
Mar 24, 2026
Merged

Use Harbor's TrialQueue for GEPA trial execution#23
benediktstroebl merged 1 commit intomainfrom
update-gepa-with-task-queue

Conversation

@benediktstroebl
Copy link
Copy Markdown
Collaborator

Switches the GEPA example from direct Trial instantiation to Harbor's new TrialQueue API. The shared queue runs on a background event loop so Harbor's semaphore controls trial concurrency (via n_concurrent), independent of GEPA's thread pool.

  • utils.py: replace Trial(config).run() with TrialQueue.submit(config), add init_queue(n_concurrent)
  • optimize.py: call init_queue(n_concurrent=args.max_workers) at startup

Tested with oracle agent on simple-task recipe (reward 1.0).

@benediktstroebl benediktstroebl merged commit 4a8e42a into main Mar 24, 2026
2 checks passed
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.

1 participant