Skip to content

Commit 43bc9c9

Browse files
committed
colletc-evals 1
1 parent 0f85e38 commit 43bc9c9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

utils/collect_eval_results.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ def load_json(path: Path) -> Optional[Dict[str, Any]]:
2323

2424

2525
def detect_eval_jsons(d: Path) -> Tuple[Optional[Path], Optional[Path]]:
26-
"""Return (lm_eval_json, lighteval_json) if present (latest by mtime)."""
26+
"""Return (lm_eval_json, lighteval_json) if present (latest by mtime).
27+
28+
Some runners save eval JSONs inside a task-named subdirectory (e.g.,
29+
results_dir/gpt-oss-120b/results_...json). Search recursively.
30+
"""
2731
lm: List[Tuple[float, Path]] = []
2832
le: List[Tuple[float, Path]] = []
29-
for p in d.glob('*.json'):
33+
for p in d.rglob('*.json'):
3034
if p.name == 'meta_env.json':
3135
continue
3236
data = load_json(p)

0 commit comments

Comments
 (0)