Repository navigation
v0.2.0 — Multi-Slot GPU VMs & Offline Competition Runner
·
18 commits
to main
since this release
Changelog
All notable changes to kaggle-shell-mcp (kgsh) will be documented in this file.
[0.2.0] - 2026-11-25
Added
- Multi-Slot Concurrent GPU Architecture (
slot="1","2","1,2"):- Run up to 2 parallel headless Kaggle GPU sessions simultaneously (
4 × Tesla T4 = 60 GB VRAM) with isolated kernel slugs, isolated handshake datasets, and a cross-process file-locked.kaggle_mcp/sessions.jsonstore (auto-migrating legacyactive_session.json). - Added per-job GPU pinning (
gpu_ids/--gpus) injob_spawnvia isolatedCUDA_VISIBLE_DEVICES, enabling up to 4 concurrent single-GPU experiments across 2 Dual-T4 VMs. - Added
slot="all"support inkaggle_statusandkaggle_down, plus automatic stale-session cleanup when Kaggle reports terminal kernel states (COMPLETE,ERROR,CANCEL_ACKNOWLEDGED).
- Run up to 2 parallel headless Kaggle GPU sessions simultaneously (
- Full Hardware Accelerator, Competition & Model Hub Support (
accelerators.py):- Added
acceleratoraliases and passthrough shapes (NvidiaTeslaT4,NvidiaL4,NvidiaL4x4,NvidiaRtxPro6000,NvidiaH100,TpuV5E8,TpuV6E8,cpu). - Automatic TPU runtime window adjustment (
8h35mSIGTERMdrain /8h40mclean exit before Kaggle's 9h TPU cap). - Added
competition(competition_sources) andmount_models(model_sources) parameters with immediate source-validation error reporting fromApiSaveKernelResponse.
- Added
- Offline Competition Runner & Live Host SSE Logs (
batch.py):kaggle_wheelhouse(kgsh wheels): Builds Linuxmanylinux_x86_64binary wheel datasets for air-gapped kernels.kaggle_batch_run(kgsh batch-run): Runs competition jobs withenable_internet=Falseusing atomic inline code embedding (<= 512 KB) or.kgshdataset archives (> 512 KB, preventing Kaggle auto-decompression races).kaggle_batch_logs(kgsh batch-logs): Non-blocking windowed Host SSE log reader (kernels_logs_stream) that streams live logs even when container internet access is disabled.
[0.1.0] - 2026-11-24
Added
- Headless 12h Kaggle Dual-T4 Provisioner (
kaggle_up,kaggle_status,kaggle_down): Boots background Kaggle GPU kernels (NvidiaTeslaT4, 2×15 GB VRAM) via Kaggle API with zero browser interaction. - Zero-Setup Tunnel & Private Dataset Handshake: Automatic
cloudflaredQuick Tunnel supervisor paired with private Kaggle Dataset state sync (<user>/kaggle-mcp-state), plus optional Tailscale userspace networking (TS_AUTHKEY). - Stateful Remote PTY (
term_exec): Persistent/bin/bashPTY preservingcwd, shell exports, Conda/venv environments, and native CUDA paths. - Detached Background Job Engine (
job_spawn,job_list,job_logs,job_kill): Process-group isolated training jobs with persistent logs in/kaggle/working/mcp_logsand automatictqdmcarriage-return (\r) compaction. - Filtered Tar Streaming (
fs_sync): Fast bidirectional directory/file sync ignoring.git,.venv,__pycache__, andnode_modules. - Snapshot & Optional Idle Watchdogs: Graceful
SIGTERMcheckpoint flush at11h35m+ cleanexit(0)at11h40m(preserving/kaggle/workingsnapshots before Kaggle's 12h reaper), plus opt-in idle GPU auto-shutdown (idle_timeout_min, disabled by default). - Dual Interface: Full Model Context Protocol (
stdio) server (mcpv1 & v2 compatible) and shortkgshCLI (kaggle-shell-mcp&kaggle-mcpaliases included).