mirror of
https://github.com/ollama/ollama-python.git
synced 2026-09-01 01:09:54 +00:00
Merge pull request #45 from adriens/patch-1
doc(README) : add prerequisites
This commit is contained in:
@@ -2,6 +2,24 @@
|
|||||||
|
|
||||||
The Ollama Python library provides the easiest way to integrate Python 3.8+ projects with [Ollama](https://github.com/jmorganca/ollama).
|
The Ollama Python library provides the easiest way to integrate Python 3.8+ projects with [Ollama](https://github.com/jmorganca/ollama).
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
You need to have a local ollama server running to be able to continue. To do this:
|
||||||
|
|
||||||
|
- Download: https://ollama.com/
|
||||||
|
- Run an LLM: https://ollama.com/library
|
||||||
|
- Example: `ollama run llama2`
|
||||||
|
- Example: `ollama run llama2:70b`
|
||||||
|
|
||||||
|
Then:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl https://ollama.ai/install.sh | sh
|
||||||
|
ollama serve
|
||||||
|
```
|
||||||
|
|
||||||
|
Next you can go ahead with `ollama-python`.
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
Reference in New Issue
Block a user