Giter Site home page Giter Site logo

hazal's Introduction

hazal🧙‍♀️

AWS Sagemaker relies on docker containers for its pipelines. This means it's possible to create custom containers using e.g. other languages than Python or algorithms not available off-the-shelf in AWS. Even though it's easy to test each container in isolation, it is harder to test the whole pipeline in one go. hazal helps by orchestrating the communication between containers.

The usual disclaimers of beta-quality software apply.

hazal chaining docker containers together

Usage

You need to install janet on your machine first.

hazal expects a configuration file with the following structure, where each struct is a container. Order is important:

[{:type "single"               # type of container: single or multi-model
  :container "sagemaker-pre"}  # name of the container (docker run --name ...)
{:type "multi"
 :container "sagemaker-inf"}]

Such a file could live in the main repository of a project e.g. where models are trained locally. I call mine containers.jdn, but it doesn't really matter. Then, to use hazal and test the pipeline:

  • Launch the docker containers (hazal won't do this for now)
  • Launch hazal with janet main.janet <path to config> (or build the binary with jpm build)
  • POST the payload expected by the first sagemaker container to localhost:9001/pipeline, or wherever hazal is running
  • If you are using a multimodel container in the pipeline, specify which model to use for the prediction with a query parameter localhost:9001/pipeline?model=allseeingeye

TODO

  • Define configuration structure
  • Chain an arbitrary number of containers
  • Differentiate between single and multi-model containers
  • Send request to load model, if necessary
  • Inform if the model does not exist
  • Get host and port from docker ps
  • If a container fails, pass the response and inform which step failed

See also

hazal's People

Contributors

jcpsantiago avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.