



Unlock the power of offline reasoning on your edge device.This guide describes how to locally deploy the DeepSeek-R1 LLMs on the CamThink AI box(NeoEdge NG4500) using Ollama, a lightweight inference engine. This setup enables secure, offline AI interaction with a seamless installation process, turning your AIbox into a private reasoning engine. We have also uploaded this project to Hackster, hoping it can help more people understand how to quickly deploy large language models locally.

Large language models (LLMs) like DeepSeek-R1 are revolutionizing edge intelligence. Deploying them directly on the CamThink AI box offers distinct advantages over cloud-based solutions:
This guide includes:
Before starting, ensure your AIbox meets the following requirements to run DeepSeek-R1 efficiently.Hardware Requirements
| Component | Requirement | Recommended Device |
| Device | CamThink AIbox Series | AIbox Pro / Ultra |
| Memory (RAM) | ≥ 8GB | 16GB+ recommended for larger models |
| Storage | ≥ 20GB Free Space | NVMe SSD recommended for faster loading |
| NPU/GPU | AI Accelerator | Supported NPU/GPU enabled |
Software Requirements
Tip: Ensure your AIbox is running in High Performance Mode to maximize inference speed. Run the performance script in your terminal: sudo aibox-performance --set max.
Ollama is the most efficient way to run LLMs locally on edge devices.Option A: One-Line Script Installation (Recommended)Open your AIbox terminal and run the following command:Bash
curl -fsSL https://ollama.com/install.sh | sh
Option B: Docker DeploymentIf you prefer keeping your environment clean, use Docker:
Verify InstallationCheck if the service is running by typing:Bashsystemctl status ollama Or check the listening port: Bashss -tuln | grep 11434 Expected Output: LISTEN 0 128 127.0.0.1:11434 ...
Once Ollama is ready, you can pull and run the DeepSeek-R1 model with a single command.Get StartedTo run the specialized distilled version (optimized for edge devices):Bash
ollama run deepseek-r1:1.5b
Model Selection Guide for AIboxChoose the model size that fits your AIbox hardware:
| Model Version | Memory Requirement | Performance Note |
| DeepSeek-R1 1.5B | ~1.5 – 3 GB | Fastest. Ideal for real-time tasks and basic reasoning. |
| DeepSeek-R1 7B/8B | ~6 – 8 GB | Balanced. Good reasoning capability, runs smoothly on 8GB+ models. |
| DeepSeek-R1 14B | ~10 – 12 GB | High IQ. Requires AIbox High-End versions (16GB RAM+). |

Prefer a ChatGPT-like interface instead of the command line? Install Open WebUI.Install via DockerRun this command to set up the web interface:Bash
Access the InterfaceOpen the browser on your AIbox (or a PC connected to the same network) and visit:http://localhost:3000/ > (If accessing from another PC, replace localhost with your AIbox’s IP address) You can now:
To get the best token-per-second (TPS) rates on your AIbox:
| Optimization Area | Action |
| Memory Management | Close unused background applications or desktop GUIs (Headless mode). |
| Thermal Control | Ensure the AIbox fan is not obstructed; active cooling helps sustain peak performance. |
| Model Quantization | Use q4_k_m (4-bit quantization) models, which are default in Ollama, to save RAM. |
| System Power | Use the provided 12V/3A+ power adapter to prevent throttling under load. |
Note: The first prompt might take 10-20 seconds to load the model into memory. Subsequent responses will be significantly faster.
Common Issues & Solutions
Error: pull model manifest: file does not exist
ollama pull deepseek-r1:1.5b.sudo ufw allow 3000.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.