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

feat: add API interface for model baseline result #162

Merged
merged 2 commits into from
Dec 5, 2023
Merged

Conversation

junewgl
Copy link
Collaborator

@junewgl junewgl commented Dec 4, 2023

安装依赖

pip install dbgpt_hub
python -m pip install -U prettytable

接口测试:

1.显示所有模型
from dbgpt_hub.baseline import show_all

show_all()
2.显示单个模型
from dbgpt_hub.baseline import show_model

show_args = {
    "dataset" : "spider",
    "model" : "llama2-7b-hf",
    "method" : "lora",
    "prompt" : "alpaca"
}

show_model(show_args)

@qidanrui
Copy link
Collaborator

qidanrui commented Dec 4, 2023

Hi @junewgl, could you please run the following commands:

poetry add prettytable
poetry run black dbgpt_hub

and commit again? Thanks!

@junewgl
Copy link
Collaborator Author

junewgl commented Dec 5, 2023

Thank you for your advice! @qidanrui I've retried code with black, you can check again!

@qidanrui
Copy link
Collaborator

qidanrui commented Dec 5, 2023

Great! Thank you very much @junewgl !

@qidanrui qidanrui merged commit f91a02b into main Dec 5, 2023
6 checks passed
Copy link
Member

@wangzaistone wangzaistone left a comment

Choose a reason for hiding this comment

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

Great!

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.

3 participants