Giter Club home page Giter Club logo

Comments (5)

br3no avatar br3no commented on June 23, 2024

@DarkLight1337 you were quicker by one hour, but you still have failing tests, so I win 😜

from vllm.

DarkLight1337 avatar DarkLight1337 commented on June 23, 2024

It's not a competition xD We can combine our solutions in your PR if need be.

from vllm.

br3no avatar br3no commented on June 23, 2024

I know! I was being (not so) funny.

from vllm.

DarkLight1337 avatar DarkLight1337 commented on June 23, 2024

I have updated my PR with more test cases. From my understanding, the behaviour of disabling logprobs and specifying zero top logprobs should be distinct. In particular:

  • Disabling logprobs should return no logprobs at all:
    • Completions API: Input logprobs=None should result in output top_logprobs==None
    • Chat Completions API: Input logprobs=False should result in output len(top_logprobs)==0
  • Specifying zero top logprobs should return the logprob for the output token only for Completions API (if it exists):
    • Completions API: Input logprobs=0 should result in output len(top_logprobs)<=1
    • Chat Completions API: Input logprobs=True,top_logprobs=0 should result in output len(top_logprobs)<=k len(top_logprobs)==0
  • Specifying k top logprobs should return the top k items, plus the logprob for the output token only for Completions API (if it exists):
    • Completions API: Input logprobs=k should result in output len(top_logprobs)<=k+1
    • Chat Completions API: Input logprobs=True,top_logprobs=k should result in output len(top_logprobs)<=k+1 len(top_logprobs)==k

Edit: Thanks @br3no for the correction!

from vllm.

DarkLight1337 avatar DarkLight1337 commented on June 23, 2024

My PR #5026 now passes all tests as well.

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.