Ollama

A tool for running open language models locally on a personal computer with a single command, with a REST API and client libraries.

ActiveBeginnerv0.6.3MITGenerative AI

Official documentationTry the examples

Basic information

NameOllama
Full nameOllama
CategoryGenerative AI
DeveloperOllama (the company)
Release year2023
Official websiteollama.com
GitHub repositoryollama/ollama
Official documentationdocs.ollama.com
Package on PyPIollama
LicenseMIT (Licence file)
Project statusActive Had a release in the last 12 months
Latest version29 September 2026 (version 0.6.3)
Programming languageGo, C++
Operating systemsNot specified
Required Python version>=3.8
Difficulty levelBeginner

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

Running models locallyServing and running language modelsLarge language models

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 supportSupported
GPU supportSupportedNVIDIA, AMD and Apple Silicon according to the documentation.
CUDA compatibilitySupported
Distributed training or computingNot supported
Automatic differentiation (Autodiff)Not applicable
Model deploymentSupported
Pre-trained modelsSupportedA library of ready models to download.
Supported data typesQuantized GGUF models
Integration with other librariesllama.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

Shell
pip install ollama

This 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.

Python — example.py
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.

Requirements

Shell
pip install ollama

How to run

Save the code in a file example.py then run it:

Shell
python example.py

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.

Example page

All Ollama examples in the Code Explorer

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

VersionRelease dateChecked on
0.6.329 September 202621 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.

Report information that needs updating