需先在 beam.cloud 注册账号并按 Getting Started 指南完成配置才能使用;自托管与托管云是两种部署方式,需自行选择;示例中 GPU 型号与资源配置需按实际环境调整。
beta9
beam-cloudAGPL-3.0活跃维护面向 GPU 工作负载的无服务器平台,可快速部署推理服务、沙箱和后台任务,按需自动扩缩容,省去自建集群的运维成本。
Ultrafast serverless GPU inference, sandboxes, and background jobs
pip install beam-clientREADME 未说明具体显存要求;GPU 支持可运行在 Beam 云端的 4090、H100 等型号,也可自带 GPU。
开源无服务器 AI 运行时,用 Python 接口部署和扩展 GPU 推理、沙箱与后台任务
面向 GPU 工作负载的无服务器平台,可快速部署推理服务、沙箱和后台任务,按需自动扩缩容,省去自建集群的运维成本。
核心能力
- 自定义容器运行时与调度器实现亚秒级冷启动
- 用装饰器把函数变成自动扩缩容的推理端点
- 按队列深度自动伸缩容器,支持数百容器并发
- 内置沙箱容器运行 LLM 生成的代码
- 支持分布式卷存储与定时、重试的后台任务队列
容易踩的坑
- gateway-0.1.853Gateway: 0.1.8532026-11-09 · 2026-11-09 15:20 UTC
查看更新说明
What's Changed
- Fix stuck worker rollouts by @luke-lombardi in https://github.com/beam-cloud/beta9/pull/2127
Full Changelog: https://github.com/beam-cloud/beta9/compare/gateway-0.1.852...gateway-0.1.853
- worker-0.1.830Worker: 0.1.830最新正式版2026-11-09 · 2026-11-09 15:20 UTC
What's Changed
- Fix stuck worker rollouts by @luke-lombardi in https://github.com/beam-cloud/beta9/pull/2127
Full Changelog: https://github.com/beam-cloud/beta9/compare/worker-0.1.829...worker-0.1.830
- gateway-0.1.852Gateway: 0.1.8522026-11-07 · 2026-11-07 21:58 UTC
查看更新说明
What's Changed
- Fix agent routes and eviction retries by @luke-lombardi in https://github.com/beam-cloud/beta9/pull/2126
Full Changelog: https://github.com/beam-cloud/beta9/compare/gateway-0.1.851...gateway-0.1.852
- worker-0.1.829Worker: 0.1.8292026-11-07 · 2026-11-07 21:58 UTC
查看更新说明
What's Changed
- Start VMs from templates in setup vm and give template VMs SSH by @luke-lombardi in https://github.com/beam-cloud/beta9/pull/2115
- Add the VM template recipes behind beam.cloud/templates by @luke-lombardi in https://github.com/beam-cloud/beta9/pull/2119
- Fix Pod log-stream cleanup race by @luke-lombardi in https://github.com/beam-cloud/beta9/pull/2120
- Run the Blender VM template on an RTX 4090 by @luke-lombardi in https://github.com/beam-cloud/beta9/pull/2121
- Fix desktop and kiosk iframe embedding by @luke-lombardi in https://github.com/beam-cloud/beta9/pull/2122
- Add a KiCad VM template recipe by @luke-lombardi in https://github.com/beam-cloud/beta9/pull/2124
- Improve machine inventory by @luke-lombardi in https://github.com/beam-cloud/beta9/pull/2123
- Avoid blocked worker queues after container state expires by @luke-lombardi in https://github.com/beam-cloud/beta9/pull/2125
- Fix agent routes and eviction retries by @luke-lombardi in https://github.com/beam-cloud/beta9/pull/2126
Full Changelog: https://github.com/beam-cloud/beta9/compare/worker-0.1.828...worker-0.1.829
- gateway-0.1.8512026-11-07 · 2026-11-07 19:11 UTC
查看更新说明
Bug Fixes
- fix: Skip expired container requests so live work can continue after a worker outage by @luke-lombardi in https://github.com/beam-cloud/beta9/pull/2125
Full Changelog: https://github.com/beam-cloud/beta9/compare/gateway-0.1.850...gateway-0.1.851
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Run AI Workloads at Scale
Beam is a fast, open-source runtime for serverless AI workloads. It gives you a Pythonic interface to deploy and scale AI applications with zero infrastructure overhead.

✨ Features
- Fast Cold Starts: Launch containers in under a second using a custom container runtime, scheduler, and embedded caching
- Parallelization and Concurrency: Fan out workloads to 100s of containers
- First-Class Developer Experience: Hot-reloading, webhooks, and scheduled jobs
- Scale-to-Zero: Workloads are serverless by default
- Volume Storage: Mount distributed storage volumes
- GPU Support: Run on our cloud (4090s, H100s, and more) or bring your own GPUs
📦 Installation
pip install beam-client
⚡️ Quickstart
- Create an account here
- Follow our Getting Started Guide
Creating a sandbox
Spin up isolated containers to run LLM-generated code:
from beam import Image, Sandbox
sandbox = Sandbox(image=Image()).create()
response = sandbox.process.run_code("print('I am running remotely')")
print(response.result)
Deploy a serverless inference endpoint
Create an autoscaling endpoint for your custom model:
from beam import Image, endpoint
from beam import QueueDepthAutoscaler
@endpoint(
image=Image(python_version="python3.11"),
gpu="A10G",
cpu=2,
memory="16Gi",
autoscaler=QueueDepthAutoscaler(max_containers=5, tasks_per_container=30)
)
def handler():
return {"label": "cat", "confidence": 0.97}
Run background tasks
Schedule resilient background tasks (or replace your Celery queue) by adding a simple decorator:
from beam import Image, TaskPolicy, schema, task_queue
class Input(schema.Schema):
image_url = schema.String()
@task_queue(
name="image-processor",
image=Image(python_version="python3.11"),
cpu=1,
memory=1024,
inputs=Input,
task_policy=TaskPolicy(max_retries=3),
)
def my_background_task(input: Input, *, context):
image_url = input.image_url
print(f"Processing image: {image_url}")
return {"image_url": image_url}
if __name__ == "__main__":
# Invoke a background task from your app (without deploying it)
my_background_task.put(image_url="https://example.com/image.jpg")
# You can also deploy this behind a versioned endpoint with:
# beam deploy app.py:my_background_task --name image-processor
Self-Hosting vs Cloud
Beta9 is the open-source engine powering Beam, our fully-managed cloud platform. You can self-host Beta9 for free or choose managed cloud hosting through Beam.
👋 Contributing
We welcome contributions big or small. These are the most helpful things for us:
- Submit a feature request or bug report
- Open a PR with a new feature or improvement