Ethan He 在 xAI 从 0 infra / 0 data / 0 model 起步,3 个月内带几个工程师交付了
Ethan He 在 xAI 从 0 infra / 0 data / 0 model 起步,3 个月内带几个工程师交付了 Grok Imagine 0.9(首个大规模部署的 audio-video joint generation 模型)。这期访谈把 视频模型的全链路拆开讲: synthetic text-video pair、VAE tokenizer、…
xAI 从 0 infra、0 data、0 model 到发布 Grok Imagine 0.9,几个工程师做完。
synthetic pair、VAE 压缩、image-first bootstrap、step distillation 全流程。
storage 几 PB、egress 比存储还贵、训练算力对标"中等规模 LLM"。
real time + interactive + long horizon — 三根支柱缺一不可。
"视觉的智能其实大部分来自语言模型"——所以他要从视频转回 LLM。
LLM + diffusion + ffmpeg + 图像编辑器,像 Claude Code 一样调工具拼视频。
带队做 Cosmos world model — 大型视频基础模型,目标是为机器人提供世界模拟。
入职时:"no no infra no data and no model"。几个工程师 3 个月内交付 Grok Imagine 0.9。
reference-to-video(cameo 类功能)、video extension、real-time world model。
"first time when we were building Cosmos together, we built it uh for about a year. So this is like the second time I do it, roughly roughly have an idea like what to do."
—— 第二次做就快了。第一次趟过一遍坑之后,目标和瓶颈都很清楚。
两套都是 Ethan 主导从零搭起来的视频基础模型。
区别是 Grok Imagine 还要做 audio-video joint generation,并被压到 3 个月窗口。
"the most important thing is is a talent. Everyone everyone were very strong and clever very close with each other towards a common goal."
"every day there's not that much meetings on the calendar like maybe like a sync a day and after that it's just all building."
xAI 已经有 data infra、model infra、训练流水线,新团队不用再造轮子,直接迭代模型本身。
"a lot of the improvements does not come from new algorithms. It comes from finding small bugs here and there in the data pipeline in the in the model training pipeline. Those gave the biggest boost to the model quality."
模型质量的最大跃迁,往往不是算法创新,而是数据流水线 / 训练流水线里那些小 bug 被一个一个抓出来。
"the top important thing is like how many iterations can you do per day."
一次 iteration = 拉数据 → 设计算法 → 训一个(可能小规模的)模型 → eval:这个比上一版好吗?
更强的 infra + 更多 compute → 每天能跑更多 iteration → 更大的容错缓冲 + 更容易发现 bug。
作者概括:这等于把"模型训练"这件事从"年/季度大爆炸"重新定义成"每天能跑几次环"。3 个月窗口能压缩出 0.9 版本,本质上就是因为这个环跑得够快。
"it produced codes that are kind of difficult to maintain... a spaghetti code thousands of lines that I couldn't maintain and the LLM itself couldn't figure out what's what's wrong."
mid 2025,写得快但维护不了。第一版一发不可收拾,模型自己也修不动。
"I remember like December 2025 it was extremely good."
"compute might become a bottleneck again"
以前写一个 idea 要几周,期间没法跑实验;现在几小时就能写完代码,等着排 GPU。研究员重新被算力卡。
另一面:"it's a it's a marathon, so you got to maintain good health and uh the regular schedule." —— 工业级模型训练是马拉松,每小时烧几千张 GPU,状态要长期可持续。
1. 造 synthetic 文本-视频对
互联网上视频和文字"几乎没相关性",要用 VLM 自己重新打标。
2. 训 VAE / tokenizer
像素空间太大(1k×1k 图就 100 万 token)→ 压到连续 latent vector。
3. 先训图像 diffusion transformer
图便宜、语言↔图的映射密度高,先把语言 grounding 学好。
4. 用图像模型 bootstrap 视频模型
再加 post-training:extension、reference、audio。
"on the internet actually the videos don't naturally associate with text. say maybe like the video is a natural scene of mountains or something and the title is like 'I'm so happy today'. So they have no correlation at all."
Cosmos 给人类标注员的 brief 是:
"describe the video as detailed as possible such that a blind person shares a blob of text can reconstruct what the video is like from their head."
—— 标注的目标不是"概括内容",而是"信息无损"。所有物体、角色、动作、对白都要写进去。
鸡生蛋问题:第一个 VLM 怎么来?—— 早期靠纯人工标注 bootstrap,"in the beginning it's like you ask human to describe the video as detailed as possible"。先有人标,再有 VLM,再有 video model。
"one image like uh it's a thousand by a thousand is like 1 million tokens 1 million pixels. It's impossible to train transformer on that."
1000×1000 = 100 万 token / 张图。视频再叠时间维度,直接爆。
把 patch(比如 16×16)的像素映射到一个 continuous latent vector(16 / 48 维),再映射回去。
"the vocab is continuous. It's a continuous space."—— 这里和 LLM 的离散词表不同,是连续空间。
能不能直接拿 MP4 当 token?
"people actually have tried that but the main challenge is the latent space for the MP4 tokens were not very comprehensible for the models. It's extremely hard to train on that."
→ MP4 的压缩域不连续、不可学;VAE 提供的 latent 才是模型能 reason 的空间。
(Wan 2.1 用 8×8×4)
把连续 4 帧压成 1 token。
✓ 4× 更短 context
✓ 长视频可行
✗ 有 lag——必须等到 4 帧凑齐才能解
(每帧独立)
✓ real-time / 可交互
"the model can respond to any user requests immediately"
✗ context 长度爆炸
"if you do it frame by frame your context lens will be four times larger"
这个选择决定了你能做什么。想要长片生成?走 temporal。想要 world model 那种 mouse 一动画面就响应的交互?必须 frame-by-frame,然后接着去和长 context 死磕。
结论:"just storing storing these videos and the features is it's tens of pabytes alone... it would be a few millions per months to just storing everything not to mention the GPU cost."
数据中心是建给 GPU 的,没人按 PB 级存储设计——这是 video model 的真实隐性瓶颈。
LTX:19B dense
新一代 MoE:~20B active / 100B total
→ "similar size as medium-size LLM models"
Cosmos 公开过的数:tens of trillions of visual tokens
"the cost of training these video models it's actually comparable with LLMs. Not to mention the infra is slightly different from LLM. So it might be less efficient to train these models."
比纯 LLM 还多一个隐藏开销:
→ IO-bound,数据加载/缓存是另一个工程问题
→ 训练 infra 差异(cosmos 做了大量 IO 优化)
训练阶段(teacher):flow matching ~100 步、diffusion ~1000 步去拟合"整个互联网的图像分布"——极复杂。
蒸馏阶段(student):只需要拟合"teacher 模型"这一个固定 distribution——简单很多。
服务阶段:Cosmos 实测 4 / 8 步就能上线;image-to-image 任务里"can even run in first step like one step in Cosmos transfer"。
"GAN was the OG step distillation"—— GAN 本来就一步生成,所以现代蒸馏里会回过头来用 GAN loss(distribution matching distillation)做 student 的训练目标。
"the first first audio video trans model deployed at a large scale"
→ 不是只生成视频,是 audio + video 联合生成。
"most of the VLMs they understand images and videos very rare and they don't understand audio mostly."
VLM 多数不懂音频 → 没法像 video 那样自动 caption。
所以 audio synthetic pair 必须靠 sensor 数据 + 人工大量参与。
Ethan 把 audio captioning 类比成 video 那条 brief:
"someone deaf can reconstruct how the music sounds like without actually listening to it."
"the model has to know like the video and audio it has to have a time based alignment like at which time step the video and the audio token correspond to each other."
但 video↔text 不需要——文字只是松散描述整段画面。
→ audio 把"时间感"逼进了模型,这是其他模态都没有的负担。
"if you ask LLM to complete a task, they would say oh, this task will probably take 12 hours to complete. And they come back in one hour. They have already spent two days on this and have exhausted everything."
对话里 Vibhu 回应:这其实是模型在估计"一个人类会怎么说",不是模型没时钟。
而 audio-aware video model 是真的把时间塞进了架构。
"word model is like real time interactive long horizon videos."
real time:语音交互需 200 ms,CSGO 玩家要求 sub-10 ms。普通 video model 完全做不到。
interactive:支持鼠标 / 键盘 / 语音输入,模型每帧都要响应。
long horizon:不是几秒,是几分钟到几小时。Cosmos 里 5 秒 video ≈ 50-60k token,50 秒就 500k。
三个一起要才是 world model。frame-by-frame VAE(牺牲 context)+ long context 工程(牺牲实时性)必须同时解决——这是为什么它"still a very long way to get there"。
"some creators would try to like use the last frame as a first frame for the second video. sometimes it works but if you do it a few times it says the call to a degree."
甚至 Veo 3 也只有大约 1 秒的上下文——稍微好一点,但画质和对白连续性还是会掉。
"has historical context of all of the previous generated videos. It has it has a context of who's speaking and what objects have appeared and everything."
不是拿"上一秒",是把整段历史当 context。
代价:context 立刻爆——5 秒已经 50k token。
作者概括:World model 是一个 10 年目标。每个中间产品(video extension、reference-to-video)都得自己有用——既能验证方向,又能撑住用户量。
长视频里大量信息是 redundant:一个角色第一段出现、中段不在、结尾才回来——中段的 context 其实不需要。
最多上传 7 张参考图(角色、物体、场景),生成时把它们的 context "拷"进视频。
"I want condition on Sean's selfie and holding holding a blade." —— 现场演示。
主播:那 100 张呢?
Ethan:那就要 另一种机制了。
有篇 paper 叫 frame pack,启发式做法:最近 1 秒保留全 context,更早的历史压缩成更小的图——总 sequence 长度固定。
这只是 heuristic。更长远的方向是让模型自己学会"该往哪段历史回看"。
有意思的镜像:同一个"context 自管理"问题,在 video model 和 LLM 这边几乎同时被研究——LLM 那边叫 context compaction / pruning(Claude Code 内部有 8 种),video model 这边叫 reference / frame-pack。
看起来像网页浏览器,但里面所有 UI 都是 image model 实时生成的"假"网页。你点一下,模型就 imagine 一个对应的子页面。
"these web pages they completely do not exist"
用 video model 模拟整个操作系统。可以"打开" Firefox、玩 Doom——但都是被生成出来的画面。
"the model is overfitted on the existing operating systems"——因为训练集就是真 OS 截屏。但模型也学会了 generalize:
"you can prompt the model to generate something supernatural that have never existed in the data set. So if you train your neuro OS on the standard screen recordings on the entire internet the model can imagine completely new interface to interact with a computer."
被训练的是"普通屏幕录像",但生成时可以涌现出"完全没见过的 UI"——video model 也有"世界模型"般的外推能力。
写 code → 编译成 binary → binary 把像素画到屏幕。中间转了好几道。
"why don't we have like a user instruction to the pixel directly?"
如果推理便宜了,diffusion model 就是 UI 本身:
"I want the email to show to me like a TikTok so I can swipe left and right" —— UI 永远是为这一刻 / 这一个用户而生成的。
"diffusion front end
deterministic back end"
后台:强 LLM / coding model 跑逻辑、调 API。
前台:diffusion model 把结果画成最适合此刻这个用户的界面。
"in machine learning every time we have some breakthrough obviously it's more inent."——每次 ML 突破,结果都是 end-to-end 替代手写的中间表示。UI 也轮到了。
"the visual intelligence are actually mostly coming from language."
结构上:Cosmos 里 video diffusion 只有 7B;前面那个 prompt rewriter(Llama / Mixtral)反而更大。
实际跑:"GPT image like you generate a image in 3 minutes, it's not all like a pixel generation. a lot of time is spending in thinking."
趋势:"every time you see there's some improvement on these models, mostly the gain comes from language model not coming from the video model itself."
caption 是"尽可能详细"——多段、多对象、有动作、有对白。模型默认 user 的输入也是这样。
"a cat"
"they would take that instruction literally they would literally show a cat in maybe a white background because you didn't describe the background. the cat is not moving because you didn't describe it. It takes the instruction quite literally. It's kind of it's kind of dumb."
所以前面挂一个 prompt rewriter,把简单 prompt 扩成"训练分布"那种详细描述。Cosmos 里"happy sheep",不 rewrite 是 CGI 怪图,rewrite 之后就是好图——不需要 joint training。
如果视频的大部分智能其实来自 LLM,那就别再把所有能力都塞回 diffusion——
让 LLM 当 planner,diffusion 只是它的一种 tool。
Grok Imagine Agent (beta) 已经在做了:用户说"做一分钟视频",agent 自己分镜、生成、用 ffmpeg 拼。
GPT Image Pro 思路类似:背后是 LLM 在写代码 + 跑工具 + 最后做一次 image pass。
跟 AI 编程的演化路径同构:tab 补全 → Copilot → Codex / Claude Code 自主跑。视频也会沿这条路走。
Ethan 的时间预测:"by the end of this year is this is going to be a big hit"——production-grade video agent 会进入 ads 等企业市场。
General Intuition / Moon Lake 等:world model 的终极场景是 embodied robotics——要在真实物理世界交互。
"my prediction on robotics is that the problem of physical AI might be solved without actually need to be in the real world. it might get solved by a video LM is very strong video capability."
注意:这是 Ethan 自己的预测,不是已发生的事。他自己也加了"might"。
3 个月发 Grok Imagine 0.9 就是这一条的字面执行
"every day there's not that much meetings... after that it's just all building"
目标设到"我刚听到时觉得不可能"的位置
第四条隐含的:first principle thinking——下一页展开。Ethan 强调这不是流于口号,是被反复用来定 deadline 的工具。
把每个限制单独估出来:
全部 stack 起来 → "the minimum number of days that is possible to achieve something"。
主播接了一句话点题,Ethan 没反驳:
"the only law you can't break is the laws of physics."
—— 这是被广泛引用的 Elon 风格的思考方式。Ethan 用它来反推训练时间表。
10 年前:跟 ResNet 作者 Shaoqing / Sun Jian / Jensen 做 computer vision(图像识别、目标检测、目标追踪、神经网络压缩)
申 PhD:"I got rejected by all of the top PhD programs"——已经有顶会一作还是全拒
FAIR:转 self-supervised learning(和此前 supervised CV 完全不同的范式)
Nvidia Cosmos:scaling 优先——Megatron + Cosmos,把 video description model 推到几十亿参数,40% MFU 训练 100B-trillion 级模型
xAI:更大规模 compute · Grok Imagine 全套
"within ML it's actually easier to switch and then you think... a lot of the core principles how to train large models are largely the same."
—— 大模型的训练原则可迁移:MoE、scaling law、infra 优化、distillation 这些工程心法在 CV / video / language 之间是共通的。
"computer vision background → 必须一辈子做 CV" 是错觉。
"there's a lot of research you want to do that you cannot do as a company and also like the priorities and objective the company typically can change very fast."
不是抱怨 xAI——他强调"the same for XAI",意思是所有公司都这样。当下他想做的研究在公司里推不动。
语言模型,特别是 context 自管理。
"the language models will be like context aware and manage its own context."
他举了几个有意思的例子:模型应该知道自己 context 到 80% 了;模型应该能在 test time 改写 agent harness 的代码来给自己开 subagent / 选读哪几行。
主播追问"这不是 career risk 吗?"——Ethan 没正面回答,但理由很坦诚:
"it seems like more pressing impactful work to do now on language model side."
"the visual intelligence are actually mostly coming from language."
"the most important thing is is a talent."
"describe the video as detailed as possible such that a blind person shares a blob of text can reconstruct what the video is like from their head."
"word model is like real time interactive long horizon videos."
"video diffusion models I would describe they're kind of dumb because they take the input instruction literally."
"the problem of physical AI might be solved without actually need to be in the real world."
"move fast, build, no goal is too ambitious."
—— Ethan He,对未来 UI 范式的总结
Latent Space · xAI 内部:3 个月做出 Grok Imagine