What it is and how to install and run locally the LLM AI: deepseek-v3.1

DeepSeek-V3.1

DeepSeek-V3.1 is an advanced large language model (LLM) developed by the Chinese AI startup DeepSeek. Released in August 2025, this model represents a significant leap in AI capabilities, integrating innovative features that enhance its performance across various domains.

One of the standout features of DeepSeek-V3.1 is its hybrid reasoning architecture, which seamlessly combines thinking (chain-of-thought reasoning) and non-thinking (direct response) modes. This dual-mode system allows the model to switch between complex problem-solving and rapid responses through simple chat template changes, offering flexibility in handling diverse tasks.

Technically, DeepSeek-V3.1 boasts a total of 671 billion parameters, with 37 billion activated per token, thanks to its Mixture-of-Experts (MoE) architecture. This design ensures efficient resource utilization while maintaining high performance. The model supports an extended context window of 128,000 tokens, enabling it to process extensive documents or conversations without losing context.

In terms of performance, DeepSeek-V3.1 has achieved remarkable results across various benchmarks. It scored 93.4% on the SimpleQA benchmark, 91.8% on MMLU-Redux, and 83.7% on MMLU-Pro, demonstrating its proficiency in factuality tasks with an average performance of 92.6%. Additionally, the model excels in coding tasks, achieving a 71.6% score on the Aider programming benchmark, surpassing competitors like Claude Opus 4 and GPT-4 Turbo.

DeepSeek-V3.1 also introduces enhanced agent capabilities, including improved tool calling and agent tasks through post-training optimization. It supports over 100 languages, with enhanced proficiency in Asian and low-resource languages, making it a versatile tool for global applications.

When compared to other leading LLMs, DeepSeek-V3.1 demonstrates competitive performance across various benchmarks. The following table provides a comparison of DeepSeek-V3.1 with other prominent models:

Benchmark DeepSeek-V3.1 GPT-4o Claude3 Opus Gemini 2.0 Llama 3.1 405B
MMLU 88.5% 88.7% 86.8% 76.4% 88.6%
MATH 90.2% 76.6% 60.1% 89.7% 73.8%
GPQA 59.1% 53.6% 50.4% 62.1% 51.1%
HumanEval 82.6% 90.2% 84.9% N/A 89.0%
Chatbot Arena 95.3% 98.8% 92.8% 100.0% 91.8%

These results highlight DeepSeek-V3.1s strong performance, particularly in mathematical reasoning and coding tasks, positioning it as a formidable competitor in the LLM landscape.

Usage License

DeepSeek V3.1 is released under the MIT License, a permissive open-source license that allows for free use, modification, and distribution of the model. This means developers and organizations can integrate DeepSeek V3.1 into their projects without incurring licensing fees or worrying about API quotas. The permissive MIT license means it can be used in commercial products without legal hurdles.

Advantages and Disadvantages of Running DeepSeek-V3.1 Locally

Advantages

  • Privacy: Running the model locally ensures that sensitive data remains within your infrastructure, reducing the risk of data breaches.
  • Offline Operation: Local deployment allows the model to function without an internet connection, ensuring uninterrupted service even in remote or restricted environments.
  • Portability: Deploying on a laptop enables usage without external power sources, providing flexibility for on-the-go applications.
  • Customization: Local control allows for tailored configurations and optimizations specific to your use case.
  • Reduced Latency: Processing data locally can lead to faster response times by eliminating network delays.

Disadvantages

  • Resource Intensive: DeepSeek V3.1s large model size (approximately 700GB) requires substantial storage and computational resources, making it challenging to run on standard hardware.
  • Technical Expertise Required: Setting up and maintaining the model locally demands a high level of technical knowledge, which may not be feasible for all users.
  • Maintenance Overhead: Regular updates and maintenance are necessary to keep the model functioning optimally, adding to operational complexity.
  • Limited Scalability: Scaling the model for increased workloads can be more challenging compared to cloud-based solutions.

