https://github.com/divakarkumarp/deepseek-r1-models-on-ollama
Run DeepSeek-R1 on Your Laptop with Ollama
https://github.com/divakarkumarp/deepseek-r1-models-on-ollama
deepseek-r1 ollama python
Last synced: about 2 months ago
JSON representation
Run DeepSeek-R1 on Your Laptop with Ollama
- Host: GitHub
- URL: https://github.com/divakarkumarp/deepseek-r1-models-on-ollama
- Owner: divakarkumarp
- License: mit
- Created: 2025-01-23T17:13:59.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-30T15:33:03.000Z (4 months ago)
- Last Synced: 2025-01-30T16:33:09.935Z (4 months ago)
- Topics: deepseek-r1, ollama, python
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# DeepSeek-R1-Models-on-Ollama
### Run DeepSeek-R1 🦈 on Your Laptop with Ollama 🦙🦙This guide will walk you through how to run the latest DeepSeek R1 models locally on your computer using Ollama. DeepSeek R1 is a large language model designed for reasoning and multi-step problem-solving tasks. It leverages Reinforcement Learning (RL) to enhance its logical thinking capabilities.
DeepSeek AI also offers smaller, distilled versions of the model, making it easier to run on personal computers while retaining much of the reasoning power of the larger models.



## Prerequisites
Before getting started, ensure you have the following set up:
1. **Ollama**: Make sure Ollama is installed and ready to use. You can check the installed version of Ollama by running:
```
ollama -v
```
## DeepSeek Models on Ollama
DeepSeek models are available on the Ollama library in various sizes and formats. Here's a breakdown:* **Model Sizes:** 1.5B, 7B, 8B, 14B, 32B, 70B, and 671B parameters.
* **Quantized Versions:** Some models are available in quantized versions (e.g., q4_K_M, q8_0), which use less memory and run faster but may have a slight drop in quality.
* **Distilled Versions:** Smaller models trained to mimic the larger ones, balancing performance and resource usage (e.g., qwen-distill, llama-distill).
* **Tags:** Each model has a latest tag and specific tags indicating size, quantization, and distillation method.
## Pulling a Model
To download a DeepSeek model, use the following commands:Latest 7B Model:
```
ollama pull deepseek-r1:7b
```14B Qwen-distilled Model with q4_K_M Quantization:
```
ollama pull deepseek-r1:14b-qwen-distill-q4_K_M
```
70B Llama-distilled Model with fp16 Precision:
```
ollama pull deepseek-r1:70b-llama-distill-fp16
```
## Running a Model
To run a downloaded model, use the following command:Run the Latest 7B Model:
```
ollama run deepseek-r1:7b
```
## Clone the Repository
```
git clone https://github.com/divakarkumarp/DeepSeek-R1-Models-on-Ollama.git
```
## Setting Up the Environment
Create a Virtual Environment:
```
py -m venv .venv
```
Activate the Virtual Environment:
```
.venv\Scripts\activate
```Happy coding! 🚀
This `README.md` provides a comprehensive guide for users to set up and run DeepSeek R1 models locally using Ollama. It includes instructions for pulling and running models, setting up the environment, and contributing to the project.