> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cudocompute.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PyTorch

> With CUDO Compute you can deploy PyTorch docker containers to the latest NVIDIA Ampere Architecture GPUs.

PyTorch is an open source framework for machine learning. With CUDO Compute you can deploy PyTorch docker containers to the latest NVIDIA Ampere Architecture GPUs. Accelerate training times and reduce training cost.
CUDO Compute GPU cloud provides images with NVIDIA drivers and Docker preinstalled.

Common uses for PyTorch:

* Deep Neural Networks (DNN)
* Convolutional Neural Networks (CNN)
* Conversational AI
* Recurrent Neural Networks (RNN)
* Reinforcement Learning
* Natural Language Processing (NLP)

## Prerequisites

* Create a project and [add an SSH key](/docs/tutorials/how-to-generate-ssh-keys)
* Optionally download [CLI tool](/cli-tool)
* Choose a virtual machine with an NVIDIA GPU and Configure
* Use the **Ubuntu 22.04 + NVIDIA drivers + Docker** image (in CLI tool type `-image ubuntu-nvidia-docker`)

## Deploy PyTorch to CUDO Compute

SSH into your virtual machine and run the following commands

```shell theme={null}
docker run --gpus all -it --rm pytorch/pytorch:latest
```

Or for the NVIDIA optimized PyTorch container

```shell theme={null}
docker run --gpus all -it --rm nvcr.io/nvidia/pytorch:22.08-py3
```

NGC tags can be found [here](https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch/tags)

At the prompt

```shell theme={null}
python
>>> import torch
>>> print(torch.cuda.is_available())
```
