Giter Club home page Giter Club logo

Comments (8)

Frederisk avatar Frederisk commented on March 29, 2024 1

Did you set an excessive max_token value? If the value is too large it may take a huge amount of time to calculate, for instant response I recommend setting it to 32 or less.

from fauxpilot.

moyix avatar moyix commented on March 29, 2024 1

I would also add that you should use stop tokens to stop generation when you've generated enough. This is one of the biggest "tricks" Copilot uses; all of their requests are 512 tokens but due to stop tokens they almost never actually generate that many.

from fauxpilot.

moyix avatar moyix commented on March 29, 2024 1

If you go to Advanced -> Edit in settings.json in the Copilot VSCode settings, you should be able to see what extra settings are available. I think the one you want is length:
image

from fauxpilot.

aisensiy avatar aisensiy commented on March 29, 2024

Thanks for the replies. These are really helpful. And if I am using the copilot plugin where should I put these configs?

from fauxpilot.

aisensiy avatar aisensiy commented on March 29, 2024

image

Here is a request generated from vs code, it seems that the stop is already added. But the speed is still very slow.

from fauxpilot.

LukyBruce avatar LukyBruce commented on March 29, 2024

My 3090 GPU is going to be crazy when I set max_tokens to 100, and it would take minutes to get suggestions appear. Just curious about the capability of your GPU.

from fauxpilot.

aisensiy avatar aisensiy commented on March 29, 2024

My 3090 GPU is going to be crazy when I set max_tokens to 100, and it would take minutes to get suggestions appear. Just curious about the capability of your GPU.

You can see my configs in the issue and with the default config of max_tokens = 500 and the codegen-350M-multi model, it may take more than 3 - 4 seconds to get results...But the response time is kind of random... sometimes the result returns fast.

BTW, how can I change the max_tokens in VS Code copilot plugin?

from fauxpilot.

dragaoazuljr avatar dragaoazuljr commented on March 29, 2024

Can I set this max_token on fauxpilot side? I'm using the copilot plugin on vim and didn't find a way to configure this.

from fauxpilot.

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.