To run DeepSeek AI locally, install a local model runtime, download a model that fits your computer, and load it for inference. A straightforward starting point is Ollama with ollama run deepseek-r1:8b. If you prefer a graphical interface, LM Studio provides a download-and-chat workflow.
This guide uses smaller DeepSeek-R1 models for a practical personal-computer setup. You will choose a model, run a first prompt, check where processing happens, and troubleshoot memory or performance problems.
Documentation checked November 18, 2026. Download sizes are publisher-listed figures; the memory targets below are planning estimates, not hardware benchmark results.
| Your preference | Suggested route |
|---|---|
| Terminal commands and a local API | Ollama setup |
| A graphical model browser and chat window | LM Studio setup |
| Help choosing a model first | Hardware and model-selection table |
Which DeepSeek Model Will You Run Locally?
At the review date, Ollama’s deepseek-r1:8b package is DeepSeek-R1-0528-Qwen3-8B, with Q4_K_M quantization and a listed 5.2 GB download. That identity matters: it is different from the original Llama-based R1 8B distill.

DeepSeek’s official model card describes the underlying model as a Qwen3-based smaller model trained using reasoning traces from R1-0528. Expect the capabilities of that particular model rather than assuming it reproduces every feature or answer of DeepSeek’s hosted chat.
Two terms help explain the download choices. Distillation trains a separate smaller model using a larger model’s outputs. Quantization reduces the numerical precision used to store a selected model’s weights. A quantized 8B distill remains that smaller model; it does not become the full flagship model in a tiny file.
For scale, Ollama lists its full 671B R1 package at about 404 GB. That is a download figure, before considering operating memory and other runtime requirements. Start with a smaller model unless you are deliberately planning a much larger deployment.
DeepSeek Local Hardware Requirements
Check your available system RAM or unified memory, free storage, operating-system compatibility, and GPU support before downloading. A model file needs storage space; inference also needs working memory for the model, its context cache, runtime buffers, and other applications.
The table below suggests conservative first experiments for one conversation at roughly 4,096 tokens of context. These are total system-memory planning targets, not official minimums or promises of a particular generation speed. Close memory-heavy applications and check the runtime’s estimate before loading.
| System RAM or unified memory | Suggested first model | Listed Ollama download |
|---|---|---|
| 8 GB | deepseek-r1:1.5b | 1.1 GB |
| 16 GB | deepseek-r1:8b | 5.2 GB |
| 32 GB | deepseek-r1:14b | 9.0 GB |
| 64 GB | deepseek-r1:32b | 20 GB |
You can choose a smaller model on any of these systems. A 32 GB computer does not need to start with 14B, and successful loading does not establish that generation will be fast enough for your work. Start small, measure your own task, and increase model size only when the tradeoff makes sense.
RAM and GPU memory are different limits
On a computer with a discrete GPU, system RAM and GPU VRAM are separate resources. A model can run entirely on the CPU, entirely on a supported GPU, or partly on each. Ollama documents these placements in its local FAQ. CPU or mixed execution can be a valid local setup, although speed may differ substantially.
Check the GPU compatibility documentation for your hardware and drivers. Do not assume an 8 GB graphics card has 8 GB freely available for model weights, or apply the table’s system-RAM targets directly to VRAM.
Keep context modest for the first run
The model’s advertised maximum context is not a sensible default for every computer. Ollama’s context-length documentation explains that increasing context increases memory requirements. Begin with a modest context, establish a working baseline, and expand it only when your task requires more input.
Method 1: Run DeepSeek Locally with Ollama
1. Install Ollama for your operating system
| Operating system | Installation route |
|---|---|
| Windows | Use the native installer from Ollama’s download page. Open a new PowerShell or Command Prompt window afterward. |
| macOS | Install the official app, move it to Applications, and launch it. Then open Terminal. |
| Linux | Follow the official Linux installation instructions, including any platform-specific requirements. |
The Windows documentation specifies Windows 10 22H2 or newer and supports a native installation. The macOS documentation specifies macOS 14 or newer; Apple silicon supports CPU and GPU execution, while Intel Macs use CPU execution.
On Linux, the official installer command is:
curl -fsSL https://ollama.com/install.sh | sh
After installation on your chosen platform, verify that the command is available:
ollama --version
If your shell cannot find it, finish the installation, launch the app where applicable, and reopen the terminal. A missing command is an installation or PATH problem, not evidence that your chosen model is too large.
2. Download a specific local model
The Ollama CLI lets you download the model separately from opening a chat:
ollama pull deepseek-r1:8b
The download needs an internet connection and enough free disk space. If you are starting on an 8 GB system or encounter memory pressure, use the smaller option instead:
ollama pull deepseek-r1:1.5b
Use an explicit tag so you know which package you intended to install. A tag can still be updated by its publisher, so record the model details if you need to reproduce results later.

3. Set context, load the model, and send a prompt
Before the first load, set the Ollama app’s context-length slider to 4,096 tokens. For a server managed without the app, set OLLAMA_CONTEXT_LENGTH=4096 in the environment used to start that server, then restart the relevant service. The context configuration guide explains these options. This aligns the initial context with the memory estimates above.
Then load the model. Substitute deepseek-r1:1.5b if you downloaded the smaller option:
ollama run deepseek-r1:8b
You can also adjust the context inside an interactive session with:
/set parameter num_ctx 4096
This is a tutorial starting point supported by Ollama’s interactive configuration, not a claim that every installation has the same default. Then try a small question you can evaluate, such as:
Example prompt: Explain the difference between RAM and storage in three short bullet points.
Allow the first response to finish. A reasoning model may spend time generating reasoning before its final answer, so distinguish a long generation from a failed load. After that first check, try a representative task from your own work.

4. Inspect the running model and exit correctly
In another terminal, inspect the loaded model:
ollama ps
Check its processor placement and allocated context. The documented processor labels include CPU, GPU, and mixed placement. Seeing 100% CPU does not mean inference moved to the cloud.

Enter /bye inside the chat to leave the interactive session. To unload the model from memory explicitly, run this in your normal terminal:
ollama stop deepseek-r1:8b
Use the tag you actually loaded if you chose a different model. Leaving the chat and removing the downloaded model are separate actions.
Method 2: Run DeepSeek in LM Studio
For these graphical steps, choose the desktop app under Download LM Studio on the official download page. That page also offers Bionic, which has a different interface; its local-model path is described below.
Check the system requirements first. LM Studio recommends at least 16 GB RAM. Its macOS app supports Apple silicon with macOS 14 or newer; Intel Macs are not supported. Windows and Linux x64 systems require AVX2 support.
- Install and open LM Studio, then go to its Discover model browser.
- Search for DeepSeek-R1-0528-Qwen3-8B and choose a supported quantized download.
- For a consistent starting point, select a Q4_K_M GGUF variant from a clearly identified publisher.
- Download the model, open Chat, select it in the model loader, and load it.
- Use a modest context for the first test, then send the same short prompt you used to evaluate your setup.
The model-download guide explains searching and choosing a variant. One identified conversion is lmstudio-community/DeepSeek-R1-0528-Qwen3-8B-GGUF. It packages the underlying DeepSeek checkpoint for compatible local runtimes; check both the base model and the chosen quantization.

Do not download every variant in a model repository. Choose one compatible file that fits your available memory. Different quantizations and packages can have different sizes, so the Ollama download figures above are not universal GGUF file sizes.
If the app reports insufficient memory, select a smaller model or reduce the configured context before trying again. Repeatedly loading the same oversized configuration will not create additional memory.

If you are using LM Studio Bionic
Bionic is a separate application. Its documented download path is Settings → Local Models → Explore. Choose a model and variant, select this computer as the destination if multiple devices are available, and download it. Find it under Local Models → Library, then select it in a session. See Download Local Models.
Select Local for inference on this computer. Bionic’s model-location documentation distinguishes Local from Cloud and Remote; Remote uses another device through LM Link.
Verify That DeepSeek Is Running Locally
Installing a local application does not establish where every model runs. For example, Ollama’s DeepSeek-V4.1-Flash listing currently offers cloud tags. Selecting a :cloud model uses hosted inference, even when the command is entered on your computer.
Likewise, a localhost API address alone is not proof of on-device computation: Ollama can route a selected cloud model through the local application. Its cloud documentation explains where that inference runs. Check the model and execution route together.
- Finish downloading the model and any required runtime components while online.
- Select the downloaded local model and confirm it loads successfully.
- For a simple text-only check, disconnect the computer from the internet and send a new prompt.
- Confirm that the selected model still produces a response, then reconnect when finished.
LM Studio documents offline operation for downloaded local models. Model discovery, downloads, and updates are separate online operations. The test above checks the inference path you exercised; it is not a complete audit of plugins, backups, or other applications.

For Ollama, its local-only configuration supports OLLAMA_NO_CLOUD=1 in the environment used to start the Ollama server, or "disable_ollama_cloud": true in ~/.ollama/server.json. Preserve existing settings and restart Ollama. This disables cloud models and web search; it is not a general firewall for every network operation.
Improve Speed Without Losing a Working Baseline
Change one variable at a time. First record the model tag, context setting, processor placement, and approximate time to finish a representative prompt. Compare complete answers, not just whether the first token appeared quickly.
- Reduce model size: Try the smaller model before making a large configuration change.
- Reduce context: Avoid reserving a large context for a short conversation.
- Free working memory: Close other large applications and unload unused models.
- Check acceleration: Verify supported GPU drivers and the runtime’s actual CPU/GPU placement.
- Limit simultaneous work: Establish performance with one request before adding parallel requests.
Evaluate answer quality as well as speed. A setup that responds quickly but misses instructions may be unsuitable for your task. Use a short set of representative prompts: an explanation, a structured extraction, and a task with an answer you can independently verify.
Expect local results to vary with model choice, quantization, settings, hardware, and prompt. This guide does not assign universal tokens-per-second figures or claim that a small local model matches a hosted flagship.
Optional: Call DeepSeek Through a Local API
Once the Ollama model is running, applications can call its native chat endpoint. The following Python 3 example uses the standard library and requests one JSON response with stream: false. It requires no DeepSeek API key.
import json
from urllib.request import Request, urlopen
payload = {
"model": "deepseek-r1:8b",
"messages": [
{"role": "user", "content": "Define RAM in one sentence."}
],
"stream": False,
"options": {"num_ctx": 4096},
}
request = Request(
"http://127.0.0.1:11434/api/chat",
data=json.dumps(payload).encode("utf-8"),
headers={"Content-Type": "application/json"},
method="POST",
)
with urlopen(request, timeout=300) as response:
result = json.load(response)
print(result["message"]["content"])
Use the exact tag you downloaded. The 300-second client timeout is an example choice, not a promise about model speed. Save the code as local_deepseek.py and run it with your Python 3 interpreter.
The response’s final answer is in message.content. This example targets your local Ollama server, not api.deepseek.com; the selected model still determines the inference location. Keep the default loopback binding for a one-computer setup, as described in Ollama’s configuration documentation.
For this first integration, keep the request small and avoid attaching a browser agent, external search service, or remote database. Add integrations individually after the basic local request works so you can identify which component introduces a problem.
Troubleshoot Common Local DeepSeek Problems
| Problem | What to check | Useful next action |
|---|---|---|
| The ollama command is not found. | Installation, app startup, and the terminal’s PATH. | Complete installation and reopen the terminal. |
| Cannot connect to Ollama. | Whether its app or background service is running. | Start the installed app/service; use ollama serve only when a server is not already running. |
| Port 11434 is already in use. | Whether an Ollama server is already active. | Use the existing server instead of launching a duplicate. |
| The model cannot be downloaded. | Exact tag, connectivity, and free disk space. | Check the library entry, then retry the pull when the underlying issue is fixed. |
| Out of memory or model-load failure. | Available RAM/VRAM, context, and other loaded models. | Unload unused models, lower context, or select a smaller model. |
| Generation is very slow. | CPU/GPU placement, model size, and request length. | Check ollama ps or LM Studio’s load information; simplify the test. |
| The model asks for cloud access. | Whether you selected a cloud model. | Choose a downloaded local model and verify the execution route. |
| Answers differ from DeepSeek’s website. | Model identity, configuration, and available tools. | Evaluate the specific local checkpoint rather than expecting identical outputs. |
On Windows and macOS, Ollama’s installed application normally supplies the background server. On Linux, check the service installed for your setup. Starting another server is not the first fix when one is already listening. The platform-specific installation pages explain the relevant service behavior.
If a problem appears only after increasing context or loading a larger variant, return to the configuration that worked. Keep that baseline until you have identified the additional memory or runtime requirement.
Useful Ollama Model-Management Commands
These commands follow the CLI reference. Run them in your normal terminal, using the model tag you want to manage.
| Command | Purpose |
|---|---|
ollama ls | List downloaded models. |
ollama show deepseek-r1:8b | Inspect the selected model’s information. |
ollama ps | See models currently loaded into memory. |
ollama stop deepseek-r1:8b | Unload that model from memory. |
ollama pull deepseek-r1:8b | Download or refresh the package associated with the tag. |
ollama rm deepseek-r1:8b | Remove the downloaded model. |
Refreshing a model can change the package behind a tag. If reproducibility matters, record model information and test the updated package before replacing a working setup in a larger application.
Frequently Asked Questions
Can I run DeepSeek locally without a GPU?
CPU execution is possible with a supported runtime and sufficient memory. Start with a small model and evaluate the waiting time on your own tasks. A dedicated GPU is useful for acceleration, but its absence does not automatically prevent local inference.
Can I run DeepSeek on a computer with 8 GB RAM?
A quantized 1.5B model is a more conservative first experiment than the 8B package. Keep context modest and leave memory for the operating system. The table above is a planning guide; available memory and runtime compatibility still matter.
Is running DeepSeek locally free?
The downloaded local-model workflow does not require paying DeepSeek for each generated token. You still supply the computer, storage, electricity, and setup time. Hosted models or optional cloud services have their own terms and are separate from the local path described here.
Can I run the full or newer DeepSeek models locally?
Downloadable weights exist for DeepSeek-V4.1-Flash-1017 and DeepSeek-V4-Pro-0813. DeepSeek also publishes DeepInfer for V4.1-Flash inference. Deploying those releases is a separate hardware-and-runtime project, not the small R1 setup in this guide. An Ollama cloud listing does not mean downloadable weights are unavailable elsewhere.
Will a local R1 model automatically read PDFs, see images, or search the web?
Those capabilities depend on the selected model and surrounding application. The R1 package used here is a text model. PDF extraction or retrieval, image understanding, and web search require suitable additional capabilities; installing the model alone does not reproduce the hosted DeepSeek interface.
Can I use a local model commercially?
Review the license of the exact checkpoint and its upstream model before redistribution or commercial deployment. The DeepSeek-R1 repository distinguishes the original Qwen- and Llama-based derivatives and their licensing context. The runtime’s terms and any additional components also need to be considered.
