integrated gepa training, ui to track#747
Merged
willccbb merged 9 commits intoPrimeIntellect-ai:mainfrom Jan 22, 2026
Merged
Conversation
samsja
reviewed
Jan 20, 2026
Comment on lines
+199
to
+209
| def _serialize(value: Any) -> Any: | ||
| """Make value JSON-serializable.""" | ||
| if hasattr(value, "model_dump"): | ||
| return value.model_dump() | ||
| if isinstance(value, list): | ||
| return [_serialize(v) for v in value] | ||
| if isinstance(value, dict): | ||
| return {k: _serialize(v) for k, v in value.items()} | ||
| if isinstance(value, Exception): | ||
| return repr(value) | ||
| return value |
Member
There was a problem hiding this comment.
don't we have something more general for state[col] serialization ?
Member
There was a problem hiding this comment.
Not really yet, think that's coming with the env worker PR -- by default we don't enforce that state cols are serializable, and it's up to the user to only select serializable columns (e.g. for make_dataset).
willccbb
reviewed
Jan 20, 2026
willccbb
approved these changes
Jan 22, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Type of Change
Testing
uv run pytestlocally.Checklist
Additional Notes
Note
Introduces GEPA-based system prompt optimization and unifies the Rich-based UI across eval and optimization.
vf-gepaCLI with GEPA integration: adapter to Verifiers (VerifiersGEPAAdapter), RichGEPADisplay, result saving (best_prompt.txt,pareto_frontier.jsonl,metadata.json), and configurable reflection LMBaseDisplay, log capture, TTY handling); refactors eval TUI →EvalDisplaywith improved final summary and reward histograms; eval now always uses Rich display with--tuitoggling alternate screen mode--tuinow-uand clarified behavior; adds “Prompt Optimization with vf-gepa” section to training guidegepadependency, registervf-gepascript, path helper for GEPA outputs; minor logging/verbosity tweaks and switch prints→logger inalphabet_sortWritten by Cursor Bugbot for commit 51a00f4. This will update automatically on new commits. Configure here.