Skip to content

[video ingestion]Enable cosmos3#135

Closed
nv-liuw wants to merge 2 commits into
mainfrom
bilyang/dev_cosmos3
Closed

[video ingestion]Enable cosmos3#135
nv-liuw wants to merge 2 commits into
mainfrom
bilyang/dev_cosmos3

Conversation

@nv-liuw

@nv-liuw nv-liuw commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Serve only the Cosmos3-Nano Reasoner (VLM) tower; the diffusion generator
tower is never loaded (~8B-tier footprint).

- serve.py: for "cosmos3" model names, add --hf-overrides
  Cosmos3ReasonerForConditionalGeneration (+ --mm-encoder-tp-mode data
  --async-scheduling) and skip the Qwen-only --mm-processor-kwargs; honor a
  VLLM_BIN env var so a dedicated vllm-cosmos3 venv can serve.
- Dockerfile.cosmos: two-venv image (pipeline transformers 4.57 + an isolated
  cosmos vLLM server venv) because vllm-cosmos3 pulls transformers 5.x; apt
  installs ninja-build (required for vllm-cosmos3 kernel JIT at engine init).
- osmo start_vllm.sh: auto-point VLLM_BIN at /opt/cosmos-venv when present
  (no-op on the default Qwen image).
- configs: ingestion/batch_ingestion/retrieval point vlm_model/llm_model at
  nvidia/Cosmos3-Nano.
- raise max_new_tokens on entity-extraction, dedup-merge, and caption calls so
  a reasoning model's output is not truncated.
- docs: Model Backends gets a "Cosmos3-Nano (Reasoner)" section.

(cherry picked from commit 9b9bddd)
…P compat

- Dockerfile.cosmos: collapse to a single venv (vllm-cosmos3 + pipeline share
  one env); drop the second venv, VLLM_BIN, and the start_vllm.sh auto-detect.
  Keep ninja-build (vllm-cosmos3 needs it for kernel JIT). Image ~27GB (was ~38).
- visual_extractor / search_frames: SigLIP get_image_features/get_text_features
  return a ModelOutput on transformers 5.x -> use .pooler_output; no-op on 4.x.
- serve.py: drop VLLM_BIN (single venv: PATH `vllm` is the cosmos one).
- configs: revert ingestion/batch/retrieval defaults to Qwen3-VL and document
  how to switch to nvidia/Cosmos3-Nano (zero impact for existing users).

(cherry picked from commit 2503f54)
@nv-liuw nv-liuw closed this Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants