From f45eae61d635418f9b7629f1dcf8033d633d7104 Mon Sep 17 00:00:00 2001 From: leandrom-humanforce Date: Fri, 10 May 2024 12:59:54 +1000 Subject: [PATCH] Create ollama.md --- src/AI/ollama.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/AI/ollama.md diff --git a/src/AI/ollama.md b/src/AI/ollama.md new file mode 100644 index 00000000..1548c358 --- /dev/null +++ b/src/AI/ollama.md @@ -0,0 +1,31 @@ + +https://ollama.com + +Install WSL `wsl --install` (setup admin credentials) + +Run Linux on Windows +`wsl` + +Update Ubuntu (admin credentials needed) +`sudo apt update` +`sudo apt upgrade -y` + +Install Ollama +`curl -fsSL https://ollama.com/install.sh | sh` + +Run Ollama +`ollama serve` + +Check if Ollama is properly installed +http://localhost:11434 + +Pull LLM +`ollama pull llama2` + +Run LLM +`ollama run llama2` + + +Run Open WebUI + +`docker run -d -p 3000:8080 -e OLLAMA_BASE_URL=http://localhost:11434 -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main` \ No newline at end of file