Hugging Face generated videos using its LTX-2.5 model on AWS’s Trainium3 machine, thanks to a partnership with Amazon Web Services. A 10-second clip with sound takes 22 to 23 seconds once the models are loaded, using half of the machine. The team then assembled multiple shots into short films, and tested the model on real images of robots.
For one month, Hugging Face had access to a trn3.48xlarge machine equipped with 64 NeuronCores, the compute cores of Trainium3. The chosen model, Lightricks’ LTX-2.5, generates video and sound together. The goal was twofold: to verify the ease of generation using the diffusers library, and to approach the performance achieved with CUDA or with the LTX API. According to LTX, its online API produces a 10-second 1080p clip in 23.7 seconds. Hugging Face’s setup performs about as well, and even about a second better.
Sequenced Shots
A film is described by a JSON file, which lists shots with a name, a prompt, and optionally, a seed to choose one take among several. Shots can be linked: one starts on the last frames of a previous shot, another ends on the first frames of a following shot. This mechanism allows for keeping the same character or the same setting from one shot to the next, which prompts alone do not guarantee.
The generation pipeline relies on three diffusers components. The code that assembles the film is about 160 lines of Python, and is published on dacorvo/video-generation. With the same code and the same film file, the result is identical, byte for byte. Each shot lasts a maximum of 20 seconds, the model’s limit, and each shot produces its own sound, which the film merely levels.
Images of Robots
In a final experiment, the team used real images from the head camera of a Fourier GR1-T2 humanoid robot, extracted from NVIDIA’s GR1-100 dataset. The model receives only the first second of the clip, and invents the rest. In the real 6-second video, the robot’s left hand picks up an orange from a plate and places it in a bin. With the same modified prompt, five variants were generated, where a person also grabs the orange and both hands carry it together towards the bin. The person’s gestures and timing change from one variant to another, and the robot’s arm adapts to each.
Hugging Face indicates that these videos follow prompts, not the robot’s or car’s commands. Training would therefore require generation conditioned by these actions. For this, a team can fine-tune the pre-trained checkpoint of LTX-2.5 on the images and actions of its own robots.
