算力商业
aws.amazon.com ·
@Nathan Arnold
AWS博客:使用NVIDIA Cosmos 3在SageMaker HyperPod上构建物理AI模型工厂
该文介绍如何在Amazon SageMaker HyperPod集群上运行物理AI的持续流水线,包括合成数据生成、后训练和闭环评估,并利用NVIDIA Cosmos 3。适合需要构建物理世界AI系统的开发者。
AI推荐理由 这标志着物理AI(如机器人、自动驾驶)的模型构建正转向大规模持续流水线;利用AWS托管基础设施与NVIDIA仿真工具,团队可直接借鉴成熟闭环方案,降低搭建虚拟训练与评估系统的门槛,也凸显云厂商与NVIDIA合作的价值。
82
正文
物理AI系统,例如将现实世界数据转化为物理动作的机器人或自动驾驶车辆(AV),无法通过单次训练任务构建。相反,它需要一个持续流水线:一个生成合成数据、后训练感知和策略模型的循环,使系统理解其环境并采取行动,并在闭环仿真中评估两者。持续运行该流水线是物理AI模型工厂的任务,将源源不断的新现实世界数据转化为更好的模型,一轮又一轮。本文展示了如何使用NVIDIA Cosmos 3在Amazon SageMaker HyperPod上构建物理AI模型工厂,涵盖:Cosmos 3的独特之处:一种混合Transformer(MoT)设计,具有逐层联合注意力和刻意设计的训练与推理不对称性。为什么这些设计选择能清晰地映射到带有Amazon Elastic Kubernetes Service(Amazon EKS)的Amazon SageMaker HyperPod上。集群和共享多太字节存储层设置。针对三个代表性工作负载的分布式后训练,并在公共DROID数据集上对机器人策略阶段进行完整的端到端演练。随附的代码仓库包含每个阶段的清单和配置文件。您可以在awsome-distributed-ai GitHub仓库中找到可运行代码,包括将这种设计转化为工作集群的基础设施模板和作业清单。运行循环是一种容量承诺。逐阶段获取GPU在此规模上增加了变异性:可用性和交付周期可能不同,您获得的容量可能位于远离数据所在的可用区或AWS区域。为整个循环承诺容量可避免这种波动,无论是通过灵活训练计划进行有界活动,还是通过容量预留进行无界活动。由于无论流水线是否在推进,您都需要为该容量付费,因此控制成本的关键指标不是任何单个作业的峰值吞吐量。而是GPU有效吞吐量:整个循环中每个预留GPU小时的有用流水线进度。物理AI流水线通常为每个阶段配置单独的GPU容量:一组节点用于生成合成数据,另一组用于后训练,另一组用于评估,每个节点都有自己的生命周期来启动和拆除。NVIDIA Cosmos 3使这变得不必要。作为开放的全模态世界基础模型,Cosmos 3将视频、图像、动作和声音视为单一令牌流。它以三种模式运行相同的Transformer主干:用于合成视频生成的前向动力学世界模型、逆动力学动作标注器和可部署的动作策略。由于一个模型系列涵盖生成、后训练和评估,这些阶段成为在单个集群控制平面下调度到一个持久、弹性的GPU节点池上的三个工作负载。这是时分共享容量,而不是每个阶段单独的池。NVIDIA根据Linux基金会的OpenMDW-1.1许可证发布了它,并在Cosmos 3技术报告中描述了该架构。1. Cosmos 3的工作原理世界模型的一种常见模式是将扩散Transformer视频生成器与提供文本条件的独立视觉语言模型配对。Cosmos 3采用了不同的方法:一个主干处理两者,在每一层集成。这种集成使其作为端到端物理AI模型工厂的引擎非常有用。三个架构选择定义了它:单一令牌流。每种模态都输入到单个共享序列中,因此一个模型可以跨模态读取和生成。模型读取用于理解的图像、生成的像素以及每个具体化的紧凑姿态增量和抓取状态向量各有自己的编码器。视觉Transformer(ViT)处理图像理解,而冻结的Wan2.2视频变分自编码器(VAE)处理像素生成。那个单一动作向量使同一模型既能驱动AV也能驱动机器人手臂。序列将自回归(AR)区域(它读取的文本和视觉)置于扩散区域(它生成的视频、音频和动作)之前。两个专家,在每一层连接(MoT)。每层运行一个预测下一个令牌的推理器和一个去噪视频、音频和动作的生成器。双流注意力将它们连接起来,使生成在每一层都基于推理器的输出,而不仅仅是在最后一次性连接。常见的替代方案是将扩散Transformer(DiT)连接到视觉语言模型(VLM),并仅对其最终输出进行一次交叉注意力。Cosmos 3将生成一直扎根于推理器。推理时不对称。训练和部署不执行相同的工作量。训练运行完整的去噪计划并将视频解码回像素,因为预测的视频是损失的一部分。在机器人上,同一模型运行少量去噪步骤并完全跳过视频解码。视频潜在表示仍在内部生成以支持动作,但只有动作令牌被解码为机器人执行的关节位置。下图以单一视图显示了前两个选择:共享令牌流和通过注意力连接的两个专家。自回归(AR)子序列(文本和模型读取以理解的视觉令牌)和扩散模型(DM)子序列(它生成的视频、音频和动作令牌)通过共享的推理器和生成器塔运行。右侧的注意力掩码显示了两个专家的不同之处:DM查询关注AR和DM键(完全注意力),而AR查询保持因果性,永远不会看到扩散令牌。图1:Cosmos 3共享令牌流及其通过逐层注意力连接的两个专家(来源:Cosmos 3:用于物理AI的全模态世界模型)三种动作模式,一种架构中训练的基座检查点通过更改哪些令牌以噪声开始来运行三个作业。后训练然后将检查点专门化为单一模式和控制频率。前向动力学(世界
模型)。动作干净,视频有噪声。“给定此帧和此动作,接下来会发生什么?”这是合成数据引擎,用于生成真实收集无法经济地达到的长尾驾驶场景或稀有操作交互。逆动力学(动作标注器)。视频干净,动作有噪声。“给定这两帧,什么动作导致了变化?”将未标记的视频(原始遥操作记录、第三人称机器人视频、YouTube驾驶素材)转换为动作标记的训练数据。策略(部署的机器人)。两者都有噪声,以3视角图像加上本体感觉为条件。它输出32个未来关节位置,预测的视频帧作为支持动作预测的副产品。模型系列有两个层级:Cosmos3-Nano(160亿参数,基于密集的80亿参数Qwen3-VL主干)和Cosmos3-Super(640亿参数,基于密集的320亿参数Qwen3-VL主干)。任务变体如Cosmos3-Nano-Policy-DROID建立在这些层级之上。NVIDIA还发布了Cosmos3-Edge,一个紧凑的40亿参数层级,用于设备端部署(在Jetson Thor和Orin上基准测试)。Edge与Nano和Super共享相同的物理世界预训练数据,但基于从头训练的密集约20亿参数主干,而不是从Qwen3-VL初始化,因此它是一个单独的权重谱系:您直接为目标硬件后训练Edge,而不是将Nano检查点缩小到其中。下图并排显示了三种模式,实线框表示干净(已知)令牌,虚线框表示模型去噪的噪声令牌。前向动力学保持动作和当前帧干净,并对未来视频进行去噪。逆动力学保持视频干净,并对动作进行去噪。策略只看到第一帧干净,并对机器人将执行的动作进行去噪。相同的架构运行所有三种模式,只有干净与噪声令牌的模式发生变化。在基座检查点中,所有三种模式都可用;后训练变体如Cosmos3-Nano-Policy-DROID专门用于策略模式,频率为15 Hz,水平为32步。图2:一个检查点的三种动作模式,由哪些令牌以噪声开始设置(来源:Cosmos 3:用于物理AI的全模态世界模型)2. 从一个模型到永久的模型工厂生产机器人或AV的团队不会运行一个微调工作负载。它运行一个循环:摄取真实数据、整理、用合成数据增强、后训练、在闭环仿真中评估、部署策略、收集更多数据,并重复。图3:物理AI模型工厂作为四阶段飞轮循环有四个阶段。(1) 将现实世界的物理AI数据(DROID、BridgeData2、AV传感器日志)摄取并整理到Amazon Simple Storage Service(Amazon S3)和Amazon FSx for Lustre上的共享语料库中。(2) Cosmos3-Super教师生成合成数据以增强该语料库。(3) 组合的合成和真实语料库后训练可部署的Cosmos3-Nano策略,视觉微调应用于Nano和Super层级。(4) 在闭环仿真中评估策略,其失败成为新的生成目标,重新进入语料库进行下一轮。理想情况下,该循环不会停止,随着新数据的到来,每个阶段再次运行。这种节奏使成本驱动因素成为GPU有效吞吐量(每个预留GPU小时的有用流水线进度),而不是任何单个作业的峰值吞吐量。当各阶段共享一个池时,有效吞吐量最高,因此很少的GPU小时在重新配置或在单独集群之间移动数据时丢失。Cosmos 3使这成为可能:它将三类模型(世界模拟生成器、策略、感知模型)统一为以不同模式运行的单一模型。为了支持该飞轮,底层集群必须匹配该形状:一个控制平面上的一个持久池,而不是每个作业不同的计算环境。Amazon EKS上的Amazon SageMaker HyperPod恰好提供该形状。Cosmos 3背后的每个架构选择都创造了具体的集群需求。单一令牌流和640亿参数的MoT结构使训练成为需要低延迟互连的长序列、多节点作业。训练与推理的不对称性使生成、后训练和评估保持在一个模型和一个存储层上,因此它们可以时分共享一个承诺的容量池,而不是逐阶段分割。持续运行飞轮需要预留并持续监控的容量。四个Amazon SageMaker HyperPod属性依次满足这些需求:所有阶段的一个集群。由于Amazon SageMaker HyperPod使用EKS编排集群,循环的三个引擎作为普通Kubernetes工作负载在单个共享GPU池上运行。生成在vLLM-Omni服务器上运行,后训练在cosmos-framework下使用torchrun(完全分片数据并行(FSDP2)加上Ulysses上下文并行)运行,评估在单GPU策略服务器上运行。它们还共享一个存储层。一个通过Elastic Fabric Adapter(EFA)访问的Amazon FSx for Lustre文件系统,通过数据仓库关联(DRA)由Amazon S3存储桶支持,挂载一次并从同一路径为所有三个阶段提供服务。生成写入合成片段,后训练读取它们,策略服务器从同一卷加载其检查点。阶段之间没有重新配置步骤或太字节级数据迁移,区域锁定的AV数据保留在一个区域内的集群中。健康检查、自动恢复容量。连续循环需要已经配置并积极监控的容量:生成是突发性的,主导GPU小时,后训练跨多个节点运行数天。Amazon SageMaker HyperPod持续检测故障节点并自动重启或替换它们,您可以通过灵活训练计划提前承诺该容量。其托管作业自动恢复将工作节点故障转化为有界恢复。Kubeflow PyTorchJob重新创建pod组,NCCL重新形成,c
osmos-framework从最新的PyTorch分布式检查点(DCP)恢复。因此,节点故障最多花费一个检查点间隔的重做工作加上节点替换和重新调度延迟,而不是丢失运行。EFA已为多节点NCCL接线。Cosmos 3为训练打包的长序列(视频潜在表示加文本加动作,每个数万个令牌)将640亿参数层级推入FSDP2之上的上下文并行。每层发出跨节点集合。手动建立这通常是多节点时间消耗:匹配EFA堆栈、NCCL插件以及cosmos-framework固定的确切torch和NCCL版本。Amazon SageMaker HyperPod预配置了它,当与AWS深度学习容器(DLC)镜像配对时,其torch和aws-ofi-nccl版本与框架固定的版本匹配,NCCL over EFA配置为开箱即用。可选:多具体化的任务治理。如果工厂同时服务多种机器人类型或AV变体,Amazon SageMaker HyperPod任务治理(基于Kueue)将池划分为具有配额、优先级和抢占的命名空间范围队列。数十个异构作业然后共享一个容量预留,而不是临时争用,通过保持原本空闲的GPU跨项目忙碌来提高有效吞吐量。单一具体化程序可以跳过它,但一旦许多作业竞争同一池,任务治理就会得到回报。在Amazon SageMaker HyperPod和更轻量选项之间的选择归结为工作单元。一次性微调工作负载不一定需要Amazon SageMaker HyperPod集群的弹性和持久性。临时托管训练作业(例如,Amazon SageMaker AI训练作业)就足够了,因为短运行很少遇到节点故障。Amazon SageMaker HyperPod非常适合持续的Cosmos 3飞轮,其中生成连续运行,后训练是多节点且长时间运行的,评估位于同一存储层上,并且故障在统计上频繁。3. 我们正在构建什么该解决方案后训练三个代表性工作负载,每个都是飞轮的一个阶段,并端到端地练习生成和评估阶段。所有三个都在p5en.48xlarge(8x NVIDIA H200 GPU)节点上使用真实检查点端到端运行。这三个是机器人操作策略和两个视觉感知微调工作负载。三个是工作负载阶段模型它练习什么机器人策略(DROID)后训练(策略)Cosmos3-Nano(约160亿)在公共LeRobot v3数据集(droid_policy.toml)上的动作策略后训练。每步最轻的工作负载视觉监督微调(SFT)后训练(感知)Cosmos3-Nano(约160亿)视频加字幕SFT(vision_sft_nano.toml)。每步比策略工作负载重得多视觉低秩适应(LoRA)后训练(感知)Cosmos3-Super(约640亿)使用上下文并行对640亿模型进行LoRA微调(vision_sft_super.toml)。每步最重的工作负载尽管此处未具体涵盖AV后训练,但Cosmos3的基座模型在公共合成驾驶语料库(SDG-DriveSim,Hugging Face上的nvidia/PhysicalAI-WorldModel-Synthetic-Autonomous-Driving-Scenarios数据集)上进行了训练。其每个具体化的动作投影设计用于扩展到AV自我姿态动作空间,因此本文涵盖的相同配方和集群设置也适用于AV后训练。训练栈是NVIDIA的cosmos-framework,无需对框架包进行分叉或源代码编辑即可运行,因此上游更新可以干净地插入。它使用FSDP2训练,并随着序列长度和节点数增长扩展到混合分片数据并行(HSDP)和上下文并行。第6.2节涵盖了如何为每个层级设置这些并行选择。本指南全程使用p5en.48xlarge作为参考实例类型。我们没有发布跨实例排名,而是为您提供可以在自己的硬件上运行的有效吞吐量方法论(第
查看原文(中文正文为 AI 翻译)
A Physical AI system, such as a robot or autonomous vehicle (AV) that translates real-world data into physical actions, can’t be built in a single training job. Instead, it takes a continuous pipeline: a loop of generating synthetic data, post-training perception and policy models, so the system understands its surroundings and can act, and evaluating both in closed-loop simulation. Running that pipeline continuously is the job of a Physical AI model factory, turning a stream of new real-world data into better models, round after round. This post shows how to build a Physical AI model factory with NVIDIA Cosmos 3 on Amazon SageMaker HyperPod, covering: What is unique about Cosmos 3: a Mixture-of-Transformers (MoT) design with per-layer joint attention and a deliberate train-versus-inference asymmetry. Why the design choices map cleanly onto Amazon SageMaker HyperPod with Amazon Elastic Kubernetes Service (Amazon EKS). Cluster and shared multi-terabyte storage layer setup. Distributed post-training for three representative workloads, with a complete end-to-end walkthrough of the robot-policy stage on a public DROID dataset. The accompanying repository contains the manifests and configuration files for each stage. You can find the runnable code, including the infrastructure templates and job manifests that turn this design into a working cluster, in the awsome-distributed-ai GitHub repository. Running the loop is a capacity commitment. Acquiring GPUs stage by stage adds variability at this scale: availability and lead times can vary, and the capacity that you do get might land in an Availability Zone or AWS Region away from your data. Committing capacity to the whole loop avoids that churn, whether through a flexible training plan for a bounded campaign or a capacity reservation for an open-ended one. Because you pay for that capacity whether or not the pipeline is making progress on it, the metric that governs cost is not the peak throughput of any one job. It is GPU goodput: the useful pipeline progress per reserved GPU-hour across the whole loop. Physical AI pipelines often provision separate GPU capacity for each stage: one set of nodes to generate synthetic data, another to post-train, another to evaluate, each with its own lifecycle to stand up and tear down. NVIDIA Cosmos 3 makes that unnecessary. As an open omnimodal world foundation model, Cosmos 3 treats video, image, action, and sound as a single token stream. It runs the same transformer trunk in three modes: a forward-dynamics world model for synthetic video generation, an inverse-dynamics action labeler, and a deployable action policy. Because one model family covers generation, post-training, and evaluation, those stages become three workloads scheduled onto one persistent, resilient GPU node pool under a single cluster control plane. It’s time-shared capacity rather than a separate pool per stage. NVIDIA released it under the Linux Foundation’s OpenMDW-1.1 license, and describes the architecture in the Cosmos 3 technical report. 1. How Cosmos 3 works A common pattern for world models is to pair a diffusion-transformer video generator with a separate vision-language model that provides text conditioning. Cosmos 3 takes a different approach: one trunk that handles both, integrated at every layer. That integration is what makes it useful as the engine of an end-to-end Physical AI model factory. Three architectural choices define it: One token stream. Every modality feeds into a single shared sequence, so one model can both read and generate across modalities. Images the model reads for understanding, pixels it generates, and a compact per-embodiment vector of pose deltas and grasp state each get their own encoder. A vision transformer (ViT) handles image understanding while a frozen Wan2.2 video variational autoencoder (VAE) handles pixel generation. That one action vector is what lets the same model drive both an AV and a robot arm. The sequence puts an autoregressive (AR) zone (the text and vision it reads) ahead of a diffusion zone (the video, audio, and action it produces). Two experts, joined at every layer (MoT). Each layer runs a reasoner that predicts the next token and a generator that denoises video, audio, and actions. Dual-stream attention joins them so generation stays grounded in the reasoner’s output at every layer, not only once at the end. The common alternative bolts a diffusion transformer (DiT) onto a vision-language model (VLM) and cross-attends to its final output once. Cosmos 3 grounds generation in the reasoner all the way down. Asymmetric at inference. Training and deployment do not run the same amount of work. Training runs the full denoising schedule and decodes video back to pixels, because that predicted video is part of the loss. On the robot, the same model runs a few denoise steps and skips video decoding entirely. The video latents are still produced internally to ground the action, but only the action tokens are decoded into the joint positions the robot executes. The following diagram shows the first two choices in one view: the shared token stream and the two experts joined by attention. The autoregressive (AR) subsequence (text and the vision tokens the model reads to understand) and the diffusion-model (DM) subsequence (the video, audio, and action tokens it generates) run through the shared Reasoner and Generator towers. The attention mask on the right shows how the two experts differ: DM queries attend over both AR and DM keys (full attention), while AR queries stay causal and never see the diffusion tokens. Figure 1: The Cosmos 3 shared token stream and its two experts joined by per-layer attention (source: Cosmos 3: Omnimodal World Models for Physical AI) Three action modes, one architecture The mid-trained base checkpoint runs three jobs by changing which tokens start as noise. Post-training then specializes a checkpoint to a single mode and control frequency. Forward dynamics (world model). Actions clean, video noisy. “Given this frame and this action, what comes next?” This is the synthetic-data engine, fanned out to generate long-tail driving scenes or rare manipulation interactions that real collection cannot reach affordably. Inverse dynamics (action labeler). Video clean, action noisy. “Given these two frames, what action caused the change?” Converts unlabeled video (raw teleoperation recordings, third-person robot video, YouTube driving footage) into action-labeled training data. Policy (the deployed robot). Both noisy, conditioned on 3-view image plus proprioception. It outputs 32 future joint positions, with predicted video frames as a byproduct that grounds the action prediction. The model family has two tiers: Cosmos3-Nano (16B parameters, on a dense 8B parameter Qwen3-VL backbone) and Cosmos3-Super (64B parameters, on a dense 32B parameter Qwen3-VL backbone). Task variants such as Cosmos3-Nano-Policy-DROID build on these tiers. NVIDIA also released Cosmos3-Edge, a compact 4B tier for on-device deployment (benchmarked on Jetson Thor and Orin). Edge shares the same physical-world pretraining data as Nano and Super but is built on a dense ~2B backbone trained from scratch rather than initialized from Qwen3-VL, so it is a separate weight lineage: you post-train Edge directly for the target hardware rather than shrinking a Nano checkpoint into it. The following diagram shows the three modes side by side, with solid boxes for clean (known) tokens and dashed boxes for noisy tokens the model denoises. Forward dynamics keep the actions and the current frame clean and denoises future video. Inverse dynamics keep the video clean and denoises the actions. The policy sees only the first frame clean and denoises the actions the robot will execute. The same architecture runs all three, and only the pattern of clean versus noisy tokens changes. In the base checkpoint all three modes are available; a post-trained variant such as Cosmos3-Nano-Policy-DROID is specialized to policy mode at 15 Hz with a 32-step horizon. Figure 2: The three action modes of one checkpoint, set by which tokens start as noise (source: Cosmos 3: Omnimodal World Models for Physical AI) 2. From one model to a perpetual model factory A team producing a robot or AV does not run one fine-tuning workload. It runs a loop: ingest real data, curate it, augment it with synthetic data, post-train, evaluate in a closed-loop simulation, deploy the policy, collect more data, and repeat. Figure 3: The Physical AI model factory as a four-stage flywheel The loop has four stages. (1) Ingest and curate real-world Physical AI data (DROID, BridgeData2, AV sensor logs) into a shared corpus on Amazon Simple Storage Service (Amazon S3) and Amazon FSx for Lustre. (2) A Cosmos3-Super teacher generates synthetic data to augment that corpus. (3) The combined synthetic and real corpus post-trains a deployable Cosmos3-Nano policy, with vision fine-tuning applied across both the Nano and Super tiers. (4) The policy is evaluated in closed-loop simulation, and its failures become new generation targets that re-enter the corpus for the next round. Ideally, that loop doesn’t stop, with each stage running again as new data arrives. That cadence makes the cost driver GPU goodput (useful pipeline progress per reserved GPU-hour) rather than the peak throughput of any one job. Goodput is highest when the stages share one pool, so few GPU-hours are lost re-provisioning or moving data between separate clusters. Cosmos 3 makes that possible: it unifies three model classes (a world-sim generator, a policy, a perception model) into one model running in different modes. To support that flywheel, the cluster underneath must match that shape: one persistent pool on one control plane, instead of a disparate compute environment per job. Amazon SageMaker HyperPod on Amazon EKS delivers exactly that shape. Each of the architectural choices behind Cosmos 3 creates a concrete cluster demand. The single token stream and the 64B MoT structure make training a long-sequence, multi-node job that needs a low-latency interconnect. The train-versus-inference asymmetry keeps generation, post-training, and evaluation on one model and one storage layer, so they can time-share one committed pool of capacity rather than fragmenting it stage by stage. Running the flywheel continuously requires capacity that is reserved and continuously monitored. Four Amazon SageMaker HyperPod properties answer those demands in turn: One cluster for all stages. Because Amazon SageMaker HyperPod orchestrates the cluster with EKS, the three engines of the loop run as ordinary Kubernetes workloads on a single shared GPU pool. Generation runs on the vLLM-Omni server, post-training on cosmos-framework under torchrun (Fully Sharded Data Parallel (FSDP2) plus Ulysses context parallelism), and evaluation on a single-GPU policy server. They also share one storage layer. An Amazon FSx for Lustre file system, accessed over Elastic Fabric Adapter (EFA), backed by an Amazon S3 bucket through a data repository association (DRA), mounts once and serves all three stages from the same path. Generation writes synthetic clips, post-training reads them, and the policy server loads its checkpoint off the same volume. There are no re-provisioning steps or terabyte-scale data migrations between stages, and Region-locked AV data stays in one in-Region cluster. Health-checked, auto-recovering capacity. A continuous loop wants capacity that is already provisioned and actively monitored: generation is bursty and dominates GPU-hours, and post-training runs for days across many nodes. Amazon SageMaker HyperPod continuously detects faulty nodes and reboots or replaces them automatically, and you can commit that capacity ahead of time with flexible training plans. Its managed job auto-resume then turns a worker failure into a bounded recovery. The Kubeflow PyTorchJob recreates the pod gang, NCCL re-forms, and cosmos-framework resumes from the latest PyTorch Distributed Checkpoint (DCP). A node failure therefore costs at most one checkpoint interval of redone work plus the node-replacement and reschedule latency, rather than a lost run. EFA already wired for multi-node NCCL. The long sequences that Cosmos 3 packs together for training (video latents plus text plus action, tens of thousands of tokens each) push the 64B tier into context parallelism on top of FSDP2. Every layer issues cross-node collectives. Standing that up by hand is the usual multi-node time sink: matching the EFA stack, the NCCL plugin, and the exact torch and NCCL versions the cosmos-framework pins. Amazon SageMaker HyperPod ships it pre-configured, and when paired with an AWS Deep Learning Containers (DLC) image, whose torch and aws-ofi-nccl versions match what the framework pins, NCCL over EFA is configured to work out of the box. Optional: task governance for many embodiments. If the factory serves several robot types or AV variants at once, Amazon SageMaker HyperPod task governance (built on Kueue) carves the pool into namespace-scoped queues with quotas, priorities, and preemptions. Dozens of heterogeneous jobs then share one capacity reservation instead of contending for it ad hoc, which raises goodput by keeping otherwise-idle GPUs busy across projects. A single-embodiment program can skip it, but task governance pays off once many jobs compete for the same pool. The choice between Amazon SageMaker HyperPod and a lighter option comes down to the unit of work. A one-shot fine-tuning workload does not necessarily need the resilience and persistence of an Amazon SageMaker HyperPod cluster. An ephemeral managed training job (for example, an Amazon SageMaker AI training job) suffices, because a short run rarely hits a node failure. Amazon SageMaker HyperPod is well-suited for the sustained Cosmos 3 flywheel, where generation runs continuously, post-training is multi-node and long-running, evaluation is co-located on the same storage layer, and failures are statistically frequent. 3. What we are building The solution post-trains three representative workloads, each a stage of the flywheel, and exercises the generation and evaluation stages end-to-end. All three run end-to-end on p5en.48xlarge (8x NVIDIA H200 GPUs) nodes with real checkpoints. The three are a robot-manipulation policy and two vision-perception fine-tuning workloads. Workload Stage Model What it exercises Robot policy (DROID) Post-train (policy) Cosmos3-Nano (~16B) Action-policy post-training on a public LeRobot v3 dataset (droid_policy.toml). The lightest per-step workload Vision Supervised Fine-Tuning (SFT) Post-train (perception) Cosmos3-Nano (~16B) Video plus caption SFT (vision_sft_nano.toml). Substantially heavier per step than the policy workload Vision Low-Rank Adaptation (LoRA) Post-train (perception) Cosmos3-Super (~64B) LoRA fine-tuning of the 64B model with context parallelism (vision_sft_super.toml). The heaviest per-step workload Although AV post-training is not specifically covered here, Cosmos3’s base models were trained on a public synthetic-driving corpus (SDG-DriveSim, the nvidia/PhysicalAI-WorldModel-Synthetic-Autonomous-Driving-Scenarios dataset on Hugging Face). Its per-embodiment action projection is designed to extend to an AV ego-pose action space, so the same recipe and cluster setup covered in this post applies to AV post-training too. The training stack is NVIDIA’s cosmos-framework, run with no forks or source edits to the framework package, so upstream updates drop in cleanly. It trains with FSDP2 and scales to hybrid sharded data parallelism (HSDP) and context parallelism as sequence length and node count grow. Section 6.2 covers how those parallelism choices are set per tier. This guide uses p5en.48xlarge as the reference instance type throughout. Rather than publishing a cross-instance ranking, we give you a goodput methodology you can run on your own hardware (Secti
来源报道 · 4 篇 · 以下链接均前往原始媒体
opmlrss::AWS Machine Learning Blog
AWS博客:使用NVIDIA Cosmos 3在SageMaker HyperPod上构建物理AI模型工厂
09-05 · 原文发布