Giter VIP home page Giter VIP logo

Comments (5)

kemingy avatar kemingy commented on June 10, 2024

Possible solution:

  • add a Router() on the Python side
  • append the related workers to the Router
  • register the Router with the related endpoint (by default will use /inference)

Problems:

  • if a worker belongs to multiple routers, how to reuse it?

from mosec.

cutecutecat avatar cutecutecat commented on June 10, 2024

\assign

from mosec.

lkevinzc avatar lkevinzc commented on June 10, 2024

if a worker belongs to multiple routers, how to reuse it?

Perhaps we need to register the route info at rust side, so at different stages of different routes, the same worker can be used for overlapping tasks?

from mosec.

kemingy avatar kemingy commented on June 10, 2024

if a worker belongs to multiple routers, how to reuse it?

Perhaps we need to register the route info at rust side, so at different stages of different routes, the same worker can be used for overlapping tasks?

That's necessary for the controller to know the route info.

@cutecutecat This might be difficult to be done in one shot. You can do it step by step. Maybe the 1st target is to support the customized HTTP endpoint instead of the default /inference with the routing concept. Multi-route can be the next one.

from mosec.

cutecutecat avatar cutecutecat commented on June 10, 2024

if a worker belongs to multiple routers, how to reuse it?

Perhaps we need to register the route info at rust side, so at different stages of different routes, the same worker can be used for overlapping tasks?

That's necessary for the controller to know the route info.

@cutecutecat This might be difficult to be done in one shot. You can do it step by step. Maybe the 1st target is to support the customized HTTP endpoint instead of the default /inference with the routing concept. Multi-route can be the next one.

It might be ok to deploy a simple multi-route Server, but Worker reuse is a bit hard, and need to design at next step.

I think some Graph algorithms is required to calculating shard Workers.

from mosec.

Related Issues (20)

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.