Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nemo_skills/pipeline/summarize_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,12 @@ def summarize_results(
metrics = {}

has_greedy = Path(f"{benchmark_path}/output.jsonl").exists()
output_rs_pattern = re.compile(r"^output-rs\d+\.jsonl$")
input_files = sorted(
[
jsonl_file
for jsonl_file in glob.glob(f"{benchmark_path}/output-rs*.jsonl")
if Path(jsonl_file).name != "output.jsonl" and "_chunk_" not in Path(jsonl_file).name
if output_rs_pattern.match(Path(jsonl_file).name)
]
)
has_sampling = len(input_files) > 0
Expand Down
Loading