How Synthesia optimizes generative AI video inference on Amazon EC2 G7e instances
AWS•How-to••by Moises Hernandez, Hanno Bever, Emanuele Levi and Pierre Lienhart•AWS Architecture Blog
This post introduces a video decoding optimization technique that we have ideated in collaboration with Synthesia Research Engineering team, which we call Asynchronous Frame Generation Pipeline. Adopting this technique allows you to overlap GPU compute, device-to-host (D2H) data transfer, and host-side post-processing. In this post, we apply this technique to the VAE decoder of a Wan video generation model as an example, where our benchmarks on G7e show increased GPU kernel utilization from…
A chunked-decoding technique overlaps GPU compute, device-to-host copies and host-side frame writes, raising GPU kernel utilization from 82% to 99.9% in AWS benchmarks.
Who it is for
Teams running chunked video generation models such as Wan on EC2 G7e that write decoded frames to storage.
Key points
AWS benchmark: 8.2% lower decoding latency on g7e.2xlarge for the Wan 2.2 14B VAE decoder (21.99s to 20.17s mean per video)
Uses two CUDA streams, pinned host memory buffers and a dedicated worker thread; no change to model weights
Benchmark is on one GPU and unoptimized Diffusers model; AWS says gains may be larger on compiled models
Pricing cited: $3.36 per GPU on-demand in Ohio, giving an estimated $896 saving per 1,000 hours of video (AWS calls this theoretical)
AI:Both speed up generative video model inference with GPU or TPU pipeline work, but Google uses sparse attention on TPUs while AWS uses chunked decoding on EC2 GPUs.
AI:Streams each agent sentence to a Kokoro-82M TTS model on a SageMaker AI bidirectional endpoint so speech synthesis starts before the full response is ready.
AI:Running the fine-tuned Parakeet ASR model with CUDA MPS and Triton on EC2 GPUs cuts the GPU count from 16 to 4 at sub-second latency, according to the authors' benchmarks.
AI:EC2 G7 GPU instances, built on NVIDIA RTX PRO 4500 Blackwell GPUs, are generally available, and AWS says they deliver up to 4.6x AI inference performance over G6.