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

Aperta
#23,097 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, pytorch

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).
Lingua principale
Python
Stelle
15.2k
Fork
3k
Merge medio
2g 21h
PR unite (30g)
477

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/TensorRT-LLM

Tutte le issue di NVIDIA/TensorRT-LLM

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.