Chuyển tới nội dung chính

Ubuntu Use Case

Step 1: Create a GPU Container using Ubuntu template

  • Choose Ubuntu template
  • Select SSH Terminal Access

Step 2: Connect your container via SSH by using VSCode

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.

See our detailed guide here for a full walkthrough.

Step 3: Setting Up Your Environment

  1. Install python3
apt update && apt install -y wget gnupg2 curl software-properties-common 
apt install -y python3 python3-pip python3-venv
  1. Install Pytorch
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124

Check if pytorch is installed successfully

python 3 
import torch 
  1. Run a simple matrix algorithm
apt install vim 
vim matrix_mulplication.py
python3 matrix_mulplication.py

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://ai-docs.fptcloud.com/fpt-gpu-cloud/gpu-container/use-cases/ubuntu-use-case.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.