Sailboxes vs. Tensorlake: CPU minimums and memory billing
Sail charges for the CPU you use. A higher CPU limit alone does not increase the charge. Tensorlake charges for at least 20% of allocated CPU while the sandbox runs. It charges for the full allocation if it cannot measure CPU use. Sail bills for the RAM the Sailbox holds. Tensorlake bills for all allocated RAM while the sandbox runs. Sail pricing · Tensorlake pricingCreate the Sailbox
Install the Sail Python SDK on the machine that runs your controller. Runpython -m pip install sail. Sign in with sail auth login. Create one Sailbox per session. This example saves its ID in a local file. In your application, store the ID with the agent session.
Transfer files
Replace Tensorlake’ssandbox.write_file(path, data) with sb.fs.write(path, data). Run this code from the directory that contains worker.py and job.json. The example worker reads /tmp/job.json and writes /tmp/result.json inside the Sailbox. Use the paths your worker needs.
Run your existing worker
Pass the command and its arguments tosb.run() as a single list.