Benutzer-Werkzeuge

Webseiten-Werkzeuge


ollama

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
ollama [2024/08/03 13:12]
jango
ollama [2025/01/30 16:25] (aktuell)
jango
Zeile 25: Zeile 25:
 </code> </code>
  
 +Start ollama
 +<code>
 +// with debug output
 +ollama serve
 +
 +// in background
 +start /B ollama serve >NUL 2>&1
 +</code>
 +
 +<code>
 +set /p content=<test.txt
 +ollama run llama3 "Summarize this file: %content%"
 +</code>
 +
 +Generate a response
 +<code>
 +curl http://localhost:11434/api/generate -d '{
 +  "model": "llama3",
 +  "prompt":"Why is the sky blue?"
 +}'
 +</code>
 +
 +Chat with a model
 +<code>
 +curl http://localhost:11434/api/chat -d '{
 +  "model": "llama3",
 +  "messages": [
 +    { "role": "user", "content": "why is the sky blue?" }
 +  ]
 +}'
 +</code>
 +
 +Stop ollama
 <code> <code>
 tasklist | findstr ollama tasklist | findstr ollama
Zeile 37: Zeile 70:
  
   * [[https://ollama.com/|Homepage]]   * [[https://ollama.com/|Homepage]]
 +  * [[https://www.gpu-mart.com/blog/how-to-install-and-use-ollama-webui-on-windows|Installing Open Web UI on Windows]]
ollama.1722683528.txt.gz · Zuletzt geändert: 2024/08/03 13:12 von jango