Code
cookbook/11_models/ollama/demo_deepseek_r1.py
Usage
Install Ollama
Follow the Ollama installation guide and run:
from agno.agent import Agent, RunOutput # noqa
from agno.models.ollama import Ollama
agent = Agent(model=Ollama(id="deepseek-r1:14b"), markdown=True)
# Print the response in the terminal
agent.print_response(
"Write me python code to solve quadratic equations. Explain your reasoning."
)
Install Ollama
ollama pull deepseek-r1:14b
Was this page helpful?