Move DeepSeek R1 to LiteRT-LM and remove MediaPipe
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Start with the model URL and file type in lib/data/repositories/ai_model_repository_impl.dart, then check the DeepSeek token limit in lib/data/datasources/llm/local_model_params.dart. Update the listed FlutterGemma.initialize(...) call sites and integration tests, and remove the dependency from pubspec.yaml. Test download and responses on a real phone, including <think> rendering and memory use on a low-RAM device; confirm the old .task file is no longer needed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What
Move DeepSeek R1 to the LiteRT-LM engine and remove the MediaPipe engine from the app.
Why
- Right now MediaPipe is only in the app for one model: DeepSeek R1. Our catalog downloads it as a
.taskfile (deepseek_q8_ekv1280.task), which only MediaPipe can run. Qwen3 and Gemma 4 already use LiteRT-LM. - Google's own model card says the MediaPipe route is "in maintenance mode", so it won't get new fixes or speedups.
- A LiteRT-LM build of DeepSeek R1 now exists in the same Hugging Face repo:
DeepSeek-R1-Distill-Qwen-1.5B_multi-prefill-seq_q8_ekv4096.litertlm - One engine instead of two means less to maintain, a smaller app, and DeepSeek gets the same GPU handling and fixes as the other models.
Not a drop-in swap
- The new file has a bigger context (4096 vs our 1280), so it uses more memory. Needs checking on a low-RAM phone.
- People who already downloaded the old
.taskfile would need to download the new one. The old file becomes unused (the storage cleanup can remove it).
What to change
lib/data/repositories/ai_model_repository_impl.dart— point DeepSeek R1 at the.litertlmURL, file typelitertlmlib/data/datasources/llm/local_model_params.dart— DeepSeekmaxTokens1280 → 4096- Remove
MediaPipeEngine()fromFlutterGemma.initialize(...)inlib/main.dart,lib/features/shiv/gana/engine/gana_workmanager.dart, and the integration tests - Remove
flutter_gemma_mediapipefrompubspec.yaml
How to test (on a real phone)
- DeepSeek R1 downloads, loads, and answers
<think>reasoning blocks still show correctly- Memory use and speed compared with the old file
- Works on a low-RAM phone without being killed
Depends on #216 (flutter_gemma 1.8.3).
- Lingua principale
- Dart
- Stelle
- 2
- Fork
- 2
- Merge medio
- 1g 7h
- PR unite (30g)
- 35
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
-
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
-
P3-Low
Difficoltà 4/5 1-2 giorni Idoneità per principianti 30/100
basictech01/uniun#282 · 1 commento ·
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 72/100
AppFlowy-IO/AppFlowy#9075 ·
-
Paste asks for iOS paste permission because the default context menu ignores SystemContextMenuForse già presa @dorklein l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
maheshj01/searchfield#267 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
avdept/JellyBoxPlayer#375 ·
I maintainer di solito rispondono entro 1 giorno
-
Prices - Receipts
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
openfoodfacts/smooth-app#7845 ·
I maintainer di solito rispondono entro 1 giorno