|
1 | 1 | """code_golf: write a short, fast Python program — the sibling-comparison recipe env. |
2 | 2 |
|
3 | | -Each task asks for a tiny program with a known output. The env fans one env-rollout |
| 3 | +Each task asks for a tiny program with a known output. The env fans one episode |
4 | 4 | into `--env.attempts` independent attempts by the same "golfer" role and scores them |
5 | 5 | against each other. Anything that needs the runtime is measured per attempt, box-live, |
6 | 6 | into that attempt's trace; the env's `finalize()` then just compares the recorded |
|
13 | 13 | - `fastest` env `finalize()`: of the PASSING attempts, the lowest recorded |
14 | 14 | `latency` wins — a comparison of trace metadata. |
15 | 15 |
|
16 | | -So one env-rollout produces, per attempt: did it work, was it the shorter one, was it |
| 16 | +So one episode produces, per attempt: did it work, was it the shorter one, was it |
17 | 17 | the quicker one — the relative signals you can only get by comparing siblings. Only |
18 | 18 | correct attempts compete: a failed one earns nothing on either comparison, and an |
19 | 19 | all-failed group pays nobody. |
@@ -69,7 +69,7 @@ async def correct(self, trace: vf.Trace) -> float: |
69 | 69 | class CodeGolfEnvConfig(vf.EnvConfig): |
70 | 70 | golfer: vf.AgentConfig = vf.AgentConfig() |
71 | 71 | attempts: int = Field(2, ge=1) |
72 | | - """Independent attempts per env-rollout, scored against each other.""" |
| 72 | + """Independent attempts per episode, scored against each other.""" |
73 | 73 |
|
74 | 74 |
|
75 | 75 | class CodeGolfEnv(vf.Env[CodeGolfEnvConfig]): |
|
0 commit comments