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

Open
#23,097 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python, pytorch

Research direction

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.

Written by the indexing model from the issue text.

Description

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).
Dominant language
Python
Stars
15.2k
Forks
3k
Avg merge
2d 21h
Merged PRs (30d)
477

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NVIDIA/TensorRT-LLM

All issues in NVIDIA/TensorRT-LLM

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.