Reasoning Models
DeepSeek-R1 on iPhone: Testing Distilled Models Offline
On iPhone, a distilled DeepSeek-R1 variant supported by your runtime is usually the relevant option.
What to try
- Pick a problem with a known solution and set an output cap.
- Compare accuracy and total time against a standard chat model.
- Count all generated text, including reasoning when visible.
On iPhone, a distilled DeepSeek-R1 variant supported by your runtime is usually the relevant option. Check how long it takes to reach a correct answer and whether it suits the job in front of you.
What Makes DeepSeek-R1 Different on Device?
Unlike standard language models that predict the next token in a single pass, DeepSeek-R1 generates internal reasoning steps inside <think> ... </think> tags before delivering its final answer. On cloud servers, this intermediate scratchpad is logged and audited.
On your iPhone, the reasoning sequence unfolds inside local unified memory. If you are reviewing contract clauses, sensitive financial figures, or proprietary Swift code, not a single token of that thinking process is ever transmitted to an external endpoint.
The analysis of Qwen on iPhone provides context for an architecture used by distilled variants.
How to test it on your device
Pick a problem with a known solution and set an output cap. Compare accuracy and total time against a standard chat model. Count all generated text, including reasoning when visible.
Context Window and KV Cache Considerations
In reasoning models, intermediate thinking tokens consume substantial context length. Each additional token stored in the Key-Value (KV) cache occupies memory:
- For a 1.5B model, a 4,096-token KV cache in FP16 consumes approximately 256 MB.
- In Lapis, KV cache quantization ensures that extended multi-turn reasoning conversations remain comfortably within the iOS jetsam threshold without evicting background applications.
Longer reasoning also increases context. The guide to KV cache quantization addresses that memory use.
When to Use R1 vs. Standard Chat Models
While DeepSeek-R1 excels at mathematics, code refactoring, logic puzzles, and structured extraction, standard conversational models (like Qwen 2.5 3B) remain faster for concise creative writing or straightforward translations. In Lapis, you can keep both models stored on device and switch between them in one tap depending on the task.
For another option on problems with verifiable solutions, try Phi-4-mini on iPhone with the same exercises.
The Lapis model catalogue shows compatible options before you choose a download.
Sources and references
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
DeepSeek-AI Team (arXiv:2501.12948, 2025)
- Qwen2.5 Technical Report
Qwen Team, Alibaba Group (arXiv:2412.15115, 2024)
Local execution with Lapis
Chat with compatible models on iPhone, iPad and Mac. Download them once and use local inference offline; model size depends on your device’s resources.