Move DeepSeek R1 to LiteRT-LM and remove MediaPipe
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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).
- 主要言語
- Dart
- スター
- 2
- フォーク
- 2
- 平均マージ
- 18時間 53分
- マージ済み PR(30日)
- 35
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
basictech01/uniun のほかの issue
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
basictech01/uniun#300 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
basictech01/uniun#301 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue P2-Medium
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
basictech01/uniun#296 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue P2-Medium
難易度 4/5 1〜2日 初心者へのやさしさ 22/100
basictech01/uniun#293 ·
メンテナーはふだん 1 日以内に返信
-
bug P1-High
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
basictech01/uniun#286 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
basictech01/uniun の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
PhoebeSoftware/xrooster#41 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
VeryGoodOpenSource/very_good_templates#665 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
VeryGoodOpenSource/very_good_cli#1783 ·
メンテナーはふだん 1 日以内に返信
-
bug to check
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
aaronified/fluenough#665 ·
メンテナーはふだん 1 日以内に返信