ollama create mario -f ./Modelfile ollama run mario
hi Hello! It's your friend Mario.
ollama pull llama3.2
ollama rm llama3.2
ollama run llava "What's in this image? /Users/jmorgan/Desktop/smile.png" The image features a yellow smiley face, which is likely the central focus of the picture.
ollama show llama3.2
ollama list
ollama ps
ollama stop llama3.2
=====================
Open WebUI - Installation: https://github.com/open-webui/open-webui?tab=readme-ov-file#-also-check-out-open-webui-community
pip install open-webui
=======================
ollama has REST API for running and managing models:
curl http://localhost:11434/api/generate -d '{ "model": "llama3.2", "prompt":"Why is the sky blue?" }'
curl http://localhost:11434/api/generate -d '{ "model": "llama3.2", "prompt":"tell me a fun fact about Portugal", "stream": false }'
curl http://localhost:11434/api/chat -d '{ "model": "llama3.2", "messages": [ { "role": "user", "content": "tell me a fun fact about Mozambique" } ], "stream":false }'
curl http://localhost:11434/api/generate -d '{ "model": "llama3.2", "prompt": "What color is the sky at different times of the day? Respond using JSON", "format": "json", "stream": false }'