Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Move DeepSeek R1 to LiteRT-LM and remove MediaPipe

Aperta
#217 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
flutter
Ambito
mobile

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

enhancement good first issue P2-Medium

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 .task file (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 .task file 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 .litertlm URL, file type litertlm
  • lib/data/datasources/llm/local_model_params.dart — DeepSeek maxTokens 1280 → 4096
  • Remove MediaPipeEngine() from FlutterGemma.initialize(...) in lib/main.dart, lib/features/shiv/gana/engine/gana_workmanager.dart, and the integration tests
  • Remove flutter_gemma_mediapipe from pubspec.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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di basictech01/uniun

Tutte le issue di basictech01/uniun

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.