Zack Saadioui
8/26/2024
1
2
bash
brew install ollama1
2
bash
curl -fsSL https://ollama.com/install.sh | sh1
2
bash
docker pull ollama/ollama1
2
bash
ollama run llama3.11
2
bash
ollama run gemma21
2
bash
ollama run mistral1
Modelfile1
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 mario1curl http://localhost:11434/api/generate -d '{"model":"llama3.1", "prompt":"Why is the sky blue?"}'
1curl http://localhost:11434/api/chat -d '{ "model": "llama3.1", "messages": [{ "role": "user", "content": "why is the sky blue?" }] }'
1
localhost1
host.docker.internalCopyright Š Arsturn 2025