Upload runners/RUN_QUAD_5090_MASTER_SFT_V3.txt with huggingface_hub
Browse files59 unmodified lines60616263646566676869707159 unmodified linesshutil.copy(p, dst)print("✅ Core Code & Tokenizer Synced!")# 3. Check / Download Clean Base Pretrained Checkpointbase_ckpt_path = "checkpoints/ckpt_latest.pt"if not os.path.exists(base_ckpt_path) or os.path.getsize(base_ckpt_path) < 1024**3:print(f"\n📥 Downloading Healthy Base Checkpoint from {REPO_ID} (ckpt_latest.pt, ~5.6 GB)...")dl = hf_hub_download(repo_id=REPO_ID, filename="checkpoints/ckpt_latest.pt", token=HF_TOKEN)shutil.copy(dl, base_ckpt_path)print(f"✅ Base Checkpoint Ready: {base_ckpt_path} ({os.path.getsize(base_ckpt_path)/(1024**3):.2f} GB)")# 4. Check / Download Master SFT v3 Shards59 unmodified lines60616263646566676869707172737475767778798081828384858687888990919259 unmodified linesshutil.copy(p, dst)print("✅ Core Code & Tokenizer Synced!")# 3. Clean Incomplete Temp Files & Check / Download Clean Base Pretrained Checkpointimport globfor p in glob.glob("sft_checkpoints/*/*.tmp") + glob.glob("sft_checkpoints/*.tmp") + glob.glob("*.tmp"):try:os.remove(p)print(f"🧹 Cleaned incomplete temp file: {p}")except Exception:passbase_ckpt_path = "checkpoints/ckpt_latest.pt"if not os.path.exists(base_ckpt_path) or os.path.getsize(base_ckpt_path) < 1024**3:print(f"\n📥 Downloading Healthy Base Checkpoint from {REPO_ID} (ckpt_latest.pt, ~5.6 GB)...")dl = hf_hub_download(repo_id=REPO_ID, filename="checkpoints/ckpt_latest.pt", token=HF_TOKEN)try:shutil.move(dl, base_ckpt_path)except Exception:shutil.copy(dl, base_ckpt_path)# Purge duplicate huggingface download cache to reclaim 5-10 GB disk spacehf_hub_cache = os.path.expanduser("~/.cache/huggingface/hub")if os.path.exists(hf_hub_cache):try:shutil.rmtree(hf_hub_cache, ignore_errors=True)print("🧹 Cleaned duplicate Hugging Face cache to maximize free disk space!")except Exception:passprint(f"✅ Base Checkpoint Ready: {base_ckpt_path} ({os.path.getsize(base_ckpt_path)/(1024**3):.2f} GB)")# 4. Check / Download Master SFT v3 Shards
runners/RUN_QUAD_5090_MASTER_SFT_V3.txt+23-2