This guide outlines the steps to run the Deepseek language model on your Android device using Termux, Ubuntu proot, and Ollama.
- Android device (preferably with decent RAM and storage)
- Termux app installed (available on F-Droid or GitHub releases)
-
Install Termux: Download and install the Termux app from F-Droid or the GitHub releases.
-
Update and Install wget: Open Termux and run the following commands to update packages and install
wget:apt update apt upgrade apt install wget
-
Install Ubuntu Proot: Use the following commands to install Ubuntu in a proot environment within Termux:
wget https://raw.githubusercontent.com/TIS199/termux-ubuntu/main/ubuntu.sh && chmod u+x ubuntu.sh && ./ubuntu.sh
Install Ubuntu 24.04 via above script.
-
Start proot Ubuntu
./startubuntu.sh
-
Install Ollama within Ubuntu Proot: Use this command to install ollama inside the Ubuntu proot.
curl -fsSL https://ollama.com/install.sh | shIt will take some time to download its files.
-
Start Ollama Server: Once Ollama is installed, start the Ollama server:
ollama serve
-
Run Deepseek: Open a new Termux window by swiping left.
Start Ubuntu proot again there.
./startubuntu.sh
Start Deepseek-R1:
ollama run deepseek-r1:1.5b
If you run this command for the first time, it will take some time to download the files. If you have a high end smartphone ( I mean really high) you can run faster model:
ollama run deepseek-r1:7b
- Running large language models on mobile devices can be resource-intensive. Performance may vary depending on your device's hardware.
- Ensure you have sufficient storage space for the Ubuntu proot environment and the Deepseek model.

