🤖 AI/ML

RunPod

GPU Cloud Platform

A GPU cloud computing platform. Rents A100 and H100 GPUs by the second. Up to 77% cheaper than AWS.

📖 Detailed Explanation

RunPod is a GPU cloud platform for AI/ML workloads. It offers the latest NVIDIA GPUs such as the A100 and H100 with per-second billing, and is characterized by prices up to 77% lower than AWS or GCP. It is widely used for Stable Diffusion, LLM inference, model training, and more.

Founded in 2020, it has grown rapidly in the GPU cloud market. With a simplified interface and ML-specific features compared to traditional clouds, it is widely adopted by everyone from individual developers to startups. It offers two options: Community Cloud and Secure Cloud.

Its core feature is Serverless GPU. No costs are incurred when there are no requests, and a GPU is automatically allocated when a request comes in. Environments can be easily configured based on Docker containers, and Stable Diffusion, ComfyUI, and others can be deployed with one click through templates.

Data transfer (Ingress/Egress) is free, and data can be retained with Persistent Storage, making it efficient for repetitive ML experiments. In particular, it has established itself as the most popular cloud platform in the Stable Diffusion community.

💻 Code Example

import runpod

# RunPod API 키 설정
runpod.api_key = "your_api_key_here"

# Serverless 엔드포인트 호출 예시
def run_inference():
    """RunPod Serverless로 추론 실행"""
    endpoint = runpod.Endpoint("your_endpoint_id")

    # 동기 실행 (결과 대기)
    result = endpoint.run_sync({
        "input": {
            "prompt": "A futuristic city at sunset",
            "num_inference_steps": 30
        }
    }, timeout=120)

    return result

# Pod 생성 예시 (On-Demand)
def create_pod():
    """GPU Pod 생성"""
    pod = runpod.create_pod(
        name="my-training-pod",
        image_name="runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04",
        gpu_type_id="NVIDIA A100 80GB PCIe",
        gpu_count=1,
        volume_in_gb=50,
        container_disk_in_gb=20,
        ports="8888/http,22/tcp",  # Jupyter + SSH
        env={
            "JUPYTER_PASSWORD": "your_password"
        }
    )
    print(f"Pod 생성됨: {pod['id']}")
    return pod

# Serverless Worker 핸들러 예시
def handler(event):
    """Serverless endpoint handler"""
    prompt = event["input"]["prompt"]
    # 모델 추론 로직
    result = model.generate(prompt)
    return {"output": result}

runpod.serverless.start({"handler": handler})

📊 Performance & Cost

These are RunPod GPU prices as of January 2025. Billing is per second, and additional discounts are available for long-term commitments.

GPU Model VRAM On-Demand (per hour) 1-Year Commitment (per hour)
NVIDIA H100 SXM 80GB $2.69 $2.65
NVIDIA A100 SXM 80GB $1.39 $1.22
NVIDIA A100 PCIe 80GB $1.19 $1.14
NVIDIA RTX 4090 24GB $0.44 $0.39
NVIDIA RTX 3090 24GB $0.22 $0.20

Comparison: AWS p5.48xlarge (8 H100s) costs $98.32 per hour, but the same configuration on RunPod is about $21.52, a 77% savings. The free data transfer is also a big advantage.

🗣️ Say It Like This in Practice

💬 In a GPU Cost Discussion
"If you use a RunPod A100 80GB for LLM fine-tuning, it's $1.19 per hour. That's over 95% cheaper than AWS p4d.24xlarge at $32/hour. A 2-hour LoRA fine-tuning of a 7B model can be done for under $3."
💬 In a Stable Diffusion Deployment Discussion
"RunPod is the best fit for serverless Stable Diffusion deployment. Cold start time is around 10 seconds, and cost is $0 when there are no requests. You can deploy Automatic1111 or ComfyUI with one click from the templates."
💬 In an Interview
"I built a 70B model inference server for a personal project using RunPod. With the Serverless feature, the GPU is activated only when requests come in, so I kept monthly costs under $50 while achieving response times under 2 seconds over 99% of the time."

Take a mock interview on this topic → WIA SOOM AI Interview · Start for free

⚠️ Common Mistakes & Cautions

❌
Leaving Pods running without shutting them down

If you don't Stop a Pod after use, you will keep being billed. Be sure to enable automatic shutdown (Idle Timeout).

❌
Storing sensitive data on Community Cloud

Community Cloud is cheaper, but it runs on hardware from individual GPU providers. Use Secure Cloud for sensitive data.

✅
The right way

Store model weights on a Network Volume so they persist when a Pod restarts, and design Serverless workloads with cold start time in mind.

🔗 Related Terms

📚 Learn More