feat(mobile): On-device ML runtime — llama.rn + ModelManager (#171) #180

Merged
admin-mrrm merged 4 commits from 171-mobile-ml-runtime into main 2026-05-03 09:49:21 +02:00
Owner

Was wurde umgesetzt

  • llama.rn + expo-file-system/legacy als Dependencies eingebunden
  • MailModelManager (src/services/model-manager.ts):
    • Lazy-Download von Qwen2.5-0.5B-Instruct Q4_K_M GGUF (~350 MB) beim ersten suggest()-Aufruf
    • Fortschritts-Events: idle → downloading (0–100%) → loading → ready
    • Modell wird in documentDirectory/models/ gecacht — kein erneuter Download
    • suggest(mailSnippet, existingTags) läuft vollständig on-device via llama.rn
    • Singleton-Export mailModelManager
  • useMailModel-Hook (src/hooks/use-mail-model.ts) für React-Komponenten

Closes #171

## Was wurde umgesetzt - `llama.rn` + `expo-file-system/legacy` als Dependencies eingebunden - `MailModelManager` (`src/services/model-manager.ts`): - Lazy-Download von `Qwen2.5-0.5B-Instruct Q4_K_M GGUF` (~350 MB) beim ersten `suggest()`-Aufruf - Fortschritts-Events: `idle → downloading (0–100%) → loading → ready` - Modell wird in `documentDirectory/models/` gecacht — kein erneuter Download - `suggest(mailSnippet, existingTags)` läuft vollständig on-device via llama.rn - Singleton-Export `mailModelManager` - `useMailModel`-Hook (`src/hooks/use-mail-model.ts`) für React-Komponenten Closes #171
feat(mobile): On-device ML runtime — llama.rn + ModelManager (#171)
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing
66fe133c3b
Lazy-Download und Inferenz für Qwen2.5-0.5B-Instruct (GGUF Q4_K_M).
ModelManager lädt das Modell beim ersten suggest()-Aufruf herunter,
cached es lokal (expo-file-system/legacy) und stellt Progress-Events
bereit. useMailModel-Hook für React-Komponenten.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix(dev): sharp aus neverBuiltDependencies — Termux-Kompatibilität
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
15a2ed0465
sharp hat keine Prebuild-Binaries für android-arm64v8 (Termux).
neverBuiltDependencies verhindert das Scheitern von pnpm install lokal.
CI (linux-x64/alpine) ist davon nicht betroffen.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Merge branch 'main' into 171-mobile-ml-runtime
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
7420d63f97
Merge branch 'main' into 171-mobile-ml-runtime
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
07436424cc
admin-mrrm deleted branch 171-mobile-ml-runtime 2026-05-03 09:49:21 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
admin-mrrm/mrrmlabapp!180
No description provided.