# validate_model

> **Function** in `langchain_ollama`

📖 [View in docs](https://reference.langchain.com/python/langchain-ollama/_utils/validate_model)

Validate that a model exists in the local Ollama instance.

## Signature

```python
validate_model(
    client: Client,
    model_name: str,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `client` | `Client` | Yes | The Ollama client. |
| `model_name` | `str` | Yes | The name of the model to validate. |

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/02991cb4cf2063d51a07268edafb05fe53de1826/libs/partners/ollama/langchain_ollama/_utils.py#L12)