
HeyGen × Google Cloud:Avatar IV を TPU で稼働させるHeyGen x Google Cloud: Bringing Avatar IV to TPUs
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy
- HeyGenは180億パラメータ超のビデオ生成モデルAvatar IVをtorchaxとXLAを用いてTrillium(v6e)TPUへ移植し、FSDPとUlyssesシーケンス並列化により1.86倍の高速化を達成。
- リアルタイムストリーミング品質の向上を目指す開発者や企業に恩恵をもたらす。
HeyGen migrated their 18B-parameter Avatar IV model to Trillium (v6e) TPUs using torchax and XLA, achieving a 1.86× throughput gain via FSDP and Ulysses sequence parallelism across an eight-chip mesh, enabling higher-quality real-time avatar video streaming.
本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (developers.googleblog.com) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (developers.googleblog.com).
要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.
生成AIによる動画制作を手がけるHeyGenが、180億パラメータを超える自社のビデオ生成モデル「Avatar IV」をGoogle CloudのTPU「Trillium(v6e)」上へ移植したことを、Google Developersブログが伝えた。リアルタイムのストリーミング配信で1.86倍の高速化を実現したという事例で、大規模モデルを動かすハードウェアの選択肢を広げる取り組みとして注目される。
移植の鍵となったのが、PyTorchで書かれたモデルをGoogle独自のXLAコンパイラ経由で実行できるようにする「torchax」だ。PyTorchのコードベースを大きく書き換えることなくTPU向けにコンパイルできるため、既存資産を活かしながらアクセラレータを切り替えやすくなる。HeyGenはこの仕組みを用い、8チップで構成されるメッシュ上にモデルを展開した。
並列化には二つの手法を組み合わせている。ひとつはモデルのパラメータや勾配、オプティマイザ状態を複数チップに分散して保持するFSDP(Fully Sharded Data Parallel)で、巨大なモデルを限られたメモリに収めるために用いられる。もうひとつは長い入力系列をチップ間で分割して処理する「Ulysses」方式のシーケンス並列化で、動画生成のように扱うトークン長が大きいワークロードで効果を発揮すると見られる。これらを組み合わせることで、リアルタイム配信に必要な処理速度を引き出したとしている。
背景には、生成モデルの推論コストと供給の問題がある。高性能GPUの需給が逼迫するなか、TPUのような代替アクセラレータで大規模モデルを動かせるかどうかは、サービス提供者にとって現実的な関心事となっている。GoogleはXLAやtorchax、JAXといったソフトウェア群を通じてPyTorchユーザーの取り込みを図っており、今回の事例はその実用性を示す一例と位置づけられる。
一方で、公開された数値は特定の構成における結果であり、モデルや系列長、バッチサイズなどの条件が変われば効果は異なる可能性がある。それでも、18B規模のマルチモーダルなモデルをTPU上で実運用に近い形で動かし、具体的な高速化を報告した点は、同種のワークロードを検討する開発者にとって参考になりそうだ。
HeyGen, a company that produces AI-generated avatar videos, has ported its Avatar IV model — a video generation system with more than 18 billion parameters — onto Google Cloud's Trillium (v6e) Tensor Processing Units. The work, described on the Google Developers blog, is notable because it demonstrates how a large, production-grade generative video model can be adapted from its original framework to run on Google's custom silicon, and reportedly emerges faster: the team cites a 1.86x speedup for real-time streaming.
Trillium is Google's latest generation of TPU, marketed as v6e, and represents an iteration of accelerators designed specifically for machine learning rather than general-purpose computing. TPUs are built around large matrix-multiplication units and high-bandwidth interconnects, which makes them well suited to the dense linear algebra at the heart of transformer-based models. Running a model across an "eight-chip mesh," as HeyGen did, means the workload is distributed over eight interconnected TPU chips that can exchange data quickly, allowing a model too large or too slow for a single chip to be split across several.
A central part of the effort was bridging software ecosystems. Many contemporary models, including Avatar IV, are developed in PyTorch, while TPUs are most naturally programmed through XLA, the Accelerated Linear Algebra compiler that also underpins JAX and TensorFlow. To connect the two, HeyGen used torchax, a library that lets PyTorch code execute against an XLA backend. This approach appears to let the team preserve much of their existing PyTorch model definition while still compiling down to instructions the TPU can run efficiently, avoiding a full rewrite in a different framework.
To fit an 18-billion-parameter model onto the hardware and keep it fast, HeyGen combined two parallelism strategies. Fully Sharded Data Parallel, or FSDP, splits a model's parameters, gradients, and optimizer state across devices so that no single chip has to hold the entire model in memory. Ulysses sequence parallelism, a technique popularized by the DeepSpeed project, instead partitions work along the sequence dimension. That is especially relevant for video generation, where long sequences — many frames and long attention contexts — can dominate memory and compute costs. Using the two together lets the system shard both the model itself and the sequences it processes across the eight-chip mesh.
The headline result is a 1.86x speedup for real-time streaming, the scenario in which frames must be produced quickly and continuously rather than rendered offline. To reach it, the engineering team appears to have pipelined parts of the workload, overlapping computation and data movement so that chips spend less time idle waiting for inputs. Pipelining is a common optimization on distributed accelerators, and it typically complements sharding strategies like FSDP by keeping the hardware busy across the stages of generation.
The move fits a broader industry pattern.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPoko180億超のパラメータを持つモデルをTPUへ移植って、それって何をしたの?What does it mean to move a model with over 18 billion parameters to TPUs?
- TECHガイドTECH Guide簡単に言うとじゃな、記事によればAvatar IVをtorchaxとXLAでTrillium(v6e)TPU上で動かせるようにしたのじゃよ。Simply put, the article says HeyGen used torchax and XLA to make Avatar IV run on Trillium (v6e) TPUs.
- ポコPokoへえ! それで何が嬉しいの? FSDPやシーケンス並列化もよく分からないな。Oh, neat! What’s the benefit? I’m also not sure what FSDP and sequence parallelism mean.
- TECHガイドTECH Guide処理を分担する仕組み、と考えればよい。記事では8チップに処理を分け、スループットが1.86倍になったそうじゃ。Think of them as ways to divide the workload. According to the article, spreading it across eight chips delivered 1.86× higher throughput.
- ポコPokoつまり、大きな動画生成モデルの処理を8チップで分けて、リアルタイム配信を速くしたんだね!So they split the large video model’s workload across eight chips, making real-time streaming faster!
- TECHガイドTECH Guideその通りじゃ。今後は、この高速化がリアルタイムのアバター動画品質をどこまで高めるかが見どころじゃな。Exactly. The key thing to watch is how far this speedup can improve real-time avatar video quality.



