What this changes
Stacked on #463. It brings the downloaded models of the Backtape branch (dev/iphone-history-preview, BacktapeModel.swift, MLX with pinned revisions) onto main's Screen History and joins them with the decision model.
- Settings › Models › Downloaded Model. Qwen 3 1.7B or Qwen 3.5 2B can be downloaded to the iPhone. The download is offered whether or not the iPhone has Apple Intelligence. Only one model is kept.
- Decision model. Once downloaded, the model appears in the Decision Model menu beside Off, Apple Intelligence and the provider's models. It decides through
PromptDecider, and nothing of the task or the screen leaves the phone. It gets up to 15 s for a decision, since its weights may have to load first. - Screen History. Its notes are written by Apple Intelligence where the iPhone has it, and by the downloaded model where it does not.
Adds the mlx-swift-lm and swift-transformers packages to the app.
How you tested it
-
swift test --filter DeciderTestsfor PokiCore on Linux: 32 tests pass, including the prompt and strict answer reading that the on-device models go through. -
Not yet done: the app code here has not been compiled, and nothing has run on a Simulator or a physical iPhone. MLX needs a real GPU, so the downloaded model can only be tried on a phone.
-
I removed passcodes, tokens, and private screen contents from this PR.
-
I release this contribution under the AGPL-3.0-only license.
Activity
14This pull request is a draft
Merging is unavailable until it is marked ready for review.