beta9

beam-cloudAGPL-3.0活跃维护

面向 GPU 工作负载的无服务器平台,可快速部署推理服务、沙箱和后台任务,按需自动扩缩容,省去自建集群的运维成本。

Ultrafast serverless GPU inference, sandboxes, and background jobs

worker-0.1.830发布于 2026-11-09 15:20 UTC1,847star175fork同步于 2026-11-10 05:52 UTC

怎么上手

由 README 提炼,执行前请确认
pip install beam-client
硬件要求按 README 说明

README 未说明具体显存要求;GPU 支持可运行在 Beam 云端的 4090、H100 等型号,也可自带 GPU。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

开源无服务器 AI 运行时,用 Python 接口部署和扩展 GPU 推理、沙箱与后台任务

面向 GPU 工作负载的无服务器平台,可快速部署推理服务、沙箱和后台任务,按需自动扩缩容,省去自建集群的运维成本。

核心能力

  • 自定义容器运行时与调度器实现亚秒级冷启动
  • 用装饰器把函数变成自动扩缩容的推理端点
  • 按队列深度自动伸缩容器,支持数百容器并发
  • 内置沙箱容器运行 LLM 生成的代码
  • 支持分布式卷存储与定时、重试的后台任务队列

容易踩的坑

需先在 beam.cloud 注册账号并按 Getting Started 指南完成配置才能使用;自托管与托管云是两种部署方式,需自行选择;示例中 GPU 型号与资源配置需按实际环境调整。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本worker-0.1.830
  1. gateway-0.1.853Gateway: 0.1.8532026-11-09 · 2026-11-09 15:20 UTC
    查看更新说明
  2. worker-0.1.830Worker: 0.1.830最新正式版2026-11-09 · 2026-11-09 15:20 UTC
  3. gateway-0.1.852Gateway: 0.1.8522026-11-07 · 2026-11-07 21:58 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/beam-cloud/beta9/compare/gateway-0.1.851...gateway-0.1.852

  4. worker-0.1.829Worker: 0.1.8292026-11-07 · 2026-11-07 21:58 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/beam-cloud/beta9/compare/worker-0.1.828...worker-0.1.829

  5. gateway-0.1.8512026-11-07 · 2026-11-07 19:11 UTC
    查看更新说明

    Bug Fixes

    Full Changelog: https://github.com/beam-cloud/beta9/compare/gateway-0.1.850...gateway-0.1.851

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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.

    Watch the demo

    ✨ 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

    1. Create an account here
    2. 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:

    ❤️ Thanks to Our Contributors