The AI World · Article 6

DeepSeek 101: from the app to running it on your own computer

The Chinese lab that shook Silicon Valley, how R1 learned to reason, mixture-of-experts and latent attention, the app, the API, open weights and privacy.

By Mrinal Singh Raja18 min read

How to read this

New to DeepSeek? Read the green sections to understand the story and start using it safely. Curious why it made headlines? The amber sections explain the engineering. Want the deep end? The red sections cover GRPO, running models locally and the API.

BeginnerIntermediateAdvanced

In the last week of January 2025, a free chatbot from a little-known Chinese company became the most downloaded app in America, and the world’s most valuable chip-maker lost close to $600 billion of stock-market value in a single day. The company was DeepSeek, and it had just released a reasoning model as good as OpenAI’s best — and given it away.

DeepSeek is worth understanding for two reasons. As a tool, it is capable, very cheap and, uniquely among the top labs, it publishes its models so anyone can run them. And as a story, it changed how the whole industry thinks about what building frontier AI costs. This guide covers both: the history, how to use it step by step, the clever engineering behind it, how to run it on your own computer, and the privacy questions you should weigh.

01Beginner

What is DeepSeek?

DeepSeek is a Chinese AI company, based in Hangzhou, and the name of its family of AI models and chat app. You can use it like ChatGPT — ask questions, write, code, analyse — and it is best known for reasoning: it can think a problem through step by step, and it shows you that thinking.

Two things make it different from ChatGPT, Claude or Gemini. First, open weights: DeepSeek publishes its models for anyone to download, run and modify, so you can use DeepSeek without using DeepSeek’s servers at all. Second, price: its engineering is so efficient that its API costs a small fraction of most Western rivals.

02Beginner

From hedge fund to headline

DeepSeek grew out of High-Flyer, a quantitative hedge fund co-founded by engineer Liang Wenfeng that used AI for trading and had bought thousands of Nvidia GPUs before US export controls tightened. In 2023 Liang spun out DeepSeek as a research lab with a stated goal of general AI, funded by the fund rather than outside investors — and with a culture of publishing its methods openly.

  1. 2015–2023

    From a hedge fund to an AI lab

    Liang Wenfeng’s quantitative fund High-Flyer builds large GPU clusters for trading research, then spins out DeepSeek in Hangzhou in July 2023 to pursue general AI.

  2. Nov 2023

    DeepSeek Coder and DeepSeek LLM

    The first open models, for code and general chat.

  3. May 2024

    DeepSeek-V2 and the price war

    A mixture-of-experts model with a new attention design, priced so low that other Chinese labs cut their prices too.

  4. Dec 2024

    DeepSeek-V3

    671 billion parameters, 37 billion active per token, near the frontier at a fraction of the usual training cost.

  5. Jan 2025

    DeepSeek-R1

    An open reasoning model that rivals OpenAI’s o1, trained largely with reinforcement learning, MIT-licensed. The app tops the charts and shakes the markets.

  6. Mar–May 2025

    V3-0324 and R1-0528

    Upgrades to both lines: better coding, reasoning and fewer hallucinations.

  7. Aug–Dec 2025

    V3.1, V3.2 and sparse attention

    One hybrid model that can think or answer directly; DeepSeek Sparse Attention makes long context much cheaper.

  8. Apr–Sep 2026

    The V4 family

    V4-Pro and V4-Flash with 1-million-token context and stronger agent skills, then V4.1-Flash with built-in image understanding.

Fig. 1 — DeepSeek’s major releases, from its first open models to today’s V4 family. Dates from 2024 onward follow DeepSeek’s API changelog.
03Beginner

The January 2025 shock

Why did one model move markets? Until then, the assumption was that frontier AI required tens of billions of dollars and the most advanced chips — a game only a few American giants could play. DeepSeek, working under export restrictions that limited it to less powerful Nvidia chips, reported that the final training run of V3 used about 2.8 million GPU-hours, roughly $5.6 million at rental prices, and then released R1, which matched OpenAI’s o1 on many maths and coding tests.

#1

free app on Apple’s US App Store within a week of R1’s release

≈17%

one-day fall in Nvidia’s share price on 27 January 2025 — close to $600 billion of market value

$5.6M

DeepSeek’s estimate for the GPU time of V3’s final training run (not total research cost)

MIT

the open licence R1’s weights were released under — free to download, modify and use commercially

Fig. 2 — The DeepSeek moment in numbers. The $5.6 million covers GPU time for the final V3 run only — not the research, experiments, staff or hardware before it.

The reaction was partly overdone — the headline cost left out a great deal, and the big labs soon released stronger models. But the lesson stuck: clever engineering can substitute for a lot of raw computing power, and open models can stay close behind closed ones.

04Beginner

Four ways to use DeepSeek

Because the models are open, “using DeepSeek” can mean four quite different things — and the difference matters most for where your data goes.

The DeepSeek app

chat.deepseek.com, iPhone and Android. Free.

📍 Runs on DeepSeek’s servers in China

The DeepSeek API

platform.deepseek.com. Pay per token, very cheaply.

📍 Runs on DeepSeek’s servers in China

Another company’s cloud

Open weights hosted by cloud providers and AI platforms.

📍 Runs where that provider says

Your own computer

Download open weights; run with Ollama or LM Studio.

📍 Never leaves your machine

Fig. 3 — Four ways to use DeepSeek models, and where your words are processed in each.
05Beginner

Getting started with the app

  1. Open it

    chat.deepseek.com, or the official app

  2. Sign up

    email, or phone in some regions

  3. Pick a mode

    DeepThink for hard problems

  4. Ask

    a real task, in plain words

  5. Read the thinking

    and check the answer

Fig. 4 — Your first few minutes with the DeepSeek app.
  1. Open DeepSeek at chat.deepseek.com, or install the app published by DeepSeek on iPhone or Android. Watch out for copycat apps with similar names and logos.
  2. Create an account and read the privacy notice — we come back to this in section 13.
  3. Choose how it answers. DeepThink turns on reasoning for maths, logic, code and planning; leave it off for quick everyday questions. Search lets it look things up on the web.
  4. Read the thinking. DeepSeek shows its reasoning in a collapsible box above the answer. It’s a great way to learn — and to spot where it went wrong.
chat.deepseek.com — illustration

A train leaves Guwahati at 6:40 and takes 7 h 55 min. With a 35-minute delay, when does it reach Siliguri?

🧠 Thought for 6 seconds ▾

6:40 + 7 h = 13:40. Plus 55 min = 14:35. Delay 35 min → 15:10. Let me double-check: 7 h 55 + 35 = 8 h 30. 6:40 + 8:30 = 15:10. ✓

The train will reach Siliguri at 3:10 pm (15:10) — the 7 h 55 min journey plus the 35-minute delay makes 8 h 30 min in total.

Message DeepSeek

🧠 DeepThink🌐 Search📎 ⬆️
Fig. 5 — Illustration of the DeepSeek app: the reasoning shown above the answer, and the DeepThink and Search switches.
06Intermediate

Prompting a reasoning model

Reasoning models like DeepSeek’s like slightly different handling from ordinary chatbots. DeepSeek’s own R1 research paper found some habits that help:

  • Describe the problem, not the method. With DeepThink on, you don’t need “think step by step” — it already does. Spend your words on the goal, the facts and the constraints.
  • Ask directly, without long example lists. The R1 paper reported that few-shot examples tended to make it perform worse; a clear zero-shot request worked best.
  • Say the output format you want: “final answer in a box”, “a table”, “JSON only”.
  • Turn thinking off for simple jobs — rewriting, translating, short summaries. It is faster and the result is often just as good.

Everything else from the six prompt ingredients still applies: give context, say who it’s for, and iterate with follow-ups.

07Intermediate

How it’s built so cheaply

DeepSeek’s models are Transformers, like every modern chatbot (our first article explains the basics). What makes them efficient is a stack of engineering ideas, published in DeepSeek’s technical reports. Two matter most.

1. DeepSeekMoE: many small experts

In a mixture-of-experts model, each layer holds many expert sub-networks and a router picks a few for each token, so most of the model sits idle on any given step. DeepSeek’s version splits experts into many small, fine-grained ones for sharper specialisation, and adds shared experts that every token uses, so common knowledge isn’t duplicated across experts.

DeepSeekMoE. Every token always passes through a shared expert that holds common knowledge, and a router also sends it to a few of many small, fine-grained routed experts. Only the chosen experts compute, so a 671-billion-parameter model uses about 37 billion parameters per token.token“integral”shared expertalways usedroutermany small routed experts — only a few chosen per tokencombine→ next layerV3: 671B total37B active per token
Fig. 6 — DeepSeekMoE, simplified: a shared expert every token uses, plus a few of many small routed experts.

