How Visko streams real-time world models on Google Cloud TPUs
How Visko leverages Google Cloud TPUs to power real-time, interactive generative world models.
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 Li...
Google Cloud AI Blog
Source

- Ulysses context parallelism across all TPU chips
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. 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. 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. 2. Custom Pallas splash attention from MaxDiffusion To accelerate the attention computation itself, the team integrated a custom Pallas splash attention kernel from MaxDiffusion, Google Cloud's open-source reference library for diffusion models on Cloud TPU. Splash attention brings FlashAttention-style tiling to TPU architecture: rather than materializing the full quadratic attention matrix in High Bandwidth Memory (HBM), it computes attention in compact tiles that remain inside ultra-fast on-chip VMEM. Startup teams can drop the exact kernel used in this port straight into their own pipelines via customsplashattention.py.
- A 5.8x audio speedup by moving from torchax to pure JAX
We first brought all three Orbis models onto Cloud TPU with torchax, which runs PyTorch code on TPU through JAX and XLA without a rewrite. For the video and upscaling models, torchax paired with Pallas attention kernels met our latency target directly, and both stay in torchax in the final pipeline. Only the audio model needed a rewrite. Moving the audio stage from torchax to native JAX made it 5.8x faster and brought the full pipeline under the playback deadline. Startup Builder Tip: Port strategically.The takeaway isn't "skip torchax" — it's to use it as a fast bring-up bridge. torchax got our PyTorch models running on TPU in days rather than weeks, giving us the end-to-end telemetry needed to pinpoint true bottlenecks. Measure the full pipeline first, and invest engineering cycles rewriting only the components that dominate your latency budget. Field notes for AI builders: Cloud TPU lessons Takeaways from tuning live multimodal inference on Cloud TPU:
- Ulysses context parallelism for single stream video: At batch size 1, splitting the token sequence across chips with
all-to-allinterconnect exchanges was faster than both tensor parallelism and ring attention. - Native BF16 for continuous streams: FP8 quantization cuts memory bandwidth pressure, but small quantization errors build up across chunks in a continuous stream. Native BF16 kept visual quality intact within the latency budget.
- Selective JAX ports:
torchaxkept the video and upscaling models in PyTorch, so the team only rewrote the audio bottleneck in native JAX. - XLA compilation caching: The first boot spends a few minutes compiling XLA graphs. Caching compiled artifacts brings worker restarts under a minute.
Building real-time generative models on Cloud TPU? Start here If your startup is pushing the boundaries of live video, world models, or ultra-low-latency multimodal inference, you can build with the same toolkit that powered Visko's port: Accelerate diffusion attention out of the box: Grab the open-source splash attention kernel used in this collaboration from MaxDiffusion, and explore the Pallas documentation to write custom TPU kernels. Migrate PyTorch fast, then optimize selectively: Bring your existing PyTorch models onto TPU quickly with torchax, pinpoint bottlenecks with the Cloud TPU Profiler, and port latency-critical stages to native JAX. Spin up TPUs on demand: Use TPU Flex-start VMs to provision TPU capacity for short development and benchmarking runs without a long-term reservation. Scale with Google for Startups: Early-stage AI startups looking for cloud credits, technical mentorship, and access to Google Cloud's AI Hypercomputer stack can apply to the Google for Startups Cloud Program. Special thanks to the Visko.ai team for the close technical partnership, and to the Google Cloud TPU engineers who lead the project including: Yixin Shi, James Huang, and Elisa Tsai.
Generated insight by OnAirToday AI
The transition from static generative media to real-time, high-fidelity world models marks a critical shift in how AI can simulate physical environments. By leveraging TPU infrastructure, Visko demonstrates that complex spatial computing is becoming feasible for large-scale, interactive enterprise applications.
Get the day's AI news in one short email. Free.
Subscribe to our Free AI Newsletter
The Daily AI Digest, every morning. Pick your topics after you subscribe.
Free. Unsubscribe anytime.
Comments
Keep comments relevant and respectful. No links, advertising, self-promotion, or spam.