Combine

A small command-line utility that merges the *.jsonl result files in a folder into a single combined.jsonl, concatenating the attempts for any data item that appears in more than one file. Useful for pooling shards from parallel or resumed runs before visualizing them.

Run it with python -m ape.combine <folder>.

combine

main

main() -> None

Merge the *.jsonl result files in a folder into a single combined.jsonl.

Reads the folder named on the command line, concatenates the attempts for any data item that appears in more than one file, and writes combined.jsonl into that folder. Aborts if the output file already exists. Invoked as python -m ape.combine <folder>.