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

Abierto
#23,097 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python, pytorch

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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).
Lenguaje dominante
Python
Estrellas
15.2k
Forks
3k
Merge medio
2 d 21 h
PR fusionados (30 d)
477

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NVIDIA/TensorRT-LLM

Todos los issues de NVIDIA/TensorRT-LLM

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.