Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

n_generations Paramter/ n_beams parameter for openai server api #340

Open
ColinS97 opened this issue Jun 7, 2023 · 0 comments · May be fixed by #631
Open

n_generations Paramter/ n_beams parameter for openai server api #340

ColinS97 opened this issue Jun 7, 2023 · 0 comments · May be fixed by #631
Labels
enhancement New feature or request

Comments

@ColinS97
Copy link

ColinS97 commented Jun 7, 2023

Is your feature request related to a problem? Please describe.
I am using this library for benchmarking Question Answering tasks. For that I want to use a feature called self-consistency where multiple completions are generated for the same prompt with a high temperature value.

Describe the solution you'd like
Include the n parameter from OpenAI into this server.
I think that the Huggingface implementation of Llama offers this feature already.

Describe alternatives you've considered
Just do multiple calls to the LLM. But I guess this would take a lot more processing power since each generation will be a new pass through the model.

Additional context
As far as I know the multiple generations can be achieved using multiple beams in the generation. I am not sure if using multiple beams is supported by llama.cpp it would also be a help for me to clear that up first.
If a feature like that is supported by llama.cpp I may be able implement the python part myself and create a PR for that but I would need someone to point me in the right direction first.

@gjmulder gjmulder added the enhancement New feature or request label Jun 7, 2023
@abetlen abetlen linked a pull request Sep 30, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants