Commit ·
a154d89
1
Parent(s): 852e5bf
launcher: --consolidate-flavor (cpu-upgrade's 50GB disk too small past ~20GB of shards)
Browse files
launch-embedding-fleet.py
CHANGED
|
@@ -92,6 +92,9 @@ def main():
|
|
| 92 |
help="Worker script: raw URL (default) or a local .py path for dev")
|
| 93 |
p.add_argument("--consolidate-script", default=f"{SCRIPT_BASE}/consolidate-shards.py",
|
| 94 |
help="Consolidator script: raw URL (default) or local path for dev")
|
|
|
|
|
|
|
|
|
|
| 95 |
p.add_argument("--rows-total", type=int, default=None,
|
| 96 |
help="Override when the dataset has no split metadata")
|
| 97 |
p.add_argument("--private", action="store_true", help="Final output dataset is private")
|
|
@@ -165,13 +168,14 @@ def main():
|
|
| 165 |
script_args=[
|
| 166 |
"--bucket", bucket, "--run-id", run_id,
|
| 167 |
] + (["--private"] if args.private else []),
|
| 168 |
-
flavor=
|
| 169 |
-
timeout="
|
| 170 |
secrets={"HF_TOKEN": token},
|
| 171 |
labels={"embedding-fleet-run": run_id, "role": "consolidate"},
|
| 172 |
token=token,
|
| 173 |
)
|
| 174 |
-
logger.info(f"Consolidation job {job.id} (
|
|
|
|
| 175 |
return job
|
| 176 |
|
| 177 |
# --- attach-to-existing-run paths ---
|
|
|
|
| 92 |
help="Worker script: raw URL (default) or a local .py path for dev")
|
| 93 |
p.add_argument("--consolidate-script", default=f"{SCRIPT_BASE}/consolidate-shards.py",
|
| 94 |
help="Consolidator script: raw URL (default) or local path for dev")
|
| 95 |
+
p.add_argument("--consolidate-flavor", default="cpu-upgrade",
|
| 96 |
+
help="Consolidation job flavor. cpu-upgrade has 50 GB disk — use cpu-xl "
|
| 97 |
+
"(1 TB) when total shard size approaches ~20 GB.")
|
| 98 |
p.add_argument("--rows-total", type=int, default=None,
|
| 99 |
help="Override when the dataset has no split metadata")
|
| 100 |
p.add_argument("--private", action="store_true", help="Final output dataset is private")
|
|
|
|
| 168 |
script_args=[
|
| 169 |
"--bucket", bucket, "--run-id", run_id,
|
| 170 |
] + (["--private"] if args.private else []),
|
| 171 |
+
flavor=args.consolidate_flavor,
|
| 172 |
+
timeout="2h",
|
| 173 |
secrets={"HF_TOKEN": token},
|
| 174 |
labels={"embedding-fleet-run": run_id, "role": "consolidate"},
|
| 175 |
token=token,
|
| 176 |
)
|
| 177 |
+
logger.info(f"Consolidation job {job.id} ({args.consolidate_flavor}) — "
|
| 178 |
+
f"merges shards → {args.output_dataset}")
|
| 179 |
return job
|
| 180 |
|
| 181 |
# --- attach-to-existing-run paths ---
|