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

Function load_variant

benchmarking/vllm/plot_tpot.py:62–68  ·  view source on GitHub ↗
(model_dir: Path, variant_key: str)

Source from the content-addressed store, hash-verified

60
61def latest_timestamp(variant_dir: Path) -> Path:
62 dirs = sorted(d for d in variant_dir.iterdir() if d.is_dir() and (d / "summary.csv").exists())
63 if not dirs:
64 raise FileNotFoundError(f"No completed runs (with summary.csv) found in {variant_dir}")
65 return dirs[-1]
66
67
68def load_variant(model_dir: Path, variant_key: str) -> pd.DataFrame | None:
69 variant_dir = model_dir / variant_key
70 if not variant_dir.exists():
71 print(f"Warning: {variant_dir} not found, skipping")

Callers 2

load_all_dataFunction · 0.85
paired_speedupsFunction · 0.85

Calls 1

latest_timestampFunction · 0.85

Tested by

no test coverage detected