OllamaRun deepseek-v3.1 with Ollama

Run the deepseek-v3.1 model locally with Ollama to work in private, offline and with low latency. Model page: deepseek-v3.1 on Ollama.

Windows Install Ollama on Windows and run deepseek-v3.1

  1. Install Ollama with Winget:
winget install Ollama.Ollama
  1. Open PowerShell or Terminal and run the model:
ollama run deepseek-v3.1

Compatible with Windows 10 and Windows 11. Ideal for professional desktops, content creation, and local workflows without internet.

macOSInstall Ollama on MacOS and run deepseek-v3.1

  1. Install Ollama with Homebrew (Intel or Apple Silicon):
brew install ollama
  1. Run the model:
ollama run deepseek-v3.1

On macOS Monterey, Ventura and Sonoma, deepseek-v3.1 performs very well on Apple Silicon (M1/M2/M3) for writing, development and study totally offline.

LinuxLinux: install Ollama and run deepseek-v3.1

Install the LLM deepseek-v3.1 on Ubuntu, Debian, Fedora, Kali Linux, openSUSE, Linux Mint, Pop!_OS, Arch and Manjaro with a single command:

curl -fsSL [https://ollama.com/install.sh](https://ollama.com/install.sh)  sh
  1. Run the model on your distro (Ubuntu/Debian/Fedora/Kali/openSUSE/Mint/Pop!_OS/Arch/Manjaro):
ollama run deepseek-v3.1

Perfect for Linux servers and laptops: automate workflows with scripts, draft content and test prompts without relying on the internet.

BSDBSD (FreeBSD, OpenBSD, NetBSD): run deepseek-v3.1 with Ollama in a container

The simplest way on BSD is to use a container (Docker/Podman) to isolate the environment:

docker run -d --name ollama -p 11434:11434 -v ollama:/root/.ollama ollama/ollama docker exec -it ollama ollama run deepseek-v3.1

Valid for FreeBSD, OpenBSD and NetBSD in labs and security environments with local AI.

How to remove the model in Ollama

ollama rm deepseek-v3.1

Delete the model files to free up disk space when you no longer need it.

Available models and tags

  • Model name: deepseek-v3.1
  • Tags (Model): deepseek-v3.1:latest deepseek-v3.1:cloud deepseek-v3.1:671b

LM Run deepseek-v3.1 in LM Studio

LM Studio offers a graphical interface to download and run local models. Download the app according to your system from the official website: LM Studio (official download). Then search for deepseek-v3.1, download and click Run.

WindowsInstall LM Studio on Windows and run deepseek-v3.1

  1. Download LM Studio for Windows from lmstudio.ai and install it (compatible with Windows 10 and Windows 11).
  2. In Models, search for deepseek-v3.1 and click Download.
  3. Start the model with Run to chat locally without connection.

LM Studio on Windows simplifies model management and private sessions for productivity tasks, technical blogging, and prompt testing.

macOSInstall LM Studio on MacOS to run deepseek-v3.1

  1. Download LM Studio for macOS from lmstudio.ai (Intel or Apple Silicon).
  2. Open the app, search for deepseek-v3.1, download and click Run.

Smooth experience on Monterey, Ventura and Sonoma, with outstanding performance on Apple Silicon chips for creative and technical work without internet.

LinuxInstall LM Studio on Linux and run deepseek-v3.1

  1. Download LM Studio (AppImage/package) from lmstudio.ai and follow the instructions for your distro.
  2. Open the app, search for deepseek-v3.1, download and click Run.

Works on Ubuntu, Debian, Fedora, Kali Linux, openSUSE, Linux Mint, Pop!_OS, Arch and Manjaro, enabling local and private AI sessions for desktops and workstations.

Install LM Studio on BSD and its variants to run deepseek-v3.1

Run LM Studio via compatibility or a container. Once inside the app, search for deepseek-v3.1, download and click Run to start the local session.

In FreeBSD, OpenBSD and NetBSD, it is a practical approach for labs and audits where local AI is a requirement.

How to delete the model in LM Studio

  1. Go to Models > Installed.
  2. Find deepseek-v3.1 and click Delete to remove the downloaded files.

Hardware Required to Run the LLM deepseek-v3.1

Model Version Required Memory Optimal Memory Compatible GPUs Alternative CPU RAM Setup
deepseek-v3.1:latest 16 GB 32 GB NVIDIA RTX 3090, NVIDIA RTX 4090 Not recommended due to performance constraints
deepseek-v3.1:cloud 32 GB 64 GB NVIDIA A100, NVIDIA H100 Not recommended due to performance constraints
deepseek-v3.1:671b 512 GB 1 TB Multiple NVIDIA A100 GPUs Not feasible due to excessive resource requirements

Understanding Quantization in LLMs

Quantization is a technique used to reduce the memory and computational requirements of large language models (LLMs) by converting their weights and activations from high-precision formats, such as 32-bit floating-point (FP32), to lower-precision formats like 8-bit integers (INT8) or even 4-bit integers (INT4). This process significantly decreases the models size and speeds up inference, making it more efficient for deployment on resource-constrained devices.

How Quantization Works

The quantization process involves scaling the original high-precision weights and activations to fit within the limited range of the lower-bit format. This scaling can be achieved through various methods, including:

– Post-Training Quantization (PTQ): This method applies quantization after the model has been fully trained. It involves mapping the continuous range of weights to discrete levels, which can introduce some loss in accuracy but is efficient and straightforward.

– Quantization-Aware Training (QAT): In this approach, the model is trained with quantization in mind, allowing it to adapt to the lower precision during the training process. This typically results in better accuracy retention compared to PTQ.

Impact of Quantization on deepseek-v3.1

Applying quantization to the deepseek-v3.1 model can lead to significant reductions in memory usage and inference latency. For instance, converting the models weights from FP32 to INT8 can reduce memory consumption by up to 75%, enabling deployment on hardware with limited resources. However, its important to note that while quantization can improve efficiency, it may also introduce a slight decrease in model accuracy. The extent of this trade-off depends on the specific quantization method and the precision level chosen.

Optimal Setup for Running deepseek-v3.1 Locally

To run the deepseek-v3.1 model locally, the following hardware configurations are recommended:

– deepseek-v3.1:latest: A system equipped with an NVIDIA RTX 3090 or RTX 4090 GPU, and at least 32 GB of RAM.

– deepseek-v3.1:cloud: A system with an NVIDIA A100 or H100 GPU, and a minimum of 64 GB of RAM.

– deepseek-v3.1:671b: Due to its substantial resource requirements, running this model locally is not practical. It necessitates multiple high-end GPUs and extensive memory, making cloud-based solutions more suitable.

Minimum Cost-Effective Setup

For users seeking a more affordable setup to run the deepseek-v3.1:latest model, the following configuration is suggested:

– GPU: NVIDIA RTX 3080 with 10 GB VRAM

– RAM: 32 GB

While this setup may not deliver optimal performance, it should suffice for running the model with manageable inference times.

Potential Applications of deepseek-v3.1

The deepseek-v3.1 model can be utilized in various applications, including:

– Natural Language Understanding: Enhancing the comprehension capabilities of AI systems.

– Text Generation: Producing coherent and contextually relevant text for content creation.

– Chatbots and Virtual Assistants: Developing interactive and responsive conversational agents.

– Language Translation: Facilitating accurate and fluent translation between languages.

– Sentiment Analysis: Assessing and interpreting the emotional tone of textual data.

By leveraging quantization techniques, these applications can be deployed more efficiently across a range of hardware platforms, from high-end servers to edge devices.

Like

Be the first to leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *