Code Monkey home page Code Monkey logo

Comments (7)

michaelhhogue avatar michaelhhogue commented on May 13, 2024 2

@klxu03 Curious how much this would affect the token count and cost per API call.

from self-operating-computer.

klxu03 avatar klxu03 commented on May 13, 2024

I don't think that much.

Seems like it is input + n * output

If n (the number of completions returned) or best_of (the number of completions generated for consideration) are set to > 1, each request will create multiple outputs. Here, you can consider the number of generated tokens as [ max_tokens * max (n, best_of) ]

https://platform.openai.com/docs/guides/production-best-practices/number-of-completion-tokens

I think most of the API cost will be in embedding the input (tokens, and the image especially)

from self-operating-computer.

michaelhhogue avatar michaelhhogue commented on May 13, 2024

@klxu03 This could be an interesting approach.

@Sameeraali835 Feel free to join the Discord to discuss any issues you're having. You can also open an issue here on the repository if it could be affecting other users as well.

from self-operating-computer.

joshbickett avatar joshbickett commented on May 13, 2024

@klxu03 still believes this approach shows promise. Would love to see a PR for it!

from self-operating-computer.

klxu03 avatar klxu03 commented on May 13, 2024

@klxu03 still believes this approach shows promise. Would love to see a PR for it!

ahh yes! was looking into it, looks like you can also just set temperature to like 0 so there's no variability (in the grid choice at least), gpt basically always takes the highest probabilistic token as well

from self-operating-computer.

joshbickett avatar joshbickett commented on May 13, 2024

I was having the hardest time with repetitive mouse clicks originally, so I played around with temperature to try to fix it. I should try reducing it and see if repetition is still a problem

from self-operating-computer.

joshbickett avatar joshbickett commented on May 13, 2024

Closing since it has been some time and we never pursued further

from self-operating-computer.

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.