ollama
- ollama/ollama
- MIT, Golang
- 参考
- ollama/ollama-js
- MIT, TS
- npm:ollama
- 客户端
- ollama/ollama-js
- https://ollama.ai/library
- 默认地址 http://localhost:11434
- OLLAMA_HOST
- ~/.ollama
- models
- blobs/
- manifests/registry.ollama.ai/library/gemma/latest
- models
# macOS 命令行
brew install ollama
ollama serve # 启动服务端
ollama run mistral # 运行模型
ollama list
# https://hub.docker.com/r/ollama/ollama
docker run --rm -it \
-v $PWD/data:/root/.ollama \
-p 11434:11434 \
ollama/ollama \
--name ollama
API
curl -X POST http://localhost:11434/api/generate -d '{
"model": "llama2",
"prompt":"Why is the sky blue?"
}'