The Oshepherd guiding the Ollama(s) inference orchestration.
Project description
oshepherd
The Oshepherd guiding the Ollama(s) inference orchestration.
A centralized Flask API service, using Celery (RabbitMQ + Redis) to orchestrate multiple Ollama workers.
Install
pip install oshepherd
Usage
-
Setup RabbitMQ and Redis:
Create instances for free for both: * cloudamqp.com * redislabs.com
-
Setup Flask API Server:
# define configuration env file # use credentials for redis and rabbitmq cp .api.env.template .api.env # start api oshepherd start-api --env-file .api.env
-
Setup Celery/Ollama Worker(s):
# install ollama https://ollama.com/download ollama run mistral # define configuration env file # use credentials for redis and rabbitmq cp .worker.env.template .worker.env # start worker oshepherd start-worker --env-file .worker.env
Words of advice 🚨
This package is in alpha, its architecture and api might change in the near future. Currently this is getting tested in a closed environment by real users, but haven't been audited, nor tested thorugly. Use it at your own risk.
Disclaimer on Support
As this is an alpha version, support and responses might be limited. We'll do our best to address questions and issues as quickly as possible.
Contribution Guidelines
We welcome contributions! If you find a bug or have suggestions for improvements, please open an issue or submit a pull request.
Conda Support
To run and build locally you can use conda:
conda create -n oshepherd python=3.8
conda activate oshepherd
pip install -r requirements.txt
# install oshepherd
pip install -e .
Tests
Follow usage instructions to start api server and celery worker using a local ollama, and then run the tests:
pytest -s tests/
Reporting Issues
Please report any issues you encounter on the GitHub issues page. Before creating a new issue, take a moment to search through the existing issues to avoid duplicates.
Author
Currently, mnemonica.ai is sponsoring the development of this tool.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file oshepherd-0.0.3.tar.gz
.
File metadata
- Download URL: oshepherd-0.0.3.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5df8664fa2dbfa43ab08c557dfcd63e8161e726c59dcdea667461a689555b6f9 |
|
MD5 | 264ef064660c6d20a2a777c19fb611cd |
|
BLAKE2b-256 | 7d7a3144c046487bf828825c0fdde94089fc119c24405bf4902f23cfff5b2eaa |
File details
Details for the file oshepherd-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: oshepherd-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11f384aa0670d43cbca76ac4e2ca394b4228dd653360cc42ac44f49d8cff3f5b |
|
MD5 | 5cb4877e858c7cd25bd4cccb714e7e90 |
|
BLAKE2b-256 | f2229c14bd12544fe50d0c48104be088a5d8a55c636bfc6b6798cd20d3d3d726 |