Build and deploy serverless Python on GPUs — in seconds, not hours.
| Install | Getting Started | Examples | Documentation |
Targon SDK is a Python framework for building and deploying serverless applications on the Targon platform. Define your app, decorate your functions, and deploy — the SDK handles containers, scaling, and infrastructure.
- Zero infrastructure — No containers to build, no clusters to manage
- GPU-first — H100, H200, and more. Request with
resource="h200-small" - Web endpoints —
@targon.fastapi_endpoint()turns functions into APIs - Scales to zero — Pay only when your code runs
- Custom images — Build containers in Python with
pip_install(),env(), and more
Stability: The Targon SDK follows semantic versioning. Breaking changes are only introduced in major releases.
Requires Python 3.9+
pip install targon-sdkInstall from source
git clone https://github.com/manifold-inc/targon-sdk.git
cd targon-sdk
pip install -e .import targon
app = targon.App("hello-world", image=targon.Image.debian_slim())
@app.function(resource=targon.Compute.CPU_SMALL)
def greet(name: str) -> str:
return f"Hello, {name}!"
@app.local_entrypoint()
def main():
print(greet.remote("World"))# Authenticate
targon setup
# Run remotely
targon run hello.py
# Deploy as a service
targon deploy hello.pyWe welcome contributions! Please see our contributing guidelines before submitting PRs.
- Fork the repository
- Create a feature branch
- Make your changes with tests
- Submit a pull request
See CHANGELOG.md for release notes.
Apache 2.0 — see LICENSE for details.