带着 Trainium3 上赛道:使用 LTX-2.5 生成视频
原题Taking Trainium3 to the Track: Generating Videos with LTX-2.5
读前速览
本文展示了如何在 AWS Trainium3 上使用 LTX-2.5 生成视频:通过优化 32 个 NeuronCore 上的张量并行与序列并行,生成带声音的 10 秒 2048x1024 视频片段仅需 22-23 秒。
在 Trainium3 上优化 LTX-2.5 视频生成后,生成带声音的 10 秒 2048x1024 视频片段仅需 22-23 秒
这一表现达到 LTX 付费 API 的水平(1080p 下为 23.7 秒),相比最初在较低分辨率下耗时 5 分 20 秒的尝试,速度提升了 14 倍,展现了 Trainium3 处理视频生成工作负载的可行性。
张量并行(4 个核心)和序列并行(8 个核心)让模型能够高效分布到 32 个 NeuronCore 上
Transformer 需要通过张量并行才能适配单个核心;序列并行则将视频 token 分散到多个核心上,从而实现初始 4 核心配置无法达到的 2048x1024 分辨率。
主机端优化带来了最大的端到端性能提升,将主机处理时间从 280s 降至 8s
关键的主机端优化包括仅在 rank 0 上运行流水线、将线程绑定到未使用的 CPU 核心,以及优化文本编码器的执行方式:只处理提示词中的实际 token,而不是填充后的 token。
内存管理和注意力优化显著提升了吞吐量
将参数打包到 1GiB 缓冲区中,使每个核心的内存占用从 22.96GiB 降至 10.2GiB;在 1024x512 分辨率下使用 NEURON_LOGICAL_NC_CONFIG=2,则将单步耗时从 4.3s 降至 3.0s。
完整摘要
本文详细介绍了如何优化 LTX-2.5 在 AWS Trainium3(trn3.48xlarge,配备 64 个 NeuronCore)上的视频生成性能。最初的尝试生成 960x544 分辨率视频需要 5 分 20 秒。经过大量优化,包括张量并行(4 个核心)、序列并行(8 个核心)、主机端优化和内存管理,最终生成带声音的 10 秒 2048x1024 视频片段仅需 22-23 秒,达到 LTX 付费 API 的性能。关键优化包括自定义注意力处理器、fp32 GELU 计算、内存打包和线程绑定。这项工作表明,必须同时解决主机端和设备端的瓶颈;序列并行对于充分利用 64 个 NeuronCore 中的 32 个来处理单个视频片段至关重要。
目录 · 8 节
还剩五天时,我允许自己稍微放松一下。既然有一辆法拉利,偶尔总想开到赛道上兜一圈。所以我问自己:如果我试着生成视频,会怎么样?With five days left, I allowed myself a little fun. When you have a Ferrari, every now and then you want to take it out on the track. So I asked myself: what if I tried to generate videos?
我选择了 Lightricks 的 LTX-2.5,它可以同时生成视频和声音。最后,在模型加载完成后,生成一段带声音的 10 秒视频片段耗时 22 到 23 秒,占用了机器一半的资源。以下是生成结果。I picked LTX-2.5 from Lightricks, which generates video and sound together. By the end, once the models were loaded, a 10-second clip with sound took 22 to 23 s to generate, on half of the machine. Here is the result.
两个目标 Two goals
我有两个目标。第一,看看在 Trainium3 上使用 diffusers 生成视频有多容易。我想做的不是示例里的简单片段,而是根据剧本制作短片,更接近真实用例,比如把一部电影的初稿拍出来。第二个目标是性能。我希望达到接近 CUDA 或 LTX 自有 API 的表现。I had two goals. The first was to see how easy it is to generate videos with diffusers on Trainium3. Not the simple clips from the examples: I wanted to make short films from a script, closer to a real use case, like drafting a movie. The second was performance. I wanted to get close to what you get with CUDA, or with LTX's own API.
对于 CUDA,我没找到真正可供比较的数据。唯一的说法来自 LTX:在四块 B200 GPU 上生成一段 10 秒的 720p 视频需要 6.8 秒,但没有说明测量方法。因此我暂且不考虑 CUDA,转而与 LTX 的在线 API 比较;据 LTX 称,该 API 生成一段 10 秒的 1080p 视频需要 23.7 秒。最终,这套配置的表现与之相当,甚至快了大约一秒:模型加载完成后,只用这台机器一半的资源,就能在 22 到 23 秒内生成一段 2048×1024、时长 10 秒的视频。考虑到我用于优化这些流水线的时间很少,这成绩还不错。For CUDA, I found no real figure to compare against. The only one is LTX's claim of 6.8 s for a 10-second 720p clip on four B200 GPUs, with no detail on how it was measured. So I set CUDA aside and compared with LTX's online API instead, which LTX says makes a 10-second 1080p clip in 23.7 s. In the end, the setup matches it, and even beats it by about a second: 22 to 23 s for a 10-second clip at 2048×1024, once the models are loaded, on half of the machine. Not bad, considering how little time I had to optimize the pipelines.
工作原理 How it works
输入是一段影片:一个 JSON 镜头列表,每个镜头都包含名称和提示词,很像分镜脚本。LTX-2.5 对较长的提示词处理效果更好,因此每个提示词都用一段文字描述风格、主体、动作、摄影机、光线和声音。以下是海豹影片的文件,其中的提示词已缩短:The input is a film: a JSON list of shots, each with a name and a prompt, much like a storyboard. LTX-2.5 does better with long prompts, so each prompt is a paragraph on the style, the subject, the motion, the camera, the light and the sound. Here is the seal film's file, with the prompts shortened:
[
{"name": "dream", "prompt": "Style: cinematic, realistic, shallow depth of field. A plump seal ... is fast asleep on warm golden sand under palm trees ...",
"seed": 3},
{"name": "nap", "prompt": "Style: cinematic, realistic, wide-angle lens. ... a plump grey seal is fast asleep on a small ice floe ...",
"seed": 1, "to": {"shot": "iceberg", "frames": 9}},
{"name": "iceberg", "prompt": "Style: cinematic, realistic, wide-angle lens. ... the whole iceberg slowly rolls over ... and washes over the seal. ..."},
{"name": "shake", "prompt": "Style: cinematic, realistic, wide-angle lens. ... It slowly shakes its head and body ... and flops down on its belly on the floe, ...",
"from": {"shot": "iceberg", "frames": 25}}
]
每个镜头都有名称和提示词,也可以设置种子值,以便保留我从多个生成结果中选定的版本。镜头通过两个键串联起来。串联才是关键,因为仅靠提示词无法让主体在不同镜头之间保持一致:Each shot has a name and a prompt, and can have a seed, to keep the take I picked among several. Shots are chained with two keys. This chaining is the point, since prompts alone do not keep a subject from one shot to the next:
- 起始帧:镜头从前一个镜头的最后几帧开始。以先前镜头的最后一帧开始,可以保持切镜前后主体外观一致;以其最后 25 帧(1 秒)开始,还可以延续动作。
from: the shot starts from the last frames of an earlier shot. Starting from the earlier shot's last frame keeps a subject's look across a cut; starting from its last 25 frames (1 s) also continues the motion. - 至:镜头结束于后续镜头的最初几帧,从而衔接到该镜头。
to: the shot ends on the first frames of a later shot, so that it leads into it.
镜头也可以进行剪辑,或在其上叠加字幕。A shot can also be trimmed, or have a caption drawn over it.
用镜头制作影片的方式类似动画,而动画有两种做法。顺序制作时,每个镜头都接着前一个镜头往下做。关键姿势法则是先制作关键镜头,直到得到一个满意的镜头;然后,它之前的镜头以它的第一帧为终点(to),它之后的镜头则从它的最后一帧开始(from)。当一部影片逐步铺垫到高潮(所有内容都指向的那个时刻)时,高潮就是关键镜头。我通过反复试错找到了这种顺序,并用关键姿势法制作了海豹影片,从冰山开始。Making a film from shots works like animation, which has two ways to go. Straight ahead, each shot continues the one before. Pose to pose, you make the key shot first, until you get one you like; then the shots before it end on its first frames (to), and the shots after it start from its last frames (from). When a film builds up to a payoff (the moment everything was leading to), the payoff is the key shot. I found this order by trial and error, and made the seal film pose to pose, starting from iceberg.
最终效果是冰山:冰山翻滚,掀起的浪花浇湿了海豹。睡觉这段动画中的海豹在冰山(to)的前 9 帧结束,这样海豹、浮冰和冰山进入最终效果时都保持不变。摇晃这段动画从冰山(from)的最后 25 帧开始:湿漉漉的海豹抖掉身上的水,然后扑倒在浮冰上。梦境部分单独制作,再通过剪辑与其余部分衔接。The payoff is iceberg: the iceberg rolls over, and its wave drenches the seal. nap, the sleeping seal, ends on the first 9 frames of iceberg (to), so that the seal, the floe and the iceberg stay the same into the payoff. shake starts from the last 25 frames of iceberg (from): the dripping seal shakes off the water and flops down on the floe. The dream is made on its own, and a cut joins it to the rest.
iceberg, the payoff, is made first; nap ends on its first 9 frames and shake starts from its last 25, so the seal, the floe and the iceberg stay the same.
在 diffusers 侧,三个 pipeline 共用 LTX-2.5 的模型。LTX2Pipeline 仅根据提示词生成镜头,LTX2ConditionPipeline 则生成以另一个镜头的画面作为起始帧或结束帧的镜头。这两个 pipeline 遵循模型卡中介绍的两阶段蒸馏流程:先运行 8 步,然后由第三个 pipeline——LTX2LatentUpsamplePipeline——将潜变量放大 ×2,再运行最后 3 步。On the diffusers side, three pipelines share the models of LTX-2.5. LTX2Pipeline makes the shots from their prompt alone, and LTX2ConditionPipeline makes the shots that start or end on frames of another shot. These two follow the two-stage distilled recipe of the model card: 8 steps, then the third pipeline, LTX2LatentUpsamplePipeline, upscales the latents ×2 before 3 final steps.
diffusers 流水线负责所有生成工作。影片部分则是在此基础上用大约 160 行 Python 代码完成:读取影片文件,安排镜头顺序,确保每个关键帧都在需要它的镜头之前生成,并剪出帧以便交接;然后进行剪辑、添加字幕、平衡音量并合成影片。代码位于 dacorvo/video-generation。我保留的影片及其 JSON 文件都在 dacorvo/video-generation 存储桶中:海豹、狐狸和山羊;山羊影片剪掉了其中两个镜头,并在高潮画面上叠加了字幕。The diffusers pipelines do all of the generation. The film part is about 160 lines of Python on top: read the film file, order the shots so each keyframe exists before the shot that needs it, and cut the frames to hand over; then trim, caption, even out the sound and assemble the film. The code is in dacorvo/video-generation. The films I kept are in the dacorvo/video-generation bucket, with their JSON files: the seal, the fox, and the goat, which trims two of its shots and draws a caption over its payoff.
在 Trainium3 上运行 Running on Trainium3
开箱即用时,该模型无法在 NeuronCores 上运行:transformer 无法装入单个 NeuronCore,而 diffusers 也没有拆分它的计划。首次成功运行的尝试(使用模型卡中的 pipeline,将 transformer 拆分到 4 个核心上并做了一些补丁)处理一个 10 秒片段耗时约 5 分 20 秒,而 NeuronCores 实际只计算了约 45 秒。更重要的是,目标分辨率也无法实现。Out of the box, the model does not run on the NeuronCores: the transformer does not fit on one, and diffusers has no plan to split it. The first attempt that ran (the model card's pipeline, with the transformer split over 4 cores and a few patches) took about 5 min 20 s for a 10-second clip, and the NeuronCores were actually computing for only about 45 s of it. What's more, the target resolution was out of reach.
五天后:Five days later:
| 10-second clip with sound | NeuronCores | Wall time | On the NeuronCores | vs. first attempt |
|---|---|---|---|---|
| First attempt, 960×544 | 4 | 5 min 20 s | 45 s | 1× |
| Optimized, 2048×1024 (~4× more pixels) | 32 | 22 to 23 s | 15 s | 14× |
实现这一目标需要三方面的工作:让模型在 NeuronCores 上运行(这需要张量并行),将模型分布到更多 NeuronCores 上(序列并行),以及让主机端跟上它们的速度。Getting there took three kinds of work: making the model run on the NeuronCores (requires tensor parallelism), splitting it over more of them (sequence parallelism), and making the host keep up with them.
下面的大多数修复都在设备端,主要精力也花在了那里。端到端节省幅度最大的是主机端:那里有最容易取得的改进,因为显然浪费就出在那儿。Most of the fixes below are on the device, and that is where most of the effort went. The biggest end-to-end savings came from the host: the low-hanging fruit, since that is obviously where the waste was.
让它成功运作所付出的努力 What it took to make it work
| Problem | Workaround | Result |
|---|---|---|
| The transformer does not fit on one NeuronCore, and diffusers has no tensor-parallel plan for it | A plan, and an attention processor that runs on the heads of one rank | The transformer runs on 4 cores |
| The text encoder does not fit on a NeuronCore next to the transformer, so it runs on the CPUs. diffusers supports a pipeline split this way, but its LTX-2 pipelines give the text encoder its inputs on the NeuronCores | Pin the pipeline to the host, and move the transformer's inputs to the cores and its outputs back | The pipeline runs with its transformer on the cores |
| Compiled as one graph, the transformer returned NaN at one size, and each new process traced it again, even with every graph in the cache | Compile one block with compile_repeated_blocks |
Finite outputs, and tracing falls from 388 s to 18 s |
| torch-neuronx computes a bf16 GELU entirely in bf16, constants included (#1049) | Compute the GELUs in fp32 | Transformer error against fp32: 0.297 → 0.158 (CPU bf16: 0.160) |
| At 2048×1024, the block graph of the transformer split 4 ways fails to load | Split the video tokens 8 ways on top (sequence parallelism): two custom attention processors on diffusers' set_attn_processor hook, each a few tensor reshapes around its collective calls (code) |
Stage 2 runs on 4 × 8 = 32 cores, at 3.0 s a step |
| A shot that starts from frames has a timestep per video token, and its block graph fails to load | Embed only the two timesteps, and pick one for each token (code) | A shot from frames takes about as long as one from a prompt |
为了让它变快所付出的努力 What it took to make it fast
| Problem | Workaround | Gain |
|---|---|---|
| Each rank (one process per NeuronCore) ran the whole pipeline, and they all encoded the prompt on the CPUs of one socket | Run the pipeline on rank 0 only, and send the other ranks the arguments of each call | Prompt encoding: about 205 s → 7.5 s |
| torch-neuronx's allocator leaves most of its memory segments unused (#1052) | Pack the parameters into buffers of at most 1 GiB | Memory per core: 22.96 GiB → 10.2 GiB |
| The attention runs as plain ops unless the sequence length is a multiple of 128 tokens | Generate at 1024×512 (512 tokens per frame), with NEURON_LOGICAL_NC_CONFIG=2 |
Transformer step: 4.3 s → 3.0 s |
| The video decode is slow on CPU, and more CPU cores do not help | Decode on the NeuronCores, split by frames, and pass the frames to rank 0 through shared memory | Decode at 2048×1024: 357 s → 1.6 s |
| A strided slice copied to the device is filled by a slow copy on the device (#1050) | .contiguous() before the copy |
Step on 16 cores: 5.6 s → 1.0 s |
| Rank 0 alone runs the pipeline's CPU stages (text encoder, upsampler, vocoder), but every rank gets a node-wide torch thread pool, and 31 ranks starve it | Pin rank 0's threads to the CPUs no other rank uses, and cap the other ranks' threads to their fair share (code) | Prompt encoding: 7.4 s → 3.3 s. Stage 1 step: 0.9 s → 0.6 s |
| The pipeline pads the prompt to 1024 tokens, and the text encoder, on CPU, encodes the padding too | Run the text encoder on the tokens of the prompt only | Prompt encoding: 3.4 s → 1.4 s |
有三个问题始终没有得到解释:作为单个图编译的 transformer 在某个尺寸下返回了 NaN;每个新进程中的首次以关键帧结束的生成都很慢(即使所有图都已缓存);潜变量上采样器无法与 transformer 一起加载,因此只能留在 CPU 上。Three issues were never explained: the transformer compiled as one graph returned NaN at one size, the first shot that ends on keyframes was slow in each new process (even with every graph in the cache), and the latent upsampler fails to load next to the transformer, so it stays on the CPU.
其中一部分问题正在上游修复。diffusers#15420(开放中)修复了 LTX-2 流水线,这将使上文的第二种变通方案不再必要。diffusers#14725(仍开放)将张量并行和上下文并行整合到一个 ParallelConfig 中,并计划为 LTX-2.5 添加一个 _tp_plan。Some of this is being fixed upstream. diffusers#15420 (open) fixes the LTX-2 pipelines, which would make the second workaround above unnecessary. diffusers#14725 (still open) brings tensor and context parallelism into one ParallelConfig, and a _tp_plan for LTX-2.5 is planned.
经验教训 Lessons learned
- 两端的耗时都大幅下降:主机和设备都是如此。成功运行后,一个片段在主机上的耗时从约 280 秒降至约 8 秒(约快 35 倍);在 NeuronCores 上的耗时则从 45 秒降至 15 秒(快 3 倍),而像素数量是原来的四倍,还增加了一个第一版甚至无法加载的第二阶段。Both sides fell hard: the host and the device. Once running, a clip's host time fell from about 280 s to about 8 s (~35×), and its time on the NeuronCores from 45 s to 15 s (3×, at four times the pixels, and with a second stage the first attempt could not even load).
- 序列并行决定单个片段如何使用这台机器。张量并行受内存限制(变换器无法装入单个核心),并且上限为 32 个注意力头。将序列拆分到更多核心上,才能让单个片段使用 64 个 NeuronCore 中的 32 个;同时,这也让 2048×1024 成为可能,因为它缩小了每个核心的计算图,直至能够加载。Sequence parallelism is how one clip uses the machine. Tensor parallelism is imposed by memory (the transformer does not fit on one core) and capped by the 32 attention heads. Splitting the sequence over more cores is what puts 32 of the 64 NeuronCores on a single clip, and what made 2048×1024 possible at all, by shrinking each core's graph until it loaded.
- 在 Trainium 上,需要提前规划计算图的大小。张量形状决定注意力机制是否会采用快速内核,而过大的计算图则无法加载。On Trainium, plan for the size of the graphs. The shapes decide whether the attention takes the fast kernel, and graphs that are too large fail to load.
- 先与 CPU 对照检查。模型拆分出的每一部分在设备上运行之前,都先在 CPU 上进行了检查;与 CPU 的对比发现了 GELU 问题。Check against the CPU first. Each split of the models was checked on CPU before it ran on the device, and the comparison with CPU found the GELU issue.
- 保持被追踪的代码稳定。在我使用的构建版本中,torch-neuronx 的缓存键包含每个被追踪操作所在的文件和行号,因此一次编辑就可能导致每个计算图重新编译,耗时最长可达 30 分钟。我此前已报告此问题(aws-neuron/torch-neuronx#1027),目前该问题已关闭。Keep the traced code stable. In the build I used, torch-neuronx's cache key included the file and line of each traced op, so an edit could trigger a recompile of up to 30 minutes per graph. I had already reported it (aws-neuron/torch-neuronx#1027), and the issue is now closed.
- 一部电影需要的不只是提示词。仅靠提示词,无法让角色或山脉在不同镜头间保持一致,因此每个镜头都会以其他镜头中的某一帧开头或结尾。每个镜头也只能发生在一个地点:在这部狐狸电影的早期版本中,有个镜头让狐狸从森林走到湖边,模型却用交叉溶解转场变出了另一只狐狸。A film needs more than prompts. Prompts alone do not keep a character, or a mountain, from one shot to the next, so shots start or end on frames of other shots. Each shot also stays in one place: when a shot in an early version of the fox film took the fox from the forest to the lake, the model made a cross-dissolve to another fox.
- 每个镜头都多生成几个版本。模型经常会把某个细节弄错:同一个提示词生成的 4 个版本里,有 3 个把山羊的角弄得很滑稽。我为每个新镜头都生成了 4 个版本,然后挑选其中一个。Make several takes of each shot. The model often gets a detail wrong: the same prompt gave the goat funny horns in 3 takes out of 4. I made 4 takes of each new shot and picked one.
专业应用场景 Professional use cases
在性能方面,模型加载完成后,一段带声音、时长 10 秒、分辨率为 2048×1024 的视频片段需要 22 到 23 秒。这已经能与 LTX 的付费 API 媲美,而且只用了实例一半的资源。服务会让进程持续运行,因为加载模型大约需要 3 分钟,而生成第一个视频片段则需要 80 秒。On the performance side, once the models are loaded, a 10-second 2048×1024 clip with sound takes 22 to 23 s. That rivals LTX's paid API, on half of the instance. A service would keep its processes up, as they take about 3 minutes to load the models, and 80 s for their first clip.
在功能方面,diffusers 具备制作电影草稿所需的一切。镜头由提示词生成,并通过以其他镜头的画面作为起始帧或结束帧,让主体在前后镜头之间保持一致。不同版本的镜头使用不同的种子,而影片文件会保存我选中的版本。使用相同的代码和影片文件重新运行,就能逐字节得到同一部影片。镜头也可以从图像开始,例如故事板画格或角色设定图;条件管线会像处理画格一样处理这些图像(我没有在影片中尝试过这种做法)。On the feature side, diffusers has what it takes to draft a movie. The shots come from prompts, and keep their subject from one shot to the next by starting or ending on frames of other shots. Takes differ by their seed, and the film file keeps the one I picked. Re-run with the same code and film file, and you get the same film back, byte for byte. A shot can also start from an image, such as a storyboard frame or a character sheet, which the condition pipeline takes the same way as frames (I did not try it in a film).
是什么让它一直处于草稿状态:What keeps it at drafts:
- 模型仍然会弄错细节,因此每个新镜头都需要拍摄多次。The model still gets details wrong, so each new shot needs several takes.
- 每个镜头都有自己的声音。影片会将背景音量调平,但声音不会从一个镜头延续到下一个镜头。Each shot makes its own sound. The film evens out the background level, but the sound does not carry over from one shot to the next.
- 一个镜头最长持续 20 秒,这是模型的限制。A shot lasts at most 20 s, the model's limit.
从电影到世界模型 From films to world models
LTX 将 LTX-2.5 称为世界模型,并将机器人技术视为一项新兴应用。机器人、汽车和无人机通过摄像头所拍摄的视频来学习,而世界模型可以生成更多这类视频,包括那些罕见到难以拍摄或风险过高的事件。因此,我也用同一段代码在真实拍摄素材上试了试:一个镜头可以从真实摄像头片段的第一秒开始,并生成接下来会发生什么。单帧并不足够,因为模型无法仅凭它判断物体移动得有多快。LTX calls LTX-2.5 a world model, with robotics as an emerging use. Robots, cars and drones learn from videos of what their cameras see, and a world model can make more of them, including events too rare or too risky to film. So I also tried it on real footage, with the same code: a shot can start from the first second of a real camera clip and invent what happens next. One frame was not enough, as the model cannot tell from it how fast things move.
这是 Fourier GR1-T2 人形机器人的头部摄像头画面(取自 NVIDIA 的 GR1-100),镜头正对着一张桌子。在这段真实的 6 秒视频中,机器人的左手从盘子里拿起一个橙子,然后把它放进托盘里。模型只看到了这段视频的前 1 秒(双手抬起、尚未开始动作),然后便自行编造了后续内容。真实发生的情况,与它编造的内容并列如下:Here is the head camera of a Fourier GR1-T2 humanoid robot (a clip from NVIDIA's GR1-100), looking down at a table. In the real 6-second clip, the robot's left hand picks an orange from a plate and drops it in a tray. The model only sees the first second of that clip (the hands raised, before anything moves) and invents the rest. What really happened, next to its invention:
同一场景,同一次抓取:模型自行生成了抓取动作,同时让桌子、双手和水果都与真实影像保持一致。更有意思的是那些并未发生的事情。从同一秒开始,只改变提示词,一个人也俯身抓起了橙子,随后人手和机械手一起把它放到托盘上。五段视频,先放真实影像:Same scene, same pick: the model invents the grab on its own, and keeps the table, the hands and the fruit consistent with the real footage. More interesting are the events that did not happen. From the same second, with only the prompt changed, a person leans over and grabs the orange too, and the human hand and the robot hand carry it to the tray together. Five takes, with the real footage first:
这个人的手势和时机在每次拍摄中都不一样,机器人的手臂会随之调整。这正是这种训练方式的吸引力所在:不是对某个片段进行单一的续演,而是生成一系列不同的续演,每一种都能根据其影片文件和随机种子复现。The person's gestures and timing differ in each take, and the robot's arm adapts to them. That is the appeal for training: not one continuation of a clip, but a distribution of them, each reproducible from its film file and seed.
存储桶的 robotics 文件夹中有五段录制片段及其 JSON 文件,还有一个来自暴风雪中汽车前置摄像头的示例(Boreas);在这个示例中,替代事件是一辆驶过的卡车把泥雪溅到了镜头上。要求模型改为让汽车加速时,它却保持了原有速度:提示词无法推翻视频第一秒已经暗示的内容。The robotics folder of the bucket has the five takes with their JSON files, and a second example from the front camera of a car in a snowstorm (Boreas), where the alternate event is slush thrown on the lens by a passing truck. Asked to make the car accelerate instead, the model kept its speed: the prompt does not override what the first second of footage already implies.
这些视频是根据提示词生成的,而不是遵循机器人或汽车的指令:训练方案需要支持以这些动作作为条件进行生成。为此,团队会使用自家机器人的画面帧和动作,对 LTX-2.5 的预训练检查点进行微调。These videos follow prompts, not the robot's or car's commands: a training setup would need generation conditioned on those actions. For that, a team fine-tunes the pre-trained checkpoint of LTX-2.5 on the frames and actions of its own robots.
法拉利只靠一半的气缸就绕赛道跑了一圈。The Ferrari made it around the track, on half of its cylinders.