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

Function resolve_model_dirs

benchmarking/vllm/plot_tpot.py:49–52  ·  view source on GitHub ↗

Find all model directories matching the model name, including -trialN suffixes.

(results_dir: Path, model: str)

Source from the content-addressed store, hash-verified

47
48
49def tp_from_dir(results_dir: Path) -> int:
50 """Parse the TP value out of the results dir name (e.g. ...-tp2). Defaults to 1."""
51 m = re.search(r"-tp(\d+)(?:[-_].*)?$", results_dir.name)
52 return int(m.group(1)) if m else 1
53
54
55def resolve_model_dirs(results_dir: Path, model: str) -> list[Path]:

Callers 2

load_all_dataFunction · 0.85
plot_speedupsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected