Upload runners/NVIDIA_H200_TITAN_PRETRAIN.txt with huggingface_hub
Browse files
runners/NVIDIA_H200_TITAN_PRETRAIN.txt
CHANGED
|
@@ -15,15 +15,16 @@
|
|
| 15 |
# • Auto-uploads ckpt_latest.pt to Hugging Face in the background every 250 steps.
|
| 16 |
# ==============================================================================
|
| 17 |
|
| 18 |
-
!pip install -q torch transformers datasets tokenizers huggingface_hub numpy
|
| 19 |
|
| 20 |
import os, sys, shutil
|
| 21 |
import torch
|
| 22 |
from huggingface_hub import HfApi, hf_hub_download
|
| 23 |
|
| 24 |
-
# Real-time unbuffered logging & memory
|
| 25 |
os.environ["PYTHONUNBUFFERED"] = "1"
|
| 26 |
os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True"
|
|
|
|
| 27 |
|
| 28 |
HF_TOKEN = os.environ.get("HF_TOKEN") or ''.join(['hf_','ssyCVhuny','XxjGdqKp','VLPpkmWK','FrrMOIFbg'])
|
| 29 |
os.environ["HF_TOKEN"] = HF_TOKEN
|
|
@@ -35,8 +36,9 @@ print("=" * 80)
|
|
| 35 |
print("🚀 ViuAI Sarus-500M — Launching NVIDIA H200 141GB Titan Pretraining")
|
| 36 |
print("=" * 80)
|
| 37 |
|
| 38 |
-
# Continuation Pretraining Hyperparameters
|
| 39 |
-
os.environ["TOTAL_STEPS"] = "60000" # 20,000 continuation steps (~10B tokens)
|
|
|
|
| 40 |
os.environ["MAX_LR"] = "1.0e-4" # Calibrated continuation LR to protect base weights
|
| 41 |
os.environ["MIN_LR"] = "1.0e-5"
|
| 42 |
os.environ["WARMUP_STEPS"] = "500"
|
|
|
|
| 15 |
# • Auto-uploads ckpt_latest.pt to Hugging Face in the background every 250 steps.
|
| 16 |
# ==============================================================================
|
| 17 |
|
| 18 |
+
!pip install -q torch transformers datasets tokenizers huggingface_hub numpy hf_transfer
|
| 19 |
|
| 20 |
import os, sys, shutil
|
| 21 |
import torch
|
| 22 |
from huggingface_hub import HfApi, hf_hub_download
|
| 23 |
|
| 24 |
+
# Real-time unbuffered logging, Rust-accelerated downloads & memory safety
|
| 25 |
os.environ["PYTHONUNBUFFERED"] = "1"
|
| 26 |
os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True"
|
| 27 |
+
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
| 28 |
|
| 29 |
HF_TOKEN = os.environ.get("HF_TOKEN") or ''.join(['hf_','ssyCVhuny','XxjGdqKp','VLPpkmWK','FrrMOIFbg'])
|
| 30 |
os.environ["HF_TOKEN"] = HF_TOKEN
|
|
|
|
| 36 |
print("🚀 ViuAI Sarus-500M — Launching NVIDIA H200 141GB Titan Pretraining")
|
| 37 |
print("=" * 80)
|
| 38 |
|
| 39 |
+
# Continuation Pretraining Hyperparameters (Full Run to 60,000 Steps)
|
| 40 |
+
os.environ["TOTAL_STEPS"] = "60000" # Full 20,000 continuation steps (~10B tokens)
|
| 41 |
+
os.environ["MAX_STEPS"] = "60000" # Full run to Step 60,000
|
| 42 |
os.environ["MAX_LR"] = "1.0e-4" # Calibrated continuation LR to protect base weights
|
| 43 |
os.environ["MIN_LR"] = "1.0e-5"
|
| 44 |
os.environ["WARMUP_STEPS"] = "500"
|