fix(core-ai): fit video generation in iphone memory
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- ios, react-native, typescript
- Ambito
- ai, mobile, performance
Direzione di ricerca
Start with the video generation harness test and the WanPipeline loading behavior mentioned in the issue; reproduce the memory pressure on an iPhone. Compare whether the text encoder remains resident during denoising and investigate the listed export and entitlement options. Done means the video generation harness test passes on an iPhone.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
coreAI.videoModel(...) runs Wan 2.1 T2V 1.3B bundles, and works on macOS: the iOS export generates 81 frames at 832x480 in about 5 minutes with 2 steps, peaking at 6.9 GB.
On an iPhone 17 Pro (iOS 27) the example app is killed about 3 minutes into generation. The decoder first failed to allocate its Metal heap, and with a decoder exported for 32x32 latent tiles the app is still killed by memory pressure. Apple's recipe traces the transformer for a fixed 60x104 latent (832x480) and the decoder for all 21 latent frames, so there is no smaller export to fall back on.
Options:
- The
com.apple.developer.kernel.increased-memory-limitentitlement, added through the Expo config plugin. The example app's signing profile cannot carry capabilities today, so testing it needs an App ID the team owns, and a Release build - A recipe change that traces a smaller latent (for example 480x480) or fewer frames, contributed to
apple/coreai-models - Loading the text encoder (3.1 GB) only for the prompt and releasing it before denoising, if
WanPipeline's lazy loading keeps it resident
Done when the video generation harness test passes on an iPhone.
Follow-up from #237.
🤖 Generated with Claude Code
- Lingua principale
- TypeScript
- Stelle
- 1.4k
- Fork
- 64
- Merge medio
- 11h 8m
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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 callstackincubator/ai
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
callstackincubator/ai#378 ·
-
feat(android): add ml kit task apis and context cachingForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
callstackincubator/ai#366 · 1 commento ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
callstackincubator/ai#365 · 2 commenti ·
-
Blocked enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
callstackincubator/ai#364 · 1 commento ·
-
feat(android): add streamed and live transcription with word timingsForse già presa Una pull request collegata a questa issue è aperta o già unita. ApertaBlocked enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
callstackincubator/ai#363 · 1 commento ·
Tutte le issue di callstackincubator/ai
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
earendil-works/gondolin#222 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
endora-commerce/endora-commerce#2203 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement priority:medium ready-for-human
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
wondermoney/wondermoney#1079 ·
I maintainer di solito rispondono entro 1 giorno