Giter Site home page Giter Site logo

[Usage]: How to determine how many concurrent requests can be supported in an acceptable time duration with demo api server? about vllm HOT 3 OPEN

senbinyu avatar senbinyu commented on June 1, 2024
[Usage]: How to determine how many concurrent requests can be supported in an acceptable time duration with demo api server?

from vllm.

Comments (3)

rkooo567 avatar rkooo567 commented on June 1, 2024

How do you send requests? can you share the code here?

Also note that when your batch size is large, enough it will reach to compute bound. And once it hits the compute bound, increasing batch doesn't improve much performance.

Other possibility is you don't have enough kv caches to batch all requests. In this case, although you max num seqs is 256, it may never reach that batch size because you cannot batch requests more than your available kv caches.

from vllm.

senbinyu avatar senbinyu commented on June 1, 2024

@rkooo567 The demo codes are attched. I changed the .py files to .txt since it dosen't support the upload of .py files. I used threadpool to send requests in order to mimic the behavior of concurrent requests. DeepseekCoder is used as the engine model, after awq, loading model weights took 3.7GB. So i guess the compute bound rather than the kv cache might be the reason.
api_server.txt
github_demo.txt
multi_8192.json

from vllm.

rkooo567 avatar rkooo567 commented on June 1, 2024

one thing you can try is to set disable_log_stats=False, and it can also show you the # of running requests. If it is close to max num seqs, I think it is the compute bound case. if it is too low, maybe a code bug (since you don't use much memory for model weights)

from vllm.

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.