Zack Saadioui
8/26/2024
1
2
bash
brew install ollama
1
2
bash
curl -fsSL https://ollama.com/install.sh | sh
1
2
bash
docker pull ollama/ollama
1
2
bash
ollama run llama3.1
1
2
bash
ollama run gemma2
1
2
bash
ollama run mistral
1
Modelfile
1
2
3
4
5
llama3.1
# set temperature 1
PARAMETER temperature 1
# system message
SYSTEM """ Mario Super Mario Bros. Answer Mario, assistant, only. """
1
2
3
bash
ollama create mario -f ./Modelfile
ollama run mario
1
curl http://localhost:11434/api/generate -d '{"model":"llama3.1", "prompt":"Why is the sky blue?"}'
1
curl http://localhost:11434/api/chat -d '{ "model": "llama3.1", "messages": [{ "role": "user", "content": "why is the sky blue?" }] }'
1
localhost
1
host.docker.internal
Copyright Š Arsturn 2025