⚡ SpotWarp: Zero-Loss Fault-Tolerance & Checkpoint Recovery for SaladCloud
SaladCloud offers the most cost-effective distributed GPU compute in the world. However, because residential and gaming nodes can disconnect or be preempted at any moment, running multi-hour PyTorch training, LoRA fine-tuning, or stateful generative jobs without automated checkpoint protection risks losing hours of progress.
SpotWarp is a lightweight, 100% local client-side daemon and companion SaladCloud Container Recipe designed exclusively to keep your workloads locked and running inside SaladCloud (Salad ➡️ Salad Same-Cloud Recovery). It continuously streams incremental /workspace backups to your local machine over SSH (rsync/scp) and automatically restores your exact training state onto the replacement SaladCloud node the moment a reallocation occurs—with zero S3 storage fees and zero cloud controller VM overhead.
🆚 SaladCloud Workloads: Standard vs. With SpotWarp
| Feature | Standard Interruptible Container | With SpotWarp (v3.5.2) |
|---|---|---|
| Workspace State on Node Preemption | Ephemeral container storage is wiped when the host disconnects. | Continuously backed up to your local machine in the background before preemption happens. |
| Node Reallocation Handling | New Salad node starts with a clean slate (Epoch 0). |
100% Autopilot (Salad ➡️ Salad). Detects the replacement Salad node and restores /workspace automatically. |
| External Cloud Storage Cost | Requires paying for S3/GCS buckets and egress bandwidth. | $0 Cloud Storage Overhead. Syncs directly between your Salad container and your local workstation. |
| Workload Continuation | Manual SSH intervention required. | Auto-Resume. Automatically triggers your --resume-cmd inside the new Salad container via nohup. |
| Credential Security | Placing third-party storage keys inside remote containers. | Zero Key Leakage. Your SALAD_API_KEY and SSH private keys never leave your local machine. |
💎 Core Architecture & Features
- 🛡️ Same-Cloud Retention (
Salad ➡️ Salad): Built specifically to keep long-running AI workloads inside SaladCloud. When an edge node disconnects, SpotWarp waits for SaladCloud Container Engine (SCE) to allocate a replacement node in your container group, verifies SSH gateway readiness, and restores your workspace automatically. - ⚡ Continuous Delta-Sync Backup: Runs background
rsync(orscpon Windows) incremental syncs of/workspace/every 30 seconds while skipping files modified within the last 10 seconds to prevent torn checkpoint reads. - 🔁 Warm Standby (on by default): While SpotWarp guards a container group it keeps the group at 2 replicas, so a second node is already running when the active one is lost. In our live test (2026-10-21, one run, 5 MB checkpoint) the restore and restart took 17.1 s once the standby was running. The second replica is billed by SaladCloud like any other running replica. Turn it off with
--no-standby(orSPOTWARP_WARM_STANDBY=0, or"warm_standby": falsein~/.spotwarp/config.json). Without a standby, recovery waits for SaladCloud to allocate a new node, which takes minutes. - 🔑 Twelve-Factor Encrypted Secret Support: Follows SaladCloud best practices by reading
LICENSE_KEYvia encrypted environment variables, with a built-in Zero-Friction 14-Day SaladCloud Evaluation Mode (SALAD-TRIAL) so developers can deploy from the Salad Portal with zero initial sign-up friction. - 🔒 100% Local Execution: No third-party proxy servers or cloud controller VMs required.
🚀 Quick Start with SaladCloud
Step 1. Deploy the Container on SaladCloud
Use the official recipe specification in recipes/salad/salad_recipe.json or deploy ghcr.io/enplabs/spotwarp:pytorch2.1 on the SaladCloud Portal with SSH enabled and your public key attached.
Step 2. Install the Local Guard Daemon
On your local workstation (Linux, macOS, or Windows):
pip install --upgrade spotwarp
Or via universal 1-liner:
# Linux / macOS
curl -fsSL https://gpu-action.com/install.sh | bash
# Windows PowerShell
irm https://gpu-action.com/install.ps1 | iex
Step 3. Configure & Start Same-Cloud Protection
# Interactive 30-second setup (saves SALAD_API_KEY and SALAD_ORG locally)
spotwarp init
# Start 24/7 background guard with automatic training resume
spotwarp start -d --org <YOUR_SALAD_ORG> --container <CONTAINER_NAME> \
--resume-cmd "python3 /workspace/train.py --resume"
# Add --no-standby to skip the second (warm standby) replica and its cost
Step 4. Manage the Daemon
spotwarp status # Check active Salad container monitoring & PID
spotwarp stop # Stop background daemon
spotwarp config # View local configuration
⚙️ How Salad ➡️ Salad Recovery Works
[SaladCloud Node A] [Your Local Workstation] [SaladCloud Node B]
(Active Training) (SpotWarp Daemon) (Replacement Allocated)
│ │ │
│ ─── (1. Continuous rsync/scp) ──────> │ (Cached /workspace) │
│ │ │
[🚨 Preempted!] │ │
❌ ─── (2. Detected via Salad API) ────> │ │
│ ─── (3. Verify New Node SSH) ─────> │
│ ─── (4. Upload /workspace) ───────> │
│ ─── (5. Execute --resume-cmd) ────> [Training Resumed!]
- Continuous Backup: SpotWarp syncs
/workspace/from your active Salad container (ssh_ip:ssh_port) to./backups/<container_name>/. - Preemption Detection: SpotWarp polls the SaladCloud Container Engine API every 5 seconds.
- Replacement Verification: As soon as SaladCloud allocates a new running instance for your container group, SpotWarp verifies SSH connectivity through the Salad gateway.
- Zero-Loss Restoration & Auto-Resume: Cached checkpoints are uploaded to
/workspace/on the new Salad node, and your--resume-cmdis launched automatically in the background.
📄 License
Distributed under the MIT License. All client daemon logic executes locally in user space.
Metadata
Release files for spotwarp 3.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spotwarp-3.5.2.tar.gz | 18.7 kB | Without provenance | Details for spotwarp-3.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spotwarp-3.5.2-py3-none-any.whl | Python 3 | none | any | Details for spotwarp-3.5.2-py3-none-any.whl |
Total release size: 34.4 kB
Release files / spotwarp-3.5.2.tar.gz
| Download URL | spotwarp-3.5.2.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd74e4a76bdd7b888db28828f5d2d13b1103dbae2bb719566fd027d4d1e97be8
|
|
BLAKE2b-256 checksum How to use checksums |
54721e13665659c464a8f3f00b1b8fe382ce4cf9bf2de0177b94acf2a86a7ae9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Release files / spotwarp-3.5.2-py3-none-any.whl
| Download URL | spotwarp-3.5.2-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
203873e1c7f54344c22add674a97200873bf95e01ab63dddc86f6d9e0ba7edaa
|
|
BLAKE2b-256 checksum How to use checksums |
c8ef713d89d2391252bcb85ed6b5d1301c15efc81fff187f3ca59e1b0f042559
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Security for spotwarp 3.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.