ollama/docs/development.md

34 lines
467 B
Markdown
Raw Normal View History

2023-06-27 13:46:46 -04:00
# Development
2023-06-28 09:51:04 -07:00
ollama is built using Python 3 and uses [Poetry](https://python-poetry.org/) to manage dependencies and build packages.
2023-06-27 13:46:46 -04:00
```
2023-06-28 09:51:04 -07:00
pip install poetry
2023-06-27 13:46:46 -04:00
```
2023-06-28 09:51:04 -07:00
Install ollama and its dependencies:
2023-06-27 13:46:46 -04:00
```
2023-06-28 09:51:04 -07:00
poetry install --extras server --with dev
2023-06-27 13:46:46 -04:00
```
2023-06-28 09:51:04 -07:00
Run ollama server:
2023-06-27 13:46:46 -04:00
```
2023-06-28 09:51:04 -07:00
poetry run ollama server
2023-06-27 13:46:46 -04:00
```
2023-06-28 09:51:04 -07:00
Update dependencies:
2023-06-27 13:46:46 -04:00
2023-06-28 09:51:04 -07:00
```
poetry update --extras server --with dev
poetry lock
poetry export >requirements.txt
2023-06-27 13:46:46 -04:00
```
2023-06-28 09:51:04 -07:00
Build binary package:
2023-06-27 14:50:23 -04:00
```
2023-06-28 09:51:04 -07:00
poetry build
2023-06-27 14:50:23 -04:00
```