Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Move DeepSeek R1 to LiteRT-LM and remove MediaPipe

未关闭
#217 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
重构
描述清晰度
描述清楚
活跃度
活跃
技术栈
flutter
领域
mobile

调研方向

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 内容生成。

描述

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).

主要语言
Dart
星标
2
派生
2
平均合并
1 天 7 小时
30 天内合并 PR
35

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

basictech01/uniun 的其他 Issue

查看 basictech01/uniun 的全部 Issue

相似的 Issue

更多 Dart Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。