Option 2 Turbo 4x 5090: micro_batch=16, grad_accum=2, ce_chunk=128
Browse files12345678910111213145 unmodified lines159160161162163164165166# ==============================================================================# ๐ ViuAI Sarus-500M โ Master SFT v3 (DUAL RTX 5090 - 2x DDP) Launcher# ==============================================================================# Hardware Target: 2x NVIDIA RTX 5090 (Blackwell 32GB VRAM each)# Training Profile:# - micro_batch = 8 per GPU (Uses ~14-16 GB / 32 GB VRAM -> 0% OOM Guarantee)# - grad_accum = 8# - Effective Batch Size = 8 * 2 * 8 = 128 (262,144 tokens per optimizer step)# - Expected Speed: ~55,000 - 65,000 tokens/sec# - Total Duration: ~3.8 to 4.2 hours for 2 Epochs (~783M Tokens)# ==============================================================================import os145 unmodified linesprint("=" * 85)nproc = min(2, max(1, gpu_count))# micro_batch=8: Maximum Tensor Core Throughput & Zero-Fragmentationmicro_batch = 8grad_accum = max(1, 128 // (micro_batch * nproc))effective_batch = micro_batch * nproc * grad_accumprint(f"๐ Hardware Setup: {nproc}x RTX 5090 | micro_batch={micro_batch} | grad_accum={grad_accum} | Effective Batch={effective_batch}")12345678910111213145 unmodified lines159160161162163164165166# ==============================================================================# ๐ ViuAI Sarus-500M โ Master SFT v3 (DUAL RTX 5090 - 2x DDP) Launcher (Turbo)# ==============================================================================# Hardware Target: 2x NVIDIA RTX 5090 (Blackwell 32GB VRAM each)# Training Profile:# - micro_batch = 16 per GPU (Uses ~15 GB / 32 GB VRAM -> 0% OOM Guarantee)# - grad_accum = 4# - Effective Batch Size = 16 * 2 * 4 = 128 (262,144 tokens per optimizer step)# - Expected Speed: ~90,000 - 110,000 tokens/sec# - Total Duration: ~2.5 to 3.0 hours for 2 Epochs (~783M Tokens)# ==============================================================================import os145 unmodified linesprint("=" * 85)nproc = min(2, max(1, gpu_count))# micro_batch=16: Turbo GPU Saturation (Option 2)micro_batch = 16grad_accum = max(1, 128 // (micro_batch * nproc))effective_batch = micro_batch * nproc * grad_accumprint(f"๐ Hardware Setup: {nproc}x RTX 5090 | micro_batch={micro_batch} | grad_accum={grad_accum} | Effective Batch={effective_batch}")
runners/RUN_DUAL_5090_MASTER_SFT_V3.txt+8-8