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

Đang mở
#23,097 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python, pytorch

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).
Ngôn ngữ chính
Python
Star
15.2k
Fork
3k
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
477

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/TensorRT-LLM

Tất cả issue của NVIDIA/TensorRT-LLM

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.