Skip to content

Latest commit

 

History

History
75 lines (59 loc) · 5.61 KB

README.md

File metadata and controls

75 lines (59 loc) · 5.61 KB

Examples

Each folder is one task. Inside it the three things a task owner provides are kept apart, and the configs of every method that has been run on the task sit beside them:

examples/<task>/
  README.md          the task, how to prepare it, which methods run on it
  utils/             everything the task itself needs: the agent, the data preparation, the judge, the texts
    agent/           the acting agent: a prompt for a built-in agent, or agent.py with the task's own Agent
                     class when a benchmark owns the loop; the config names it in agent.name
    prepare.py       writes tasks.jsonl and splits/ beside itself, from the task's data (which stays where it is)
    judge.py         scores one output and writes the feedback
    tools.py         the task's tools for a built-in agent, where it has any
    task-info/       what the learner is told: README.md, and mwm/ with what MWM needs to know about the task
    tests/           the task's own tests, where it has any
  <method>/          one folder per method run on the task: smoke.yaml, run.yaml, a launcher where a run needs
                     one, a trained adapter/ where included

Recipes

Each of these runs a task end to end and reports a number: its README gives the commands, the result table and how the number was measured, and the method folders hold the trained adapters where they are included, each with a .hermit/CARD.md.

Folder Task Agent Methods
officeqa/ OfficeQA Full in the SkillOpt paper's setting: questions about U.S. Treasury Bulletins, its 50 / 24 / 172 split, exact match OfficeQAAgent: SkillOpt's own rollout, GLM 5.3 Flash, in direct chat or SkillOpt's Codex harness; a second results column with Codex + GPT-5.6-Luna acting and learning on a ChatGPT login (*_luna.yaml) gepa, skillopt, harness2_stream (Harness², the paper's per-question protocol, with Codex as the acting agent), continual_harness (Continual Harness, Codex as the acting agent), reharness (ReHarness, Codex as the acting agent), meta_harness_adapter (Meta-Harness Adapter, Codex as the acting agent)
clbench_database/ The CL-Bench database exploration stream (accuracy) CLBenchDatabaseAgent: metaworld's host seat in CL-Bench's loop prompt_only, mwm, reharness
clbench_poker/ The CL-Bench exploitable-poker stream (bb/hand) CLBenchPokerAgent prompt_only, mwm, reharness
servelearnbench/ A ServeLearnBench scenario: serving stream, per-window tests ServeLearnBenchAgent: the benchmark's own loop prompt_only, mwm

Demos

These show one part of the framework and report no number.

Folder What it shows
lean_swarm/ Check and deploy a finished adapter: five Codex agents prove one formal-conjectures theorem together; no training config
docs/_examples/first_training/ The whole loop offline, with a scripted learner and no model (Quick Start)
docs/_examples/first_model/ A first training with a real model, on included data, without benchmark assets (First real-model training)

The methods themselves are described in docs/methods/.

Run an example

Run from the repository root (dependency groups need pip 25.1+). Prepare the task once, then check, train and evaluate with a method's config:

python -m pip install -e . --group skillopt --group gepa
python examples/officeqa/utils/prepare.py --csv /path/to/officeqa_full.csv --docs /path/to/treasury_bulletins_parsed
export FIREWORKS_API_KEY=...                   # the configs name GLM models on Fireworks
hermit check --config examples/officeqa/gepa/smoke.yaml
hermit train --config examples/officeqa/gepa/smoke.yaml
hermit eval  --config examples/officeqa/gepa/smoke.yaml --adapter final

Paths inside a config, and a path given to --adapter, are relative to the config's folder: a config reaches its task as ../utils/... and ../utils/agent/.... A run writes to <task>/<method>/runs/. Run smoke.yaml before run.yaml: it checks the data, pipeline, judge and Evolver together on a few questions.

Models are <backend>/<model id> references; the same config runs against another provider or a local vLLM or SGLang server with one override, model=vllm/Qwen/Qwen3-30B-A3B-Instruct-2507-FP8 (the launchers take MW_MODEL=...). See Model backends.

Add an example

  • A task: utils/prepare.py, the task's tools or an utils/agent/agent.py with an Agent subclass, utils/judge.py, utils/task-info/README.md (see Task integration and the built-in agents), and a row in the table above.
  • A method on an existing task: <method>/smoke.yaml and run.yaml (a stream's launcher may take a prefix split in place of a smoke config, MW_TRAIN_SPLIT=..., as the CL-Bench folders do), and a row in docs/methods/<method>.md.
  • A method: docs/methods/<method>.md in the shape of the others: what it does, one step, knobs, configs, commands.