Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add support for the OpenAI-style interface #28

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kartikzheng
Copy link

verify:
python -m lcb_runner.runner.main --model "qwen/Qwen2-72B-Instruct-GPTQ-Int4" --model_type http_api --api_url http://XXX:8000/v1 --api_key sk-123456 --scenario codegeneration --evaluate

@kartikzheng kartikzheng changed the title Added support for the OpenAI-style interface Add support for the OpenAI-style interface Jun 14, 2024
@Naman-ntc
Copy link
Contributor

Thanks for the contribution, can you integrate HttpRunner inside the build_runner method? Additionally, can you support multiprocess and other arguments as done by openai-runner?
Happy to accept it then!

@kartikzheng
Copy link
Author

I have made corresponding modifications, please correct.

def run_single_prompt(self, prompt):
return self.get_response(prompt)

def run(self, prompts):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can simply fill in the _run_single method which gives you better multiprocessing and caching support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants