跳到主内容
@wquguru
精选88Google Cloud AI 博客(RSS)技巧与观点

Visko如何在Google Cloud TPU上实现实时世界模型流式生成

How Visko streams real-time world models on Google Cloud TPUs

原文
发到 X
推荐理由

这是一篇极具参考价值的工程复盘,详细拆解了实时视频生成在TPU上的架构设计与性能优化细节,特别是Ulysses并行和Pallas内核的应用,对做实时推理的同学很有启发。

Editor's note: Generative AI startups are moving rapidly beyond static clip generation to build interactive, real-time worlds. In this technical deep dive, we explore how AI startup Visko collaborated with Google Cloud TPU engineers to deploy Orbis — its continuously streaming Live World Model—on Cloud TPUs, going from initial kickoff to production handover in just 30 days.

编者按:生成式 AI 初创公司正迅速从静态片段生成迈向构建交互式、实时世界。在本技术深度解析中,我们探讨了 AI 初创公司 Visko 如何与 Google Cloud TPU 工程师合作,在 Cloud TPUs 上部署 Orbis——其持续流式传输的 Live World Model(实时世界模型)——从项目启动到生产环境移交仅耗时 30 天。

What makes a live video world model so challenging to serve in production? The bottleneck isn't average throughput — it's beating a relentless real-time clock. Unlike offline video generators where a user submits a prompt and waits in a queue, a live world model streams continuously. Every new chunk of video and synchronized audio must finish rendering before the viewer finishes watching the previous one, or the world freezes.

为什么在 production(生产环境)中服务实时视频世界模型如此具有挑战性?瓶颈不在于平均吞吐量,而在于战胜无情的实时时钟。与离线视频生成器不同,在离线场景中用户提交提示词后只需排队等待;而实时世界模型是持续流式传输的。每一段新视频和同步音频必须在观众看完前一段之前完成渲染,否则世界就会冻结。

Today, we're excited to share how Visko, an AI startup pioneering interactive world models, teamed up with Google Cloud to solve this exact challenge. Working side by side, Visko and Google Cloud engineers deployed Visko's end-to-end live inference pipeline — combining video generation, super-resolution upscaling, and synchronized audio—onto a single Cloud TPU slice. Together, the teams brought end-to-end generation down, rendering at 1.07x playback speed.

今天,我们很高兴地分享 Visko——一家开创交互式世界模型的 AI 初创公司——如何与 Google Cloud 合作解决这一挑战。Visko 与 Google Cloud 工程师并肩工作,将 Visko 的端到端实时推理管道——结合视频生成、超分辨率放大和同步音频——部署到单个 Cloud TPU slice(切片)上。双方团队共同努力,将端到端生成速度提升至以 1.07 倍播放速度进行渲染。

Here is an inside look at how we engineered the pipeline to hit that milestone in a single month, the architectural optimizations that moved the needle, and practical lessons for other startups building ultra-low-latency generative AI on Google Cloud.

以下是我们如何在一个月内实现这一里程碑的工程细节、推动进展的架构优化,以及其他在 Google Cloud 上构建超低延迟生成式 AI 的初创公司的实用经验教训。

Redefining interactive media with Live World Models

通过 Live World Models(实时世界模型)重新定义交互式媒体

While most generative video platforms focus on rendering fixed, pre-baked clips, Visko is building what it calls Live Models: video world models that generate continuously and respond on the fly.

虽然大多数生成式视频平台专注于渲染固定的、预烘焙好的片段,但 Visko 正在构建其所谓的 Live Models(实时模型):能够持续生成并即时响应的视频世界模型。

Visko's flagship model, Orbis, streams live video starting from a single text or image prompt. As the stream plays, viewers can enter new steering prompts in real time, dynamically evolving the scene without restarting or breaking continuity. For instance, in one test session, the livestream opens on a cat napping beside a crackling fireplace; when the viewer steers the scene to introduce a bowl of food, the bowl materializes seamlessly, and the cat stretches, stands up, and meows.

Visko 的旗舰模型 Orbis 从单个文本或图像提示开始流式传输实时视频。随着流媒体的播放,观众可以实时输入新的引导提示,动态演变场景,而无需重启或破坏连续性。例如,在一次测试会话中,直播画面开始时是一只猫在噼啪作响的壁炉旁打盹;当观众引导场景引入一碗食物时,碗会无缝出现,猫伸个懒腰,站起来并喵喵叫。

Since launching its public demo on September 1, 2026, Orbis has unlocked new possibilities across interactive entertainment, live commerce, AI companions, immersive education, and robotics simulation. To scale these interactive sessions reliably, Visko partnered with Google Cloud TPU engineers in August 2026 to port the Orbis live pipeline to Google's Tensor Processing Unit (TPU). Within 30 days, the full multimodal pipeline was running in real time on TPUs.

自2026年9月1日推出公开演示以来,Orbis 在互动娱乐、直播电商、AI伴侣、沉浸式教育和机器人模拟等领域解锁了新的可能性。为了可靠地扩展这些互动会话,Visko 于2026年8月与 Google Cloud TPU 工程师合作,将 Orbis 直播管道移植到 Google 的张量处理单元(TPU)。在30天内,整个多模态管道已在 TPUs 上实时运行。

Visko’s ambition is to power a new generation of interactive worlds that people can step into and shape in real time. Streaming continuous video and audio under a strict clock is a fundamentally different system challenge than offline clip generation. Working side by side with Google Cloud's TPU engineers, we brought the full Orbis pipeline to TPUs in just 30 days — giving us the low-latency compute and memory bandwidth required to bring Live Models to creators and developers at scale.

Visko 的雄心是赋能新一代人们可以步入并实时塑造的互动世界。在严格时钟下流式传输连续的视频和音频,与离线片段生成相比是一个根本不同的系统挑战。我们与 Google Cloud 的 TPU 工程师并肩工作,仅在30天内就将完整的 Orbis 管道带到了 TPUs——为我们提供了将 Live Models 大规模带给创作者和开发者所需的低延迟计算能力和内存带宽。

"Visko is bringing an exciting new class of real-time, steerable workloads to the Cloud TPU ecosystem. By co-engineering their live multimodal pipeline on a singleTPU slice using JAX, torchax, and custom Pallas kernels, we proved how quickly a lean startup team can go from PyTorch prototype to render at 1.07x playback speed on Google Cloud's AI Hypercomputer."

“Visko 正在为 Cloud TPU 生态系统带来一类令人兴奋的新兴实时、可操控的工作负载。通过在单个 TPU 切片上使用 JAX、torchax 和自定义 Pallas 内核共同工程化其直播多模态管道,我们证明了精简的初创团队如何能迅速从 PyTorch 原型转变为在 Google Cloud AI Hypercomputer 上以1.07倍播放速度渲染。”

– Dave Elliott, Head of Developer Advocacy for AI, Google Cloud

—— Dave Elliott,Google Cloud AI 开发者倡导负责人

Live video is a hard-deadline problem

直播视频是一个硬性截止期限问题

When you serve an offline clip generator, latency is forgiving — the user waits once while the backend processes frames. A live world model has no waiting room.

当你服务一个离线片段生成器时,延迟是可以容忍的——用户只需等待一次,而后端在处理帧。但一个直播世界模型没有等待空间。

Every single chunk must be denoised, decoded from latents, upscaled to 1664x936 (at 18 fps), and paired with generated audio faster than realtime playback speed, for as long as the session runs.

每一个数据块都必须在实时播放速度之前完成去噪、从潜在变量解码、放大至1664x936(18 fps),并与生成的音频配对,只要会话持续进行。

Two structural constraints make live world models far more demanding than standard batch inference:

两个结构性约束使得直播世界模型比标准批量推理更具挑战性:

  • Batch size of one: Each live stream represents an individual viewer's interactive session. You cannot mask latency by grouping dozens of concurrent requests into a massive batch — the standard playbook for keeping AI accelerators saturated.
  • Strict sequential dependency: Every chunk depends directly on the one before it. Because the video model maintains a rolling memory of recent video latents so that chunk N+1 smoothly continues the action from chunk N, you cannot pre-render chunks out of order or parallelize across future timestamps.
  • 批次大小为1:每个直播流代表单个观看者的互动会话。你无法通过将数十个并发请求组合成一个巨大的批次来掩盖延迟——这是保持 AI 加速器饱和的标准做法。
  • 严格的顺序依赖:每个数据块直接依赖于前一个数据块。由于视频模型维护着最近视频潜在变量的滚动记忆,以便数据块 N+1 平滑延续数据块 N 的动作,因此你不能乱序预渲染数据块或在未来的时间戳上进行并行化处理。

For startup infrastructure engineers coming from LLM serving, it helps to think of live world modeling not as a tokens-per-second throughput benchmark, but as an unforgiving per-step latency SLO.

对于来自大语言模型推理领域的初创基础设施工程师来说,理解实时世界建模不应将其视为每秒 token 数的吞吐量基准,而应视为一个严苛的每步延迟服务等级目标(SLO)。

Architecting the multimodal pipeline on a single TPU slice

在单个 TPU 切片上构建多模态流水线

To keep infrastructure lean and cost-effective as Visko scales, the team designed the live pipeline to chain three distinct generative models on a single Cloud TPU slice running in BF16 precision.

为了在 Visko 扩展过程中保持基础设施精简且具备成本效益,团队设计了一条实时流水线,在运行于 BF16 精度的单个 Cloud TPU 切片上串联三个不同的生成式模型。

When a viewer submits an initial prompt or a live steering update, all three generative models — the core video diffusion model, the super-resolution upscaler, and the audio generator — share the same chips, taking turns on the hardware for each chunk.

当观众提交初始提示词或实时控制更新时,所有三个生成式模型——核心视频扩散模型、超分辨率上采样器和音频生成器——共享相同的芯片,为每个数据块轮流使用硬件资源。

Figure 1: Visko's end-to-end Orbis live pipeline chains video diffusion, latent decoding, super-resolution upscaling, and pure-JAX audio generation sequentially on a single Cloud TPU slice, completing each chunk faster than the playback speed.

图 1:Visko 端到端的 Orbis 实时流水线在单个 Cloud TPU 切片上依次串联视频扩散、潜在解码、超分辨率上采样和纯 JAX 音频生成,完成每个数据块的速度快于播放速度。

To combine rapid startup iteration with bare-metal accelerator speed, the software stack is built on three open-source pillars:

为了结合快速初创迭代与裸机加速器的速度,软件栈建立在三大开源支柱之上:

  • JAX: Google's high-performance Python array library for accelerators, compiled into optimized machine code by the XLA compiler.
  • torchax: An interoperability layer that runs PyTorch models directly on Cloud TPUs via JAX, enabling startup teams to bring existing PyTorch components over without an upfront, ground-up rewrite.
  • Pallas: The custom kernel programming language for TPUs in JAX — the TPU counterpart to writing custom Triton or CUDA kernels on GPUs.
  • JAX:Google 的高性能 Python 数组库,专为加速器设计,由 XLA 编译器编译为优化的机器代码。
  • torchax:一个互操作性层,通过 JAX 直接在 Cloud TPUs 上运行 PyTorch 模型,使初创团队能够将现有的 PyTorch 组件迁移过来,而无需进行前期从头重写。
  • Pallas:JAX 中用于 TPUs 的自定义内核编程语言——相当于在 GPU 上编写自定义 Triton 或 CUDA 内核。

Real-time performance breakdown: Hitting the clock

实时性能剖析:攻克时钟周期瓶颈

By profiling and optimizing each stage on a single slice in BF16, the engineering team achieved a total per-chunk latency of under the target while — maintaining roughly 7% headroom to absorb variance during live streaming:

通过在单个切片上使用 BF16 对每个阶段进行剖析和优化,工程团队实现了低于目标的总每块延迟,同时保留了约 7% 的余量以吸收直播期间的波动:

Figure 2: Chart of per-chunk latency budget on one TPU slice.

图 2:一个 TPU 切片上的每块延迟预算图表。

Because video denoising accounts for nearly two-thirds of the total compute budget, that stage became the primary focus of our kernel and parallelism optimizations.

由于视频去噪占据了总计算预算的近三分之二,该阶段成为我们内核和并行化优化的主要焦点。

Inside the stack: Three optimizations that unlocked real-time streaming

栈内细节:解锁实时流媒体的三项优化

1. Ulysses context parallelism across all TPU chips

1. 跨所有 TPU 芯片的 Ulysses 上下文并行

A video chunk expands into a massive sequence of spatiotemporal tokens inside the video transformer. To distribute that workload across the TPU chips at batch size 1, the team implemented Ulysses context parallelism.

视频数据块在视频转换器内部展开为庞大的时空 token 序列。为了在批量大小为 1 时将该工作负载分布到 TPU 芯片上,团队实现了 Ulysses 上下文并行。

Instead of splitting model weights, Ulysses splits the token sequence across chips. Immediately before the attention layer, a high-speed all-to-all interconnect exchange regroups the tensors so that each chip holds the entire video sequence, but only for one-quarter of the attention heads. After each chip computes attention over the full sequence for its assigned heads, a second all-to-all exchange restores the sequence-split layout for the feed-forward layers.

Ulysses 不拆分模型权重,而是将 token 序列跨芯片进行划分。在注意力层之前,高速 all-to-all 互连交换对张量进行重新分组,使得每个芯片持有完整的视频序列,但仅针对四分之一的注意力头。在每个芯片为其分配的注意力头计算完整序列的注意力后,第二次 all-to-all 交换恢复用于前馈层的序列拆分布局。

Figure 3: Ulysses context parallelism across TPU chips at batch size 1. High-speed all-to-all Inter-Chip Interconnect (ICI) exchanges transition tensors between a sequence-split layout for feed-forward layers and a head-split layout for Pallas splash attention.

图 3:批量大小为 1 时 TPU 芯片上的 Ulysses 上下文并行。高速片间互连(ICI)all-to-all 交换使张量在前馈层的序列拆分布局和 Pallas splash attention 的头拆分布局之间转换。

2. Custom Pallas splash attention from MaxDiffusion

2. MaxDiffusion 的自定义 Pallas splash attention

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件