> For the complete documentation index, see [llms.txt](https://ai-docs.fptcloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ai-docs.fptcloud.com/fpt-gpu-cloud/gpu-container/use-cases/ubuntu-use-case.md).

# Ubuntu Use Case

Use an Ubuntu template and SSH to create a remote environment. Then, SSH into it, install the CUDA driver and PyTorch.

**Step 1**: Create a GPU Container using Ubuntu template&#x20;

* Choose Ubuntu template&#x20;
* Select SSH Terminal Access&#x20;

<figure><img src="https://2158065032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FDB5fvsiFxYI972UDTv%2Fuploads%2F8ZyzGH12ZqB7MSMoyvHd%2FScreenshot%202025-12-09%20at%2018.18.42.png?alt=media&amp;token=621f4121-3418-4e24-b1e0-483f1f5d1abe" alt=""><figcaption></figcaption></figure>

&#x20;

**Step 2**: Connect your container via SSH by using VSCode&#x20;

To connect via SSH, copy the command and paste it into your terminal. You can use any terminal application, such as Command Prompt, PowerShell, or the integrated terminal in VS Code. &#x20;

<figure><img src="https://2158065032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FDB5fvsiFxYI972UDTv%2Fuploads%2FglRwC1iYmo3tBvVu2Xh2%2FScreenshot%202025-12-09%20at%2018.20.57.png?alt=media&amp;token=3207fa72-070a-4d8b-b4d5-0c4f405cf798" alt=""><figcaption></figcaption></figure>

See our detailed guide here for a full walkthrough.&#x20;

**Step 3**: Setting Up Your Environment&#x20;

1. Install python3&#x20;

```
apt update && apt install -y wget gnupg2 curl software-properties-common 
apt install -y python3 python3-pip python3-venv 
```

2. Install Pytorch&#x20;

```
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
```

Check if pytorch is installed successfully&#x20;

<pre><code><strong>python 3 
</strong>import torch 
</code></pre>

3. Run a simple matrix algorithm&#x20;

```
apt install vim 
vim matrix_mulplication.py 
python3 matrix_mulplication.py
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ai-docs.fptcloud.com/fpt-gpu-cloud/gpu-container/use-cases/ubuntu-use-case.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
