[Feature] VisualGen: support Cosmos3-Nano-Transfer-Auto (multi-camera; LiDAR as a follow-up)

未关闭
#23,097 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python, pytorch

调研方向

Start with the single-GPU core in tensorrt_llm/_torch/visual_gen/models/cosmos3/ and inspect how the existing single-view Cosmos3 pipeline is selected from model_index.json. Compare behavior with the NVIDIA cosmos-framework reference, then build the planned pipeline, tests, and example across image2video, text2video, and video2video modes. Done means the core PR passes its unit and random-weight component tests and the example smoke test.

由索引模型根据 Issue 内容生成。

描述

VisualGen
Motivation

nvidia/Cosmos3-Nano-Transfer-Auto generates one video per camera of a vehicle camera rig in a single request (one control video per camera,
cross-view attention between cameras). VisualGen supports single-view Cosmos3 today; this checkpoint needs a multi-camera pipeline.

Proposed design
  • A new Cosmos3MultiviewPipeline under tensorrt_llm/_torch/visual_gen/models/cosmos3/, selected from the checkpoint's model_index.json.
  • Cross-view attention is computed block-decomposed (per-camera and cross-camera groups merged by log-sum-exp). This gives the same result
    as the reference's masked dense attention without materializing the mask, so all 11 cameras at 480p fit on one B200.
  • Behaviour follows the public reference implementation (NVIDIA cosmos-framework): prompts, token ids, initial noise, schedule, camera order
    and shapes match exactly; denoising numerics stay within 1.1x of the reference's own run-to-run spread on the same GPU type.
  • Request options go through extra_params["multiview"]. Per-camera control/input videos are bytes (base64 over trtllm-serve, decoded at
    the server boundary like the existing transfer control clip). The output is one camera-major video tensor. No public API change.
  • Attention runs on SDPA by default; FA4 / FlashInfer / cuDNN can be selected with attention_config.backend (~1.7x faster per step on B200).
  • Tests: unit tests, random-weight component tests (each feature on vs off in the same process), and a smoke test of the example script.
    No golden media.
Planned PRs (stacked, each tested on its own)
  1. Core: single-GPU multi-camera pipeline (all 11 cameras, 480p/720p, image2video / text2video / video2video, guardrails), tests, example.
  2. Multi-GPU: CFG-parallel and Ulysses for the multi-camera pipeline (outputs match one GPU).
  3. trtllm-serve: per-camera control/input videos in serve requests.
  4. Performance: CUDA graphs and FA4 / FlashInfer / cuDNN attention for the multi-camera pipeline.
  5. Later, separate: joint camera + LiDAR generation, returned through a dedicated lidar output field (same approach as action).
主要语言
Python
星标
15.2k
派生
3k
平均合并
2 天 21 小时
30 天内合并 PR
477

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NVIDIA/TensorRT-LLM 的其他 Issue

查看 NVIDIA/TensorRT-LLM 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。