How to Install DeepSeek Locally on Your Computer
In this article
You can run DeepSeek AI models directly on your computer by using open-source tools like Ollama or LM Studio. This allows you to use the chat interface without an internet connection, keeps your data completely private on your own hardware, and avoids API usage fees or service queues.
What You'll Need
- Hardware: A computer with a modern multi-core CPU (Apple Silicon M1/M2/M3, or recent Intel/AMD) and at least 8GB of RAM. For the larger DeepSeek-V3 model, 16GB or more RAM is recommended.
- Storage: At least 10GB of free disk space for the model files.
- GPU (Optional but recommended): An NVIDIA RTX graphics card or Apple Silicon Mac will significantly speed up responses. A dedicated GPU with 8GB+ VRAM is ideal for the largest models.
- Software: Administrator access to install new applications.
Step-by-Step
The easiest method for most users is installing Ollama, a tool that manages model downloads and runs them with minimal setup.
- Download Ollama. Go to the official Ollama website and download the installer for your operating system (Windows, macOS, or Linux). Run the installer and follow the on-screen prompts to complete the installation.
- Open a Terminal or Command Prompt. On Windows, press the Windows key, type "Command Prompt," and press Enter. On macOS, press Command+Space, type "Terminal," and press Enter. Ollama runs in the background automatically after installation.
- Pull the DeepSeek Model. In the terminal window, type the following command to download the standard DeepSeek model and press Enter:
This downloads the default version (usually an 8-billion parameter size optimized for consumer hardware). If you want the distilled smaller version for faster speeds, useollama run deepseek-r1ollama run deepseek-r1:1.5binstead. - Wait for the Download. The model file is several gigabytes. The download time depends on your internet speed. Once finished, the model loads automatically into memory.
- Start Chatting. You can now type your questions directly into the terminal. The model will process your input and generate a response locally. Type
/byeand press Enter to exit the chat session. - Install a Visual Interface (Optional). The terminal is functional but basic. For a user-friendly chat interface similar to ChatGPT, download "Open WebUI" or use a compatible desktop app like "LM Studio." These tools connect to Ollama running in the background and provide a visual chat window, history, and settings.
Common Mistakes
- Insufficient RAM: Attempting to run the full-size DeepSeek-V3 model on a computer with only 8GB of RAM will likely cause the system to lag or the program to crash. Always check the model size requirements before downloading. Start with the smaller "distilled" versions (like 1.5b or 7b) if you are unsure of your hardware capabilities.
- Confusing Model Names: DeepSeek offers different model families. DeepSeek-R1 is the reasoning model (often used for logic and math), while DeepSeek-V3 is the general-purpose chat model. Ensure you are pulling the correct model tag for your intended use case.
- Ignoring GPU Setup: On Windows, ensure you have the latest NVIDIA drivers installed. Without proper drivers, Ollama may fall back to CPU processing, which is significantly slower.
- Closing the Terminal Too Early: If you are using the terminal method, closing the window might end the chat session. Keep the terminal open while interacting, or use a background service manager if your setup requires it.
Tips
- Use Quantized Models: The models downloaded by Ollama are already "quantized" (compressed) to run on home computers. If you download models manually from other sources, look for "GGUF" format files, which are optimized for local inference.
- Check Resource Usage: Open your Task Manager (Windows) or Activity Monitor (Mac) to see how much RAM and CPU the model uses. If your computer freezes, try a smaller model parameter size.
- Offline Capability: Once the model is downloaded, you can disconnect from the internet entirely. This is ideal for working with sensitive data or using the AI while traveling.
- Updating the Model: To update to the latest version of the model later, run the command
ollama pull deepseek-r1in your terminal. This checks for and downloads any available updates.
Troubleshooting
If the installation does not go to plan, try these steps in order:
- Restart the Computer: A simple restart can resolve driver initialization issues or background process conflicts that prevent Ollama from starting.
- Check Ollama Status: In your terminal, type
ollama list. If this command returns a list of models, Ollama is running correctly. If it returns an error, reinstall Ollama. - Memory Errors: If you see an error message regarding memory or the system becomes unresponsive, your hardware may not meet the requirements. Switch to a smaller model (e.g.,
deepseek-r1:1.5b) which requires significantly less RAM. - Connection Errors: If you use a visual interface like Open WebUI and it cannot connect to the model, ensure Ollama is running in the background. Restarting the Ollama application often fixes connection issues.
- Slow Response Times: If the AI generates text very slowly, check if your GPU is being utilized. On Windows, open Task Manager, go to the Performance tab, and select your GPU. If the "Copy" or "Compute" usage is near 0%, the model is running on the CPU. Update your graphics drivers to enable GPU acceleration.
Frequently Asked Questions
Is DeepSeek free to use locally?
Yes. The DeepSeek model weights are open-source, and running them locally using tools like Ollama is completely free. There are no subscription fees or API costs.
Can I use DeepSeek without the internet?
Yes. You only need an internet connection to download the model files initially. Once downloaded, the AI runs entirely on your computer and works offline.
What is the difference between DeepSeek-R1 and DeepSeek-V3?
DeepSeek-V3 is a general-purpose large language model similar to GPT-4. DeepSeek-R1 is a specialized reasoning model trained for logic, math, and step-by-step problem solving. Choose the one that fits your task.
Will this work on a laptop?
Yes, provided the laptop has enough RAM. A modern laptop with 16GB RAM and an Apple Silicon chip (M1/M2/M3) or a dedicated NVIDIA GPU will run the smaller models efficiently. Older laptops with only 8GB RAM may struggle with larger models.
Is my data private when running DeepSeek locally?
Yes. Since the processing happens entirely on your machine, your prompts and data are never sent to an external server. This makes local deployment ideal for sensitive or confidential information.
How do I delete the model to save space?
Open your terminal and type ollama rm deepseek-r1 (or the specific model name you installed). This removes the model files from your storage.