MCPcopy Create free account
hub / github.com/FlashSampling/FlashSampling / find_samples

Function find_samples

benchmarking/vllm/judge_eval.py:237–243  ·  view source on GitHub ↗

Find the latest samples_gsm8k*.jsonl under eval_dir.

(eval_dir: str)

Source from the content-addressed store, hash-verified

235
236
237def find_samples(eval_dir: str) -> Path | None:
238 """Find the latest samples_gsm8k*.jsonl under eval_dir."""
239 pattern = os.path.join(eval_dir, "**", "samples_gsm8k*.jsonl")
240 matches = sorted(glob(pattern, recursive=True))
241 if not matches:
242 return None
243 return Path(matches[-1])
244
245
246def load_samples(path: Path) -> list[dict]:

Callers 1

judge_dirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected