The DDEV Ollama Add-on allows you to integrate Ollama, a powerful AI model runner, into your DDEV development environment. This add-on makes it easy to deploy and run language models locally, without the need for cloud-based services.
With this integration, developers working with DDEV can leverage AI models like Llama 3, Mistral, and others directly from their local machine. This is particularly useful for web developers who want to use large language models in their projects.
Before installing the add-on, ensure you have:
You can install the DDEV Ollama Add-on with a single command:
ddev get stinis87/ddev-ollama && ddev restart
Access the Ollama service:
ddev ssh -s ollama
Install and run a model:
For example, to run the llama3.2:3b model:
ollama run llama3.2:3b
Ollama is now running on hostname: http://ollama, port: 11434