ollama/python
2023-07-06 16:34:44 -04:00
..
ollama move prompt templates out of python bindings 2023-07-06 16:34:44 -04:00
poetry.lock wip go engine 2023-07-06 16:34:44 -04:00
pyproject.toml wip go engine 2023-07-06 16:34:44 -04:00
README.md wip go engine 2023-07-06 16:34:44 -04:00
requirements.txt wip go engine 2023-07-06 16:34:44 -04:00

Ollama Python bindings

pip install ollama

Developing

Ollama is built using Python 3 and uses Poetry to manage dependencies and build packages.

pip install poetry

Install ollama and its dependencies:

poetry install --extras server --with dev

Run ollama server:

poetry run ollama server

Update dependencies:

poetry update --extras server --with dev
poetry lock
poetry export >requirements.txt

Build binary package:

poetry build