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.5.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

oshepherd-0.0.5-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file oshepherd-0.0.5.tar.gz.

File metadata

  • Download URL: oshepherd-0.0.5.tar.gz
  • Upload date:
  • Size: 9.3 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.5.tar.gz
Algorithm Hash digest
SHA256 a631f0924a749f94f1cacdff71b619164bf438caa532ec4443296067efe1827f
MD5 684e097ae3cc8a5795bdb13aaa2d5bf8
BLAKE2b-256 fec150a6e15fc84b5b39daed1823c87188a4b78804952776e5edfdb3308f5227

See more details on using hashes here.

File details

Details for the file oshepherd-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: oshepherd-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.3 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 24bcf32444898088b9823037e8369cd9dcd079dcd3c0860c67038f2a03754062
MD5 e457bb41e9edc9025592a3b8da1f7d1a
BLAKE2b-256 7aeb7b21bf06a9c7e1551e8ff225d0cba660251e92e8d0e1a2ca649d92ddab79

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