runpod-compute

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

RunPod Compute

RunPod 计算资源

Use
runpodctl
CLI for persistent GPU pods with SSH access.
使用
runpodctl
CLI工具管理带有SSH访问权限的持久化GPU Pod。

Setup

配置步骤

bash
brew install runpod/runpodctl/runpodctl   # macOS
runpodctl config --apiKey=YOUR_KEY
bash
brew install runpod/runpodctl/runpodctl   # macOS
runpodctl config --apiKey=YOUR_KEY

Commands

常用命令

CommandDescription
runpodctl create pod --gpuType "NVIDIA A100 80GB PCIe" --imageName "runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04" --name experiment
Create a pod
runpodctl get pod
List all pods
runpodctl stop pod <id>
Stop (preserves volume)
runpodctl start pod <id>
Resume a stopped pod
runpodctl remove pod <id>
Terminate and delete
runpodctl gpu list
List available GPU types and prices
runpodctl send <file>
Transfer files to/from pods
runpodctl receive <code>
Receive transferred files
命令描述
runpodctl create pod --gpuType "NVIDIA A100 80GB PCIe" --imageName "runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04" --name experiment
创建Pod
runpodctl get pod
列出所有Pod
runpodctl stop pod <id>
停止Pod(保留存储卷)
runpodctl start pod <id>
恢复已停止的Pod
runpodctl remove pod <id>
终止并删除Pod
runpodctl gpu list
列出可用的GPU型号及价格
runpodctl send <file>
在本地与Pod间传输文件
runpodctl receive <code>
接收传输的文件

SSH access

SSH访问

bash
ssh root@<IP> -p <PORT> -i ~/.ssh/id_ed25519
Get connection details from
runpodctl get pod <id>
. Pods must expose port
22/tcp
.
bash
ssh root@<IP> -p <PORT> -i ~/.ssh/id_ed25519
runpodctl get pod <id>
命令中获取连接信息。Pod必须开放
22/tcp
端口。

GPU types

GPU型号

NVIDIA GeForce RTX 4090
,
NVIDIA RTX A6000
,
NVIDIA A40
,
NVIDIA A100 80GB PCIe
,
NVIDIA H100 80GB HBM3
NVIDIA GeForce RTX 4090
,
NVIDIA RTX A6000
,
NVIDIA A40
,
NVIDIA A100 80GB PCIe
,
NVIDIA H100 80GB HBM3

When to use

使用场景

  • Long-running experiments needing persistent state
  • Large dataset processing
  • Multi-step work with SSH access between iterations
  • Always stop or remove pods after experiments
  • Check availability:
    command -v runpodctl
  • 需要持久化状态的长期实验
  • 大型数据集处理
  • 迭代过程中需要SSH访问的多步骤工作
  • 实验结束后务必停止或删除Pod
  • 检查可用性:
    command -v runpodctl