ollama/docs/development.md

34 lines
467 B
Markdown
Raw Normal View History

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