Skip to main content

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

  1. Setup RabbitMQ and Redis:

    Create instances for free for both: * cloudamqp.com * redislabs.com

  2. 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
    
  3. 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

MIT

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

oshepherd-0.0.3.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

oshepherd-0.0.3-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

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

Hashes for oshepherd-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5df8664fa2dbfa43ab08c557dfcd63e8161e726c59dcdea667461a689555b6f9
MD5 264ef064660c6d20a2a777c19fb611cd
BLAKE2b-256 7d7a3144c046487bf828825c0fdde94089fc119c24405bf4902f23cfff5b2eaa

See more details on using hashes here.

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

Hashes for oshepherd-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 11f384aa0670d43cbca76ac4e2ca394b4228dd653360cc42ac44f49d8cff3f5b
MD5 5cb4877e858c7cd25bd4cccb714e7e90
BLAKE2b-256 f2229c14bd12544fe50d0c48104be088a5d8a55c636bfc6b6798cd20d3d3d726

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page