Skip to content

Start a CUDA Python workload with Ubuntu or PyTorch

Verify GPU access and run Python compute inside a compatible GPU template.

Before you start

Deploy an available certified Ubuntu/PyTorch-compatible template and connect with the rental’s SSH command.

Steps

  1. Use nvidia-smi inside the container to confirm the assigned GPU and driver visibility.
  2. Check the template’s Python and PyTorch installation before adding packages.
  3. Create a project directory under the persistent workspace mount and keep datasets and outputs there.
  4. Run a small CUDA tensor operation before starting a long training or inference job. Confirm that the device reports CUDA, not CPU.
  5. Record package versions and your workload command. Watch container logs or your own output and save checkpoints frequently.

Example

nvidia-smi
python -c "import torch; print(torch.cuda.is_available()); print(torch.ones(4, device='cuda'))"

Check the result

The small test completes on CUDA and workspace files remain available after a supported stop/start.

Troubleshooting

A host GPU can be available even when a container’s CUDA libraries are incompatible. Check the image’s supported driver/runtime and avoid blindly upgrading all GPU packages.

Last updated October 12, 2026. Availability and prices are shown in the console before checkout.
Still need help? Open a support ticket with your service name, the time of the issue, and a redacted error message. Never include passwords or API keys.