Test Gemma 4 -gpu model files before switching the catalog
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- dart
- Área
- machine-learning, mobile
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Dart
- Estrellas
- 2
- Forks
- 2
- Merge medio
- 1 d 35 min
- PR fusionados (30 d)
- 36
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de basictech01/uniun
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
basictech01/uniun#300 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
basictech01/uniun#301 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue P2-Medium
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
basictech01/uniun#296 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue P2-Medium
Dificultad 4/5 1-2 días Aptitud para principiantes 22/100
basictech01/uniun#293 ·
Los mantenedores suelen responder en 1 día
-
bug P1-High
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
basictech01/uniun#286 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de basictech01/uniun
Issues similares
-
agent:in-progress agent:ready feature P2 · 中 区域: 悬浮窗
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
ASDW51/DanmuFloat#178 ·
Los mantenedores suelen responder en 1 día
-
Missing workoutsAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
InlitX/GymMane#237 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
AppFlowy-IO/AppFlowy#9077 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Abhinivesh2729/Thinai#41 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
0niel/university-app#617 ·
Los mantenedores suelen responder en 1 día