Test Gemma 4 -gpu model files before switching the catalog
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- dart
- Ambito
- machine-learning, mobile
Direzione di ricerca
Start with #216 and the catalog entry in lib/data/repositories/ai_model_repository_impl.dart. On a real phone, compare the generic and -gpu Gemma 4 E2B files on GPU, then force CPU with the -gpu file; repeat for E4B if E2B looks promising. Done means the load, prefill, decode, and memory comparisons support a clear decision about whether to switch, while confirming whether CPU fallback still works.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What
Test whether the special GPU model files for Gemma 4 are better for us, before changing the catalog.
Why
Both Gemma 4 repos on Hugging Face ship two versions of the model:
| Model | What we download today | Also available |
|---|---|---|
| Gemma 4 E2B | gemma-4-E2B-it.litertlm |
gemma-4-E2B-it-gpu.litertlm |
| Gemma 4 E4B | gemma-4-E4B-it.litertlm |
gemma-4-E4B-it-gpu.litertlm |
Now that the app prefers the GPU on Android (#216), the -gpu file might load faster or run faster.
But the model card doesn't explain what's different, so we should not switch blindly.
Risk to check
The -gpu file may be GPU-only. If it is, our CPU fallback would break — phones where the GPU fails would not be able to run Gemma 4 at all. This has to be tested before switching.
How to test (on a real phone)
- Download both files for Gemma 4 E2B.
- Run the same prompt with each, on GPU, and compare from the log:
- load time
- prefill (reading the prompt) time
- decode (writing the answer) speed
- memory use
- Force CPU with the
-gpufile and check it still loads. If it doesn't, we can't use it as the only download. - Repeat for E4B if E2B looks good.
Decide
- Faster and still works on CPU → switch the catalog URL in
lib/data/repositories/ai_model_repository_impl.dart - Faster but GPU-only → keep the generic file (or download per device, which is a bigger change)
- No real difference → keep the generic file and close this
Depends on #216.
- Lingua principale
- Dart
- Stelle
- 2
- Fork
- 2
- Merge medio
- 1g 35m
- PR unite (30g)
- 36
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 basictech01/uniun
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
basictech01/uniun#300 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
basictech01/uniun#301 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue P2-Medium
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
basictech01/uniun#296 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue P2-Medium
Difficoltà 4/5 1-2 giorni Idoneità per principianti 22/100
basictech01/uniun#293 ·
I maintainer di solito rispondono entro 1 giorno
-
bug P1-High
Difficoltà 4/5 3-5 giorni Idoneità per principianti 18/100
basictech01/uniun#286 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di basictech01/uniun
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
good-first-issue P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
flutter/dart-intellij-third-party#758 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug: Incorrect location coordinates on logged Sound Meter dataForse già presa @Jashan32 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
area/archive bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
DarkFlippers/qUnleashed#374 ·
I maintainer di solito rispondono entro 1 giorno
-
agent:in-progress agent:ready feature P2 · 中 区域: 悬浮窗
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
ASDW51/DanmuFloat#178 ·
I maintainer di solito rispondono entro 1 giorno