# AMI AWS

If, for some reason, your computer doesn't meet the requirements, hardware (no GPU) or software (no CUDA or nvidia-docker), there is a quick way to try training & inference with Supervisely on Amazon EC2.

If you have an account on EC2, deploying Supervisely agent is easy as one-two-three:

### Step 1: Login into Amazon EC2 Console

[Sign in](https://console.aws.amazon.com/console/home) into your account. We suppose you already have an account on AWS. If not, [signup](https://portal.aws.amazon.com/billing/signup).

![](https://1080806899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4BHwRbuyIoH-xoF3Gv%2Fuploads%2Fgit-blob-01ea24052681ea68e24b6ed3f1e34f607091c8fe%2Fscreenshot-signin-aws-amazon-com-signin-1533487048057.jpg?alt=media)

### Step 2: Select AMI

Select EC2, open "Instances" section and click "Launch Instance" button.

![](https://1080806899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4BHwRbuyIoH-xoF3Gv%2Fuploads%2Fgit-blob-d95e89fc1982a32f790dc197ad7163c7fb763066%2FScreenshot%202021-03-18%20at%2021.33.21.png?alt=media)

Search for "Deep Learning AMI". You will see a bunch of out-of-the-box images that have Docker and CUDA installed - exactly what we are looking for. We suggest to use "Deep Learning AMI". Click "Select" button.

<figure><img src="https://1080806899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4BHwRbuyIoH-xoF3Gv%2Fuploads%2Fjavcqlh0nR1mEeM67OFf%2FGroup%205.png?alt=media&#x26;token=6c6e6074-00e3-4dc8-b02d-fff0a851d927" alt=""><figcaption></figcaption></figure>

### Step 3: Run the GPU instance

On a next step select "GPU compute" filter and select "p3.\*" instance type. We suggest using "p3.2xlarge".

Different AMIs need different storage - i.e. "Deep Learning AMI (Ubuntu)" comes with Anaconda and multiple versions of CUDA so it's 100 Gb of already taken space. We suggest to configure at least 200 Gb volume size, because agent will download pretty large docker images. You can also attach additional EBS volume and create a symlink to `~/.supervisely-agent` - this is where your model weights and images will be stored.

Click "Review and Launch" to start your instance.

![](https://1080806899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4BHwRbuyIoH-xoF3Gv%2Fuploads%2Fgit-blob-55d8cd9b0097d783bb244081c600803000b0207d%2Fscreenshot-us-west-2-console-aws-amazon-com-ec2-v2-home-1533486990103.png?alt=media)

### Step 4: Copy-paste command in the instance terminal

Connect to your new instance using ssh. Follow [those steps](https://docs.supervisely.com/agents/add_delete_node) to generate the agent deployment command and run it on your Amazon instance.

You can always stop your instance when you don't need your GPU resources to save money and start it again later. Supervisely agent should run automatically on instance startup.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.supervisely.com/agents/connect-your-computer/ami.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
