From 095a05a8e1a8db7ae4195df4f42dd8aa38791fc5 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 28 Jan 2025 11:13:57 -0800 Subject: [PATCH] feat: Add Ollama setup instructions for DeepSeek V3 in documentation --- aider/website/_posts/2025-01-28-deepseek-down.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/aider/website/_posts/2025-01-28-deepseek-down.md b/aider/website/_posts/2025-01-28-deepseek-down.md index 8f1999dac..1d3d6919b 100644 --- a/aider/website/_posts/2025-01-28-deepseek-down.md +++ b/aider/website/_posts/2025-01-28-deepseek-down.md @@ -101,6 +101,20 @@ Create a `.aider.model.settings.yml` file in your home directory or git project You can run [DeepSeek V3 via Ollama](https://ollama.com/library/deepseek-v3). +```bash +# Pull the model +ollama pull deepseek-v3 + +# Start your ollama server +ollama serve + +# In another terminal window... +export OLLAMA_API_BASE=http://127.0.0.1:11434 # Mac/Linux +setx OLLAMA_API_BASE http://127.0.0.1:11434 # Windows, restart shell after setx + +aider --model ollama/deepseek-v3 +``` + It's important to provide model settings, especially the `num_ctx` parameter. Ollama uses a 2k context window by default, which is very small for working with aider.