2. Multi-head latent attention (MLA)

As a model reads a long conversation, it keeps a memory of every earlier token — the KV cache — and on long contexts that cache, not the model, fills up GPU memory. MLA squeezes each token’s keys and values into one small compressed vector and expands them only when needed.

Memory needed to remember a long conversation (the KV cache), relative size — illustrative:

Standard attention

stores full keys and values for every head, every token

Grouped-query attention

heads share keys and values in groups

DeepSeek MLA

stores one small compressed “latent” per token

DeepSeek’s V2 paper reported a 93% smaller KV cache than its earlier dense 67B model. A smaller cache means longer contexts and more users per GPU — and cheaper prices.

Fig. 7 — Why MLA matters: a far smaller KV cache means longer contexts and more users per GPU. Bar lengths are illustrative.
08Advanced

How R1 learned to reason

R1’s most influential idea was an experiment. DeepSeek took its base model and trained it with reinforcement learning only: no human-written examples of good reasoning at all. The model answered maths and coding problems and was rewarded simply when the final answer was correct and in the right format. The result, R1-Zero, taught itself to reason at length — spending more tokens on harder problems, checking its work, even pausing to say, in effect, “wait, let me re-examine that”, which the paper called an “aha moment”.

R1-Zero’s reasoning was powerful but messy: it mixed languages and was hard to read. The released R1 used a four-stage recipe to keep the reasoning and fix the readability:

The experiment

  1. DeepSeek-V3-Base

    a pre-trained model

  2. Pure RL (GRPO)

    rewarded only for correct, well-formatted answers

  3. R1-Zero

    learns to reason — but mixes languages, hard to read

The recipe that shipped

  1. 1 · Cold start

    fine-tune on a few thousand clean reasoning examples

  2. 2 · Reasoning RL

    GRPO on maths, code, logic + a language-consistency reward

  3. 3 · Rejection sampling

    keep the best answers as ~800k new training examples

  4. 4 · RL for everything

    helpfulness and safety across all kinds of prompts

  5. DeepSeek-R1

    then distilled into small Qwen and Llama models

Fig. 8 — From R1-Zero’s experiment to the R1 recipe, following the R1 paper. The final step — distillation — produced the small R1 models people run on laptops.

Distillation then transferred R1’s skill to much smaller models: DeepSeek generated hundreds of thousands of R1 reasoning examples and fine-tuned small open models from the Qwen and Llama families on them. That is why you can run a “DeepSeek-R1” with 8 billion parameters on a laptop — it’s a smaller model that learned from the big one.

09Advanced

GRPO, the maths

The reinforcement-learning algorithm behind R1 is GRPO — Group Relative Policy Optimization, introduced in DeepSeek’s earlier DeepSeekMath paper. Classic methods such as PPO train a second “critic” network, as big as the model itself, to estimate how good each answer is. GRPO drops the critic. For each question it samples a group of answers, scores them all, and judges each answer against the group:

Aᵢ = ( rᵢ − mean(r₁…rG) ) / std(r₁…rG)

each answer’s advantage = how much better than the group average, in units of the group’s spread

Answers with a positive advantage are made more likely, those with a negative advantage less likely, with a clipping term and a penalty for drifting too far from a reference model to keep training stable. Try it:

Playground

Train a reasoner with GRPO

The model answers “What is 17 × 24?” six times. Each answer is scored, then compared with the group. Click an answer to flip whether it’s correct.

group mean = 0.63 · std = 0.51 · advantage Aᵢ = (rᵢ − mean) / std

Green bars: these answers get reinforced, so similar reasoning becomes more likely. Red bars: pushed down. No separate “critic” model is needed — the group is the baseline.

10Intermediate

Open weights, explained

A model’s weights are the billions of numbers learned in training — the model itself. DeepSeek publishes its weights on Hugging Face, including the V4 family. R1 was released under the permissive MIT licence, meaning anyone could use, modify and sell products built on it.

Closed model

e.g. most US frontier models

  • • Use it through an app or API
  • • No download, no inspection

Open weights

e.g. DeepSeek, Llama, Qwen, Mistral

  • • Download and run it anywhere
  • • Fine-tune it on your data
  • • Inspect and study its behaviour
  • • Training data and code mostly not included
