> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-service-account.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Ollama Demo Qwen

> Build an NVDA stock report with Qwen3 on Ollama using YFinanceTools.

```python demo_qwen.py theme={null}
"""
Ollama Demo Qwen
================

Cookbook example for `ollama/chat/demo_qwen.py`.
"""

from agno.agent import Agent
from agno.models.ollama import Ollama
from agno.tools.yfinance import YFinanceTools

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------

agent = Agent(
    model=Ollama(id="qwen3:8b"),
    tools=[
        YFinanceTools(),
    ],
    instructions="Use tables to display data.",
)

agent.print_response("Write a report on NVDA", stream=True, markdown=True)

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------

if __name__ == "__main__":
    pass
```

## Run the Example

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Install dependencies">
    ```bash theme={null}
    uv pip install -U agno ollama yfinance
    ```
  </Step>

  <Step title="Prepare Ollama">
    Install and start Ollama, then pull the model used by this example:

    ```bash theme={null}
    ollama pull qwen3:8b
    ```
  </Step>

  <Step title="Run the example">
    Save the code above as `demo_qwen.py`, then run:

    ```bash theme={null}
    python demo_qwen.py
    ```
  </Step>
</Steps>

Full source: [cookbook/90\_models/ollama/chat/demo\_qwen.py](https://github.com/agno-agi/agno/blob/main/cookbook/90_models/ollama/chat/demo_qwen.py)
