experiment: add per-gpu workload control

This commit is contained in:
2026-07-20 18:48:22 +08:00
parent a033a72195
commit 809ad9ffef
8 changed files with 330 additions and 7 deletions

View File

@@ -91,6 +91,10 @@ def vector_sha256(rows: Iterable[dict[str, Any]]) -> str:
return digest.hexdigest()
def rho_label(rho: float) -> str:
return f"rho{format(rho, '.12g').replace('.', 'p')}"
def load_source(
public_path: Path | None, private_path: Path
) -> list[dict[str, Any]]:
@@ -377,8 +381,7 @@ def main() -> None:
target_rate=target_rate,
fixed_token_ids=fixed_token_ids,
)
rho_label = f"rho{rho:.2f}".replace(".", "p")
root = args.output_root / family.name / rho_label
root = args.output_root / family.name / rho_label(rho)
cases.append(
write_case(
root,