Matrix-Game-3: --fa_version 0 (SDPA) is not implemented; attention() asserts a flash-attn install instead of falling back
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 76/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- machine-learning
Direzione di ricerca
Start in Matrix-Game-3/wan/modules/attention.py at flash_attention() and trace how the CLI's --fa_version value reaches it. Check the original Wan attention module's SDPA fallback and its warning, then run the CLI with --fa_version 0 both without flash-attn and with FA2 installed. Done means version 0 uses SDPA and attention still works when neither flash-attn build is importable.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Matrix-Game-3/wan/modules/attention.py no longer has the SDPA fallback that the original Wan attention module ships. The non-FA3 branch of flash_attention() is:
else:
assert FLASH_ATTN_2_AVAILABLE or FLASH_ATTN_3_AVAILABLE
Two consequences:
- Without a flash-attn install, every attention call dies on that assertion, so the model cannot run at all on a machine where flash-attn does not build (the CLI's
--fa_version 0suggests SDPA is meant to be selectable). - With flash-attn 2 installed,
--fa_version 0still runs the flash-attn 2 kernel:version=0is neither3nor handled anywhere, so it falls through to the same branch.--fa_version 3with only FA2 installed does degrade with a warning, which is the configuration that worked for us on an H100.
Suggested fix: restore the torch.nn.functional.scaled_dot_product_attention path for version == 0 (and as the fallback when neither flash-attn build is importable), with the warning the upstream Wan module prints. Happy to open a PR if that is the intended behaviour.
Related, still open as of today: the multi-GPU path passes fa_version= to attention() whose parameter is named version (#80, fix in #61), so --ulysses_size > 1 raises TypeError on a clean checkout.
- Lingua principale
- Python
- Stelle
- 2.3k
- Fork
- 256
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SkyworkAI/Matrix-Game
-
Replace deprecated v2.ToTensor() in Matrix-Game-2/inference.py with v2.ToImage() + v2.ToDtype(scale=True)Forse già presa @xyf5432 l’ha presa 50 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
SkyworkAI/Matrix-Game#82 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
SkyworkAI/Matrix-Game#80 ·
-
run logic error when finishForse già presa @Arison591 l’ha presa 87 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
SkyworkAI/Matrix-Game#77 ·
-
Third person supportAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
SkyworkAI/Matrix-Game#76 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
SkyworkAI/Matrix-Game#75 · 1 reazione ·
Tutte le issue di SkyworkAI/Matrix-Game
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
esphome/esphome.io#7657 ·
I maintainer di solito rispondono entro 1 giorno
-
comp/gateway comp/plugins duplicate P3 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
NousResearch/hermes-agent#137019 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Kumo-Tabular weights unreachable behind restrictive egress proxies (Xet + plain HTTP both fail)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
NVIDIA/structured-data-models#1091 ·
I maintainer di solito rispondono entro 1 giorno
-
[work-item] adam-adae-worsening-emergence: conform spec.yaml to the specification style contract (REQ-1280)Forse già presa @muse-yamaa-bot l’ha presa oggi. Apertawork-item
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno