How to Run DeepSeek Locally With Ollama (Step-by-Step Guide)
To run DeepSeek locally with Ollama, install Ollama, then run one command: ollama run deepseek-r1:8b. That downloads the 8B distilled DeepSeek R1 model, about 5.2 GB, and opens a chat in your terminal. The model then runs on your own machine, with no account, no per message charge, and your prompts staying on your computer. The only decision that matters is the size, because a model too big for your hardware runs so slowly it feels broken, while one too small gives weaker answers than you need.
This guide makes that decision first, then walks through the install, the first chat, and a simple speed check that tells you whether the size you picked works on your hardware. It covers one model family, DeepSeek R1, and one runner, Ollama. Our guide to running local AI models on your PC with Ollama covers the general setup; this article goes deeper on DeepSeek specifically.
Pick your size first
DeepSeek R1 on Ollama is a family of sizes, from a 1.1 GB model that runs on an old laptop to a 404 GB full model that belongs on a server. Every size below is the default download for that tag on Ollama’s own model library page, checked on December 5, 2026. Pick the row that matches your machine.
| Your hardware | Pull this tag | Download size | What it is good for |
|---|---|---|---|
| 8 GB RAM, no graphics card | deepseek-r1:1.5b | 1.1 GB | Short answers, quick drafts, light reasoning |
| 16 GB RAM, 6 to 8 GB VRAM | deepseek-r1:8b | 5.2 GB | Everyday reasoning, code help, writing |
| 32 GB RAM, 12 GB VRAM | deepseek-r1:14b | 9.0 GB | Harder reasoning, longer answers, bigger files |
| 32 GB RAM, 24 GB VRAM | deepseek-r1:32b | 20 GB | Long documents, serious coding sessions |
| 64 GB RAM, workstation graphics card | deepseek-r1:70b | 43 GB | Near full model quality on a powerful desktop |
| Server with hundreds of GB of memory | deepseek-r1:671b | 404 GB | The full model, not a desktop download |

Two details deserve a second look. The 8B tag is the default: typing ollama run deepseek-r1 with no tag pulls the same 5.2 GB model. There is also a 7B tag at 4.7 GB, a middle step if 8B is slightly too slow but 1.5B is too weak. The sizes above are the standard compressed downloads, so stick to the plain tags.
The size matters because the model weights have to fit in memory. On a machine with a graphics card, Ollama loads as much as it can into the card’s VRAM, which is fast. Whatever does not fit spills into system RAM, which is much slower, and that is when a model that downloaded fine still crawls. If the graphics card side of sizing is new to you, our guide to how much VRAM you need for local AI models explains how VRAM and model size fit together.
What you are actually downloading
DeepSeek R1 is a reasoning model. It works through a problem step by step before it answers, and in Ollama you can watch that working out appear between think markers before the final answer. The full R1 model has 671 billion parameters and uses a mixture of experts design, so only part of it is active for any one token. The smaller sizes are distilled versions, trained to copy the large one’s reasoning patterns, built on Qwen and Llama base models.
The 8B model most people install is a refresh called DeepSeek-R1-0528, based on Qwen3-8B. Ollama’s library page also states that the R1 weights are licensed under the MIT License, which allows commercial use and modification. The distilled models carry a 128K context window, the full 671B model a 160K one.
One thing to understand before you install anything: a local model has no web search. R1 in Ollama cannot check current prices, news, or documentation. It is strong at reasoning, writing, summarising text you give it, and working with code. It works offline, so nothing you type leaves your machine. See Ollama’s DeepSeek R1 library page for the full tag list.
Install Ollama
Ollama is the program that downloads the model, loads it into memory, and serves the chat. Install it first, then come back for the model.
- On Windows, run the installer from ollama.com/download, or open PowerShell and run irm https://ollama.com/install.ps1 | iex. Ollama then runs in the background with an icon in the system tray.
- On a Mac, run the macOS installer from ollama.com/download, then open the Ollama app once so it starts. The same terminal command works too: curl -fsSL https://ollama.com/install.sh | sh.
- On Linux, open a terminal and run curl -fsSL https://ollama.com/install.sh | sh. The installer sets Ollama up as a background service.
- Check the install in a fresh terminal or PowerShell window with ollama –version. You should see a version number printed back.
- Run ollama list. On a fresh install it prints an empty table, which is correct.
If the terminal says the ollama command was not found, close the terminal and open a new one so it picks up the updated path, then try again. You do not need an Ollama account: accounts only come into play for the cloud models covered later in this guide.
Pull and run your first DeepSeek model
With Ollama installed, one command both downloads the model and starts the chat. Use the tag from the size table that matches your hardware. The example below uses the 8B model.
- Open a terminal or PowerShell window and run ollama run deepseek-r1:8b. If you picked a different size, replace 8b with your tag.
- Wait for the download. The 8B model is 5.2 GB, so on a fast connection this takes a few minutes.
- When the download finishes, the chat prompt appears. Type a question and press Enter, for example: Explain the difference between a virus and a worm in four sentences.
- Watch the reply. You will see the model’s thinking first, between think markers, and then the final answer. The thinking is normal for this model.
- Type /bye and press Enter to leave the chat. The model stays downloaded.
To download first and chat later, run ollama pull deepseek-r1:8b on its own. That fetches the model without opening the chat.
A few commands are worth knowing from the start. ollama ps shows which models are loaded in memory and how much of each one is running on the graphics card. ollama stop deepseek-r1:8b unloads the model without deleting the download. ollama rm deepseek-r1:8b deletes it completely and reclaims the disk space.
Measure the speed with the tokens-per-second check
A model that downloads is not the same as a model that runs well. The one check that tells you the truth is the tokens per second figure: how many words of answer the model produces each second. The whole check takes about a minute.

- Open a terminal and run ollama run deepseek-r1:8b –verbose “Write a four sentence summary of how photosynthesis works”.
- Wait for the answer to finish. The –verbose flag makes Ollama print a timing summary after the reply.
- Find the line that reads eval rate, followed by a number of tokens per second. That is your generation speed: how fast the model writes its answer.
- Run the same command a second time and keep the second reading. The first run includes loading the model, which makes it look slower than it really is.
- Compare your number with the bands in the next section. If it lands in the comfortable band, the size fits your machine.
The timing summary has four lines worth knowing. Total duration is the whole request from start to finish. Load duration is the time spent loading the model, large on the first run and small on later runs. Prompt eval rate is how fast Ollama processed your input, which matters most for a long pasted document. Eval rate is the generation speed, and it is the number to judge by. Inside a chat, turn the same timings on with /set verbose, and off again with /set quiet.
Use the same prompt every time you compare two sizes, because a short question and a long reasoning task produce different numbers. Keep the prompt identical and change only the model size.
Read the numbers and pick the right size
Tokens per second is only useful if you know what the numbers feel like. Reading speed for most people is around 4 to 5 words per second, and a token is roughly three quarters of a word, so the model needs about 7 tokens per second just to keep up. Anything well above that feels instant.
| Eval rate | What it feels like | What to do |
|---|---|---|
| Under 5 tokens per second | Words appear one at a time, long waits for a full answer | Step down one size, close other apps |
| 5 to 10 tokens per second | Usable for short answers, slow for drafting or long replies | Fine for quick questions |
| 10 to 25 tokens per second | Comfortable chat speed, answers flow as you read | This size fits your machine, keep it |
| Over 25 tokens per second | Fast, answers appear almost at once | You have headroom, try the next size up |
If your number is far lower than you expected, the model is probably spilling out of VRAM into system RAM. Run ollama ps while the model is loaded and look at the processor column: it should show 100 percent GPU. If it shows a split between GPU and CPU, or CPU only, the model is too big for your graphics card’s memory. Stepping down one size usually fixes it. On Windows and Linux, nvidia-smi shows how much VRAM is in use while the model runs. On a Mac, memory is shared, so the check is simply whether the eval rate lands in the comfortable band.
Context length also affects speed. The distilled models carry a 128K context window, and longer conversations use more memory as they grow. If a chat gets slower the longer it runs, start a fresh chat: a new session starts with an empty context. You can also cap the context with /set parameter num_ctx 8192.
Make it part of your daily work
Once the model runs at a comfortable speed, the next step is making it easy to reach. The terminal chat is fine for a quick question, but a local model earns its place when it sits inside the tools you already use. Ollama runs a local server at localhost port 11434, and it speaks an API other apps can call.
- Keep one model loaded and reuse it. Ollama keeps a model in memory for a while after you leave the chat, so a second question starts fast. Run ollama stop deepseek-r1:8b when you are done for the day.
- Point a desktop app at it. Several chat apps and coding tools accept a custom local endpoint, and pointing them at http://localhost:11434 gives you a proper window instead of a terminal.
- Send it a prompt from a script. A single curl call to the local API returns an answer you can pipe into a file or another program.
- Give it a file to work with. Paste the text into the chat and ask for a summary, a rewrite, or an explanation. For a very long document, work through it in sections.
- Delete models you no longer use. Each size takes gigabytes of disk. Remove the ones you have moved past with ollama rm and the tag, and the space comes back immediately.
One habit keeps the experience smooth: leave the model you use most as the only one loaded. Ollama can hold more than one model in memory, but each one takes its share. If answers suddenly slow down, run ollama ps and check what is loaded.
DeepSeek V4 and V4.1 are not local installs
Sooner or later you will see DeepSeek V4 mentioned as the newer model and wonder whether to install it instead. On Ollama, you cannot. The situation as of December 5, 2026 is clear, checked directly against Ollama’s library pages rather than taken from a guide.
- DeepSeek V4.1 Flash appears on Ollama only as two cloud tags, deepseek-v4.1-flash:cloud and deepseek-v4.1-flash:1017-cloud. There is no downloadable V4.1 Flash tag. Running either tag sends your prompts to Ollama’s servers, so it is not a local install, and it needs an account and usage credits.
- DeepSeek V4 Pro is in the same position: only deepseek-v4-pro:cloud and deepseek-v4-pro:0813-cloud exist, both cloud tags with a 1M context window. No downloadable weights are listed.
- DeepSeek V4 Flash, the earlier V4 release, was retired on Ollama on September 25, 2026. Its library page states that no models have been pushed, so the tag is gone entirely.
- That leaves the R1 distills as the only DeepSeek models you can download and run on your own hardware through Ollama.

The cloud tags are easy to spot once you know the rule: on Ollama, a cloud model name ends in :cloud, and the download page states that cloud models run on Ollama’s servers, need no download, and are fast on any computer. That makes them a reasonable option if you want to try V4.1 Flash, but it is a hosted service, not a local model. Your prompts leave your machine, you need an account, and usage is metered. See Ollama’s DeepSeek V4.1 Flash library page, which lists only the two cloud tags.
Fix the common problems
Most DeepSeek and Ollama problems have a small number of causes. Work through the symptom that matches yours.
- The download stalls or fails partway. Run the same ollama pull command again. Ollama resumes a partial download instead of starting over.
- The model answers very slowly. Run the tokens per second check from the earlier section. If the eval rate is under 5, step down one size. Also close other heavy apps, because a browser with many tabs can take the VRAM the model needs.
- Ollama reports the model is out of memory. The tag you pulled is too big for the memory available. Remove it with ollama rm, and pull the next size down.
- The terminal says ollama was not found. Close the terminal and open a new one so the path updates, then try ollama –version. If it still fails, reinstall Ollama and let the installer finish completely.
- Ollama will not start, or the app icon never appears. On Windows, open Task Manager and check that Ollama is running. On a Mac, open the Ollama app from Applications. On Linux, check the service with systemctl status ollama.
- The model’s thinking goes on for a long time before the answer. That is normal for a reasoning model. Ask for a short answer directly, for example by adding in three sentences to the prompt, and the thinking shortens to match.
If none of these fixes the problem, update Ollama to the latest release from the download page. An old install is the most common reason a command from a guide stops working.
When local DeepSeek is the wrong tool
Running DeepSeek locally is the right choice when you want privacy, no per message cost, and a model that works offline. It is not the right choice for everything.
- You need the full 671B model. It is a 404 GB download that needs server class memory, and a desktop cannot run it at a usable speed. Use DeepSeek’s hosted chat or API instead.
- You need current information. A local model cannot browse the web, so it cannot check today’s prices, news, or documentation. Use a search engine or a hosted assistant for facts from this week.
- You need the newest DeepSeek model. V4 and V4.1 exist on Ollama only as cloud tags, as covered above. If you need V4 specifically, use the cloud route or DeepSeek’s own hosted service.
- You work with very long documents every day. The 128K context window is large, but a full book or a huge codebase still does not fit in one prompt. Work through it in sections.
- You share one machine with other people. A local model is tied to the machine it runs on.
Pick the size that fits your hardware, run the speed check, and keep the size that lands in the comfortable band. That one check is the difference between a local model that feels like a useful tool and one that feels like a chore.
- How to Run DeepSeek Locally With Ollama (Step-by-Step Guide) - December 5, 2026
- How to Boot Windows 11 in Safe Mode (Every Method) - December 4, 2026
- How to Fix Critical Process Died on Windows 11 [Fix] - December 3, 2026
