# Ollama

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/llms/ollama/Ollama)

Ollama locally runs large language models.
To use, follow the instructions at https://ollama.ai/.
Example:
    .. code-block:: python
        from langchain_community.llms import Ollama
        ollama = Ollama(model="llama2")

## Signature

```python
Ollama()
```

## Extends

- `BaseLLM`
- `_OllamaCommon`

## Properties

- `model_config`

## ⚠️ Deprecated

Deprecated since version 0.3.1. Use langchain_ollama.OllamaLLM instead. Will be removed in version 1.0.0.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/7c10a5fa327f6aaaf7c932822a9e5d144891406e/libs/community/langchain_community/llms/ollama.py#L393)