Running CMD on Windows Native / RTX 50 (Blackwell) without flash-attn: report and a few small upstream proposals
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
調査の方向性
Start by reading the attention call in cosmos.runtime.attention; the report proposes falling back to PyTorch SDPA when flash_attn is unavailable. Also investigate the KV cache behavior for chunk1_long and whether limiting it to local_attn_size preserves outputs. Done would require agreed behavior and validation for these proposals; the package-namespacing question needs maintainer guidance.
索引モデルが issue の本文から書いたものです。
説明
Hi, and thanks for releasing CMD.
I built an unofficial ComfyUI adapter that calls an official nv-tlabs/cmd checkout (the official code is not vendored, and weights are not redistributed):
https://github.com/hiroki-abe-58/ComfyUI-NVIDIA-CMD
While getting it to run, I had to patch a few things at runtime. I'm reporting them here in case they're useful upstream, and I'm happy to send small PRs if you're open to them.
Tested environment
- Windows 11 Native (no WSL), RTX 5090 32GB (sm_120)
- PyTorch 2.9.1+cu130, no
flash-attninstalled - Checkpoints:
chunk1_short,chunk1_long,chunk1_camera_control
1. Attention without flash-attn
I replaced the attention call in cosmos.runtime.attention with torch.nn.functional.scaled_dot_product_attention, and inference ran fine on Blackwell.
Proposal: fall back to SDPA when flash_attn cannot be imported. That would make CMD usable on Windows and on setups where building flash-attn is difficult.
2. KV cache memory in long rollout
With chunk1_long (126 latent frames), the KV cache keeps entries for every generated frame and runs out of memory on a 32GB card. Capping the cache to local_attn_size (21) as a circular buffer gives a measured peak of 23,852 MiB and about 267 s per run.
Proposal: an option to bound the cache to local_attn_size. I haven't compared the outputs against the uncapped cache, since the uncapped run doesn't fit on my GPU. Could you confirm whether capping at local_attn_size is expected to be lossless, given that attention only looks back that far?
3. Importing CMD as a library
The top-level module names (utils, pipeline, wan, inference) collide easily with other packages once CMD is imported from another application. Right now I work around this with sys.path / sys.modules manipulation and by adding __init__.py files.
Question: would you consider namespacing these under a single package? This is the larger change of the three, so I'd only attempt it with your guidance.
I can open PRs for (1) and (2) as separate, minimal changes. Please let me know if there is a contribution process I should follow (CLA, DCO sign-off, etc.).
The adapter README clearly states that it is unofficial, and that the CMD code and weights remain under the NVIDIA OneWay Noncommercial License. If the "NVIDIA" in the repository name is a concern, I'm happy to rename it.
- 主要言語
- Python
- スター
- 73
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Groundskeeper-robot/groundskeeper#248 ·
メンテナーはふだん 1 日以内に返信
-
`pull` silently ignores unknown service names and exits 0対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
containers/podman-compose#1640 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
debpalash/VoiceStudio#4550 ·
メンテナーはふだん 1 日以内に返信
-
fundamentals step:6
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
voantony/OpenCourtVision#244 ·
メンテナーはふだん 1 日以内に返信