baseten train workstation create starts one without a config.py: it configures an SSH session with InteractiveSessionTrigger.ON_STARTUP and runs sleep infinity to keep the container alive. A multi-node workstation runs the Slurm bootstrap instead.
Prerequisites
- Training Jobs enabled for your organization. See Request access.
- SSH set up on your machine. See Set up SSH.
- uv on your
PATH. The Baseten CLI runs Truss through uv to push jobs and create workstations.
Create and connect
To create a workstation and connect:-
Create the workstation. For example:
The output lists the SSH host of each node,Terminal
training-job-<job_id>-<node>.ssh.baseten.co. Copy<job_id>from it. The output also prints Truss commands for logs and stopping; use the Baseten CLI commands on this page instead. For all options, seebaseten train workstation. -
When
baseten train job describe --job-id <job_id>showsStatus: running, connect:You’re connected when you see a shell prompt likeTerminalroot@baseten-training-job-<job_id>-multinode-0:~#. -
When you finish, stop the workstation and confirm when prompted:
--node-count instead of --gpu-count: Baseten bootstraps a Slurm cluster across the nodes. See Slurm workstations.
Keep files in your home directory
Persistent home directories are in beta. Contact us to enable them for your organization.baseten train workstation create doesn’t have a --persistent-home flag. To keep files in your home directory after the workstation ends, run the Truss workstation command through the Baseten CLI with --persistent-home:
Terminal
$HOME on the project cache at $BT_PROJECT_CACHE_DIR/homes/<job_id> and deletes it 7 days after the workstation ends. A new workstation gets a new home directory; to read an earlier one, open $BT_PROJECT_CACHE_DIR/homes/<earlier_job_id>. For a job defined in config.py, set persistent_home=True and enabled=True on its CacheConfig.
Next steps
- Slurm workstations: Run a multi-node workstation with a Slurm cluster.
- Connect to a training job over SSH: Transfer files and open the container in your editor.