Fig. 9 — Closed versus open-weight models. “Open weights” is not quite “open source”: the weights and a paper are published, but the training data and full training code usually are not.

Open weights mean other companies can host DeepSeek models on their own servers in other countries — and you can run the smaller ones yourself. The trade-off: the full-size models are enormous, so running them needs data-centre hardware.

11Advanced

Run it on your own computer

The easiest way to run DeepSeek locally is Ollama, a free app for Mac, Windows and Linux. Install it from ollama.com, open a terminal and run one command. The first run downloads the model; after that, it works completely offline.

Terminal
ollama run deepseek-r1          # the default size
ollama run deepseek-r1:8b       # pick a size: 1.5b, 7b, 8b, 14b, 32b, 70b…
Terminal — ollama — illustration
$ ollama run deepseek-r1:8b
pulling manifest… downloading 5.2 GB ████████████ 100%
>>> Is 2027 a prime number?
<think>
Check divisors up to √2027 ≈ 45. Not even. Digit sum 11 → not divisible by 3.
Not 5. 7×289=2023, 7×290=2030 → no. 11: 2−0+2−7=−3 → no. 13×156=2028 → no…
…43×47=2021, 43×48=2064 → no. No divisor found.
</think>

Yes — 2027 is prime. It isn’t divisible by any prime up to 43,
and √2027 is about 45, so no larger factor is possible.
(runs offline — nothing leaves this computer)
Fig. 10 — Illustration: a distilled R1 running offline in Ollama, showing its reasoning between <think> tags before the answer.

Which size can your machine handle? Rough guidance for the usual compressed (4-bit) versions:

SizeRoughly what you needWhat to expect
1.5BAlmost any laptop, even without a GPUQuick, simple answers; a fun first try
7B / 8B8 GB graphics card, or a Mac with 16 GB memoryGood everyday reasoning — the sweet spot
14B12–16 GB graphics card, or a Mac with 24 GB+Noticeably smarter, still quick
32B24 GB graphics card, or a Mac with 32–64 GBStrong reasoning at home
70BTwo big GPUs, or a Mac with 64–128 GBEnthusiast territory
Full modelsA rack of data-centre GPUsWhat the DeepSeek app runs
Fig. 11 — Approximate hardware for local DeepSeek-R1 models. Bigger models are smarter but slower; start small and step up.
12Advanced

The DeepSeek API

DeepSeek’s API uses the same request format as OpenAI’s (and it also accepts Anthropic’s format), so existing code and tools work by changing two settings. Create an account at platform.deepseek.com, add a small balance, create a key and set it as DEEPSEEK_API_KEY. The current models are deepseek-flash (DeepSeek-V4.1-Flash, recommended, and it understands images) and deepseek-v4-pro, both with a 1-million-token context window.

first_call.py — Python
import os
from openai import OpenAI   # DeepSeek's API speaks the OpenAI format

client = OpenAI(
    api_key=os.environ["DEEPSEEK_API_KEY"],
    base_url="https://api.deepseek.com",
)

response = client.chat.completions.create(
    model="deepseek-flash",
    messages=[
        {"role": "system", "content": "You are a patient physics tutor for Class 11 students."},
        {"role": "user", "content": "Why does a ball thrown straight up take as long to come down as to go up?"},
    ],
    reasoning_effort="high",
    extra_body={"thinking": {"type": "enabled"}},
)

message = response.choices[0].message
print("THINKING:\n", message.reasoning_content)   # the model's working
print("ANSWER:\n", message.content)               # the final reply
Fig. 12 — A first call with thinking on, following DeepSeek’s documentation. The reasoning comes back in its own field, separate from the answer.

Because it is the OpenAI format, the same code can talk to DeepSeek’s servers, to a DeepSeek model on your own laptop, or to another host — only two lines change:

Where it runsbase_urlmodel
DeepSeek APIhttps://api.deepseek.comdeepseek-flash
Ollama on your laptophttp://localhost:11434/v1deepseek-r1:8b
Another providerthe provider’s endpointtheir DeepSeek model name
Fig. 13 — One client library, three places to run DeepSeek.
local.py — Python
from openai import OpenAI

# Same SDK, pointed at Ollama running on your own machine
client = OpenAI(base_url="http://localhost:11434/v1", api_key="ollama")

response = client.chat.completions.create(
    model="deepseek-r1:8b",
    messages=[{"role": "user", "content": "Summarise this contract clause in plain Hindi: ..."}],
)
print(response.choices[0].message.content)   # nothing left your computer

Cost and features

API prices are per million tokens and very low: at the time of writing, deepseek-flash costs about $0.15–$0.30 per million input tokens and $0.60–$1.20 per million output tokens, with off-peak hours half price. Repeated prompt prefixes are cached automatically and billed at a small fraction of the normal rate. The API also supports JSON output, tool calling and a thinking reasoning_effort setting.

13Beginner

Privacy and trust

This is the section to read carefully. DeepSeek’s privacy policy says the data it collects from its app and API is stored on servers in the People’s Republic of China, where companies can be required to cooperate with authorities. In early 2025, Italy’s data-protection regulator blocked the app, and several governments — including Australia, Taiwan and South Korea — restricted it on official devices; India’s finance ministry advised staff not to use AI tools such as DeepSeek on office computers.

The hosted app also follows Chinese content rules: on topics that are politically sensitive in China, it may decline to answer or give a one-sided account. The open weights carry some of that tuning too, though independent hosts can and do adjust it.

Choosing how to use DeepSeek. If your work involves personal, confidential or regulated data, run open weights on your own computer or use a provider whose data terms you trust. If your organisation restricts DeepSeek, follow the policy. Otherwise, for everyday non-sensitive questions, the app or API are fine.What will you share?Personal, client orregulated data💻 Run it locallyor a trusted hostWork, where youremployer restricts it📋 Follow the policyuse approved toolsEveryday, nothingyou’d mind others seeing💬 App or APIare fine
Fig. 14 — A simple way to decide how to use DeepSeek. The same thinking applies to any AI service: match where your data goes to how sensitive it is.
  • Never share passwords, bank or card numbers, Aadhaar or passport numbers, or anyone else’s personal details.
  • For confidential work, use a local model or a host whose data terms your organisation has approved.
  • Check facts as with any AI — reasoning models can still reason their way to a wrong answer confidently.
14Beginner

Your 30-day path

From your first chat to running models and reading the research.

  1. Week 1 · Chat

    • Try the app with DeepThink on and off
    • Read its thinking on a maths puzzle
    • Turn on Search for a current question
  2. Week 2 · Local

    • Install Ollama
    • Run deepseek-r1:8b offline
    • Compare its answers with the app
  3. Week 3 · API

    • Top up a small API balance
    • Make a call with thinking on
    • Ask for JSON output
  4. Week 4 · Deeper

    • Read the R1 paper’s introduction
    • Play with the GRPO simulator above
    • Point a coding agent at the API
Fig. 15 — Four weeks with DeepSeek. The local week is the one most people skip — and the one that teaches the most.

Quick quiz

Tap a question to check your answer.

Q1What does the famous $5.6 million figure actually cover?

DeepSeek’s estimate of GPU rental cost for the final training run of V3 — not earlier research and experiments, staff, data or the hardware itself.

Q2What was special about R1-Zero?

It learned to reason through reinforcement learning alone, rewarded only for correct, well-formatted answers, with no human-written reasoning examples.

Q3In GRPO, why does a group where every answer scores the same teach nothing?

Each answer’s advantage is its reward minus the group mean. If all rewards are equal, every advantage is zero, so no answer is pushed up or down.

Q4You want to summarise a confidential contract with DeepSeek. What’s the safest option?

Run a DeepSeek model locally (for example with Ollama) so the text never leaves your computer, or use a host your organisation has approved.

That is DeepSeek: a capable, cheap and open family of models, a genuinely important piece of AI history, and a tool that asks you to think about where your data goes. Use it with your eyes open — and try running it yourself at least once. 🐋

DeepSeek is a product of Hangzhou DeepSeek Artificial Intelligence; Ollama and LM Studio are independent projects. This article is independent and not affiliated with or endorsed by any of them. Model names, prices, API code and release dates follow DeepSeek’s API documentation and changelog; Ollama sizes follow the Ollama library; architecture and training details follow DeepSeek’s V2, V3, DeepSeekMath and R1 papers — all as of 24 September 2026. Figure values are simplified where noted; screens are illustrations. Spotted something out of date? Tell us.