Upload runners/SFT_V19_TESTING_KAGGLE.txt with huggingface_hub
Browse files1234567846 unmodified lines555657585960616263646566676869707172737475# ==============================================================================# 🧪 ViuAI Sarus-500M — SFT v19 Complete 1-Click Kaggle Testing & Benchmark# ==============================================================================# Run this entire cell in a fresh Kaggle Notebook cell.# Works on GPU (T4 / P100 / A100 / H100) or CPU.# ==============================================================================import os46 unmodified linesshutil.copy(dl_ckpt, ckpt_local)print(f" ✅ Synced {ckpt_local}")# 3. Setup Imports & Deviceimport importlib.utildef load_module_from_file(module_name, file_path):spec = importlib.util.spec_from_file_location(module_name, file_path)mod = importlib.util.module_from_spec(spec)sys.modules[module_name] = modspec.loader.exec_module(mod)return modmodel_module = load_module_from_file("custom_viuai_model", "code/model.py")config_module = load_module_from_file("custom_viuai_config", "code/config.py")ViuAI = model_module.ViuAIViuAIConfig = config_module.ViuAIConfigdevice = torch.device("cuda" if torch.cuda.is_available() else "cpu")dtype = torch.bfloat16 if (torch.cuda.is_available() and torch.cuda.is_bf16_supported()) else torch.float16 if torch.cuda.is_available() else torch.float32123456746 unmodified lines545556575859606162636465666768# ==============================================================================# 🧪 ViuAI Sarus-500M — SFT v19 Complete 1-Click Kaggle Testing & Benchmark# ==============================================================================# Run this entire cell in a fresh Kaggle Notebook cell (GPU T4 / P100 / CPU).# ==============================================================================import os46 unmodified linesshutil.copy(dl_ckpt, ckpt_local)print(f" ✅ Synced {ckpt_local}")# 3. Setup Python Path & Direct Module Importscode_dir = os.path.abspath("code")if code_dir not in sys.path:sys.path.insert(0, code_dir)if os.path.abspath(".") not in sys.path:sys.path.insert(0, os.path.abspath("."))from config import ViuAIConfigfrom model import ViuAIdevice = torch.device("cuda" if torch.cuda.is_available() else "cpu")dtype = torch.bfloat16 if (torch.cuda.is_available() and torch.cuda.is_bf16_supported()) else torch.float16 if torch.cuda.is_available() else torch.float32
runners/SFT_V19_TESTING_KAGGLE.txt+9-16