Upload code/train_sft_v5.py with huggingface_hub
Browse files162 unmodified lines163164165166167168169170162 unmodified lines# Load Model Base Weightslog("🚀 Initializing ViuAI-500M Model for V5 Training...")try:ckpt_path = hf_hub_download(repo_id=MAIN_REPO, filename="sft_checkpoints/sft_v4/sft_ckpt_latest.pt", token=HF_TOKEN)except:ckpt_path = hf_hub_download(repo_id=MAIN_REPO, filename="checkpoints/ckpt_latest.pt", token=HF_TOKEN)checkpoint = torch.load(ckpt_path, map_location="cpu", weights_only=False)162 unmodified lines163164165166167168169170171162 unmodified lines# Load Model Base Weightslog("🚀 Initializing ViuAI-500M Model for V5 Training...")try:ckpt_path = hf_hub_download(repo_id=MAIN_REPO, filename="sft_checkpoints/sft_v3/sft_ckpt_latest.pt", token=HF_TOKEN)except:log("⚠️ V3 checkpoint not found! Falling back to Base Model...")ckpt_path = hf_hub_download(repo_id=MAIN_REPO, filename="checkpoints/ckpt_latest.pt", token=HF_TOKEN)checkpoint = torch.load(ckpt_path, map_location="cpu", weights_only=False)
code/train_sft_v5.py+2-1