Coder Social home page Coder Social logo

ai-worker's Introduction

ai-worker

Warning

This is a prototype repository undergoing rapid changes. It's not intended for production use yet.

This repository hosts the AI worker and runner for processing inference requests on the Livepeer AI subnet.

Overview

The AI worker repository includes:

  • Runner: The AI runner, a containerized Python application, processes inference requests on Livepeer AI's Pipelines and models, providing a REST API for model interaction.

  • Worker: The AI worker allows the ai-video branch of go-livepeer to interact with the AI runner. It includes golang API bindings, a worker for routing inference requests, and a Docker manager for AI runner containers.

Runner

The AI runner's code is in the runner directory. For more details, see the AI runner README.

Worker

The AI worker's code is in the worker directory. It includes:

  • Golang API Bindings: Generated from the AI runner's OpenAPI spec using make codegen.
  • Worker: Listens for inference requests from the Livepeer AI subnet and routes them to the AI runner.
  • Docker Manager: Manages AI runner containers.

Build

The AI worker and runner are designed to work with the ai-video branch of go-livepeer. You can run both independently for testing. To build the AI worker locally and run examples, follow these steps:

  1. Follow the README instructions in the runner directory to download model checkpoints and build the runner image.
  2. Generate Go bindings for the runner OpenAPI spec with make codegen.
  3. Run any examples in the cmd/examples directory, e.g., go run cmd/examples/text-to-image/main.go <RUNS> <PROMPT>.

Development documentation

For more on developing and debugging the AI runner, see the development documentation.

ai-worker's People

Contributors

yondonfu avatar rickstaa avatar lukiod avatar ad-astra-video avatar eliteprox avatar mikezupper avatar strykar 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.