runpod/runpod-python
🐍 | Python library for Runpod API and serverless worker SDK.
What it solves
Runpod Python simplifies the process of running heavy computational tasks, like AI model inference or fine-tuning, on cloud-based GPUs. It removes the complexity of managing infrastructure by allowing developers to define GPU-accelerated functions in their local code and execute them in the cloud with simple decorators.
How it works
The library provides a Python interface to define tasks and queues that run on remote cloud infrastructure. You use decorators like @app.queue or @app.task to specify GPU requirements, dependencies, and models. The accompanying rp CLI handles authentication, secret management, and deployment. It supports two main workflows: a development mode that streams logs and updates in real-time, and a production deployment mode. It also includes an SDK for building custom serverless API endpoints.
Who it’s for
This tool is designed for developers and data scientists who want to run Python code on powerful GPUs without manually configuring cloud servers, managing Docker containers, or handling complex deployment pipelines.
Highlights
- One-decorator cloud execution for GPU-accelerated Python functions.
- Built-in support for autoscaling job queues and ephemeral task pods.
- Live development workflow with real-time log streaming.
- Integrated secret management for secure handling of sensitive tokens.
- SDK for creating and testing custom serverless API workers locally before deployment.
Related
- Project
- Dispatch
- Project
- Project
- Project