Install Ollama
Ollama is a lightweight environment for running LLMs locally. Download and install it from the official website.
Windows users: After installation, log out and log back in to apply system variables correctly.
Run DeepSeek 14B
Ollama will automatically download the model upon first execution.
-
Run DeepSeek 7B (default model):
ollama run deepseek-r1 -
Run DeepSeek 14B (requires 16GB VRAM):
ollama run deepseek-r1:14b
Configure Environment Variables (Optional)
To enable external access, set the following environment variables:
-
Windows:
setx OLLAMA_HOST "0.0.0.0:11434" setx OLLAMA_MODELS "%USERPROFILE%\.ollama\models" -
Linux/macOS:
export OLLAMA_HOST="0.0.0.0:11434" export OLLAMA_MODELS="$HOME/.ollama/models"
Start Ollama Server
To run Ollama as a background service and allow remote access:
ollama serveOllama will now listen on port 11434, making it accessible locally and remotely.
Test Your Deployment
After launching, run:
ollama run deepseek-r1:14bAlternatively, use Ollama API:
curl http://localhost:11434/api/generate -d '{
"model": "deepseek-r1:14b",
"prompt": "Hello, introduce the features of DeepSeek 14B",
"stream": false
}'Exit Ollama
To stop Ollama, you can simply close the terminal or type:
/byeSummary
Ollama provides a lightweight local environment for running LLMs
DeepSeek 14B requires 16GB+ VRAM
Set OLLAMA_HOST to enable remote access
Run ollama serve to start the API server