Zack Saadioui
8/27/2024
1
2
bash
docker pull ollama/ollama
1
2
bash
docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
1
--gpus=all
1
2
bash
ollama run llama3
1
http://localhost:11434/api/chat
1
2
3
4
5
text
let
Source = Json.Document(Web.Contents("http://localhost:11434/api/chat", [Headers = ["Content-Type"="application/json"], Content = Text.ToBinary("{ \"model\": \"llama3\", \"messages\": [{ \"role\": \"user\", \"content\": \"Hello! Tell me about the benefits of Power BI?\" }] }")]))
in
Source
Copyright © Arsturn 2024