All documents
This use case involves creating a remote environment from Ubuntu template, then connecting via SSH to install the necessary PyTorch library to prepare it for your AI workload.
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. This use case will use VSCode.
See our detailed guide here for a full walkthrough.
apt update && apt install -y wget gnupg2 curl software-properties-common
apt install -y python3 python3-pip python3-venv
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
Check if pytorch is installed successfully
python 3
import torch
apt install vim
vim matrix_mulplication.py
python3 matrix_mulplication.py
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checbox-analytics | 11 months | |
cookielawinfo-checbox-functional | 11 months | |
cookielawinfo-checbox-others | 11 months | |
cookielawinfo-checkbox-necessary | 11 months | |
cookielawinfo-checkbox-performance | 11 months | |
viewed_cookie_policy | 11 months |