Ollama
A tool for running open language models locally on a personal computer with a single command, with a REST API and client libraries.
Basic information
| Name | Ollama |
|---|---|
| Full name | Ollama |
| Category | Generative AI |
| Developer | Ollama (the company) |
| Release year | 2023 |
| Official website | ollama.com |
| GitHub repository | ollama/ollama |
| Official documentation | docs.ollama.com |
| Package on PyPI | ollama |
| License | MIT (Licence file) |
| Project status | Active Had a release in the last 12 months |
| Latest version | 29 September 2026 (version 0.6.3) |
| Programming language | Go, C++ |
| Operating systems | Not specified |
| Required Python version | >=3.8 |
| Difficulty level | Beginner |
Data last checked: 21 November 2026 — source: PyPI JSON API (2026-11-21)
Overview
Ollama installs an application on Windows, macOS and Linux that downloads and runs models locally (using llama.cpp under the hood), offers a local REST API, and has the official ollama Python library for working with it in code.
Suited to privacy, offline experiments and building local RAG applications. The package on PyPI is only the client library; the application itself is installed from the official website.
When to choose it? Choose it to run a language model on your machine easily and privately.
Uses
Main uses
- Running language models locally
- Private RAG applications without sending data out
- Quick experiments with open models
Scientific fields
- Personal use and education
- Privacy-sensitive organisations
Suitable project types
- A local assistant over private documents
Research applications
- Comparing open models locally
Technical features
A feature is shown as "Supported" only if it is documented in the library's official documentation; anything we have not verified is shown as "Not specified".
| CPU support | Supported |
|---|---|
| GPU support | SupportedNVIDIA, AMD and Apple Silicon according to the documentation. |
| CUDA compatibility | Supported |
| Distributed training or computing | Not supported |
| Automatic differentiation (Autodiff) | Not applicable |
| Model deployment | Supported |
| Pre-trained models | SupportedA library of ready models to download. |
| Supported data types | Quantized GGUF models |
| Integration with other libraries | llama.cpp, LangChain, LlamaIndex, Haystack |
| Flexibility (editorial estimate) | Medium |
| Performance (editorial estimate) | Good for a single user |
| Community (editorial estimate) | Very large |
| Documentation quality (editorial estimate) | Concise, clear documentation |
Installation and running
pip install ollamaThis command installs only the client library; install the Ollama application itself from the official website, then run for example: ollama run <model name>.
Compatibility: Python >=3.8 — according to the package data on PyPI, checked on 21 November 2026
Installing inside a virtual environment (venv or conda) is recommended. If you need compatibility with a specific CUDA version or operating system, refer to the official documentation, because this information changes with every release.
Code examples
Examples marked "Run and tested" were actually run, with their output, test date and library versions recorded; the others need a GPU or model downloads, so they were not run in the test environment.
BeginnerChatting with a local model through OllamaNot run
Goal: Calling a language model running on your computer from Python.
import ollama
reply = ollama.chat(model="llama3.2", messages=[
{"role": "user", "content": "Explain reinforcement learning in two sentences."}])
print(reply["message"]["content"])
Code explanation
After installing Ollama and running ollama pull for a model, the ollama Python package connects to the local server (port 11434). The model name is an example; choose a model that fits your machine's memory. Not run because no Ollama server was available in the test environment.
This example was not run in the test environment: needs Ollama installed and a model downloaded on the machine. Check it against the library documentation before relying on it.
Pros
- The easiest way to run a model locally
- Runs on all three operating systems
Limitations
- Lower throughput than vLLM for large-scale serving
- Model size is limited by the machine's memory
References and verification
- Package page on PyPI (source of the version, licence and release date) Checked directly
https://pypi.org/project/ollama/
Checked on: 21 November 2026 — version checked: 0.6.3 — reviewed by: the DLArabic team
- Official website A link the package officially declares on PyPI
https://ollama.com
Checked on: 21 November 2026 — reviewed by: the DLArabic team
- Official documentation A link the package officially declares on PyPI
https://docs.ollama.com/
Checked on: 21 November 2026 — reviewed by: the DLArabic team
- Official repository A link the package officially declares on PyPI
https://github.com/ollama/ollama
Checked on: 21 November 2026 — reviewed by: the DLArabic team
- Official licence file Checked directly
https://github.com/ollama/ollama/blob/main/LICENSE
Checked on: 21 November 2026 — reviewed by: the DLArabic team
History of verified versions
| Version | Release date | Checked on |
|---|---|---|
| 0.6.3 | 29 September 2026 | 21 November 2026 |
Page information last reviewed: 21 November 2026. The description was written originally for the encyclopedia and is not copied from the official websites.
