Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add new gpt
  • Loading branch information
infwinston committed Feb 2, 2024
commit c1d8bd21bec72f3b2657a84b92cb804d8f3c99c2
1 change: 1 addition & 0 deletions fastchat/model/model_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"gpt-3.5-turbo-0301",
"gpt-3.5-turbo-0613",
"gpt-3.5-turbo-1106",
"gpt-3.5-turbo-0125",
"gpt-4",
"gpt-4-0314",
"gpt-4-0613",
Expand Down
36 changes: 21 additions & 15 deletions fastchat/model/model_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,6 @@ def get_model_info(name: str) -> ModelInfo:
"Gemini by Google",
)

register_model_info(
["deepseek-llm-67b-chat"],
"DeepSeek LLM",
"https://huggingface.co/deepseek-ai/deepseek-llm-67b-chat",
"An advanced language model by DeepSeek",
)

register_model_info(
["stripedhyena-nous-7b"],
"StripedHyena-Nous",
"https://huggingface.co/togethercomputer/StripedHyena-Nous-7B",
"A chat model developed by Together Research and Nous Research.",
)

register_model_info(
["solar-10.7b-instruct-v1.0"],
"SOLAR-10.7B-Instruct",
Expand All @@ -90,7 +76,13 @@ def get_model_info(name: str) -> ModelInfo:
)

register_model_info(
["gpt-3.5-turbo", "gpt-3.5-turbo-0314", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106"],
[
"gpt-3.5-turbo",
"gpt-3.5-turbo-0125",
"gpt-3.5-turbo-1106",
"gpt-3.5-turbo-0314",
"gpt-3.5-turbo-0613"
],
"GPT-3.5",
"https://platform.openai.com/docs/models/gpt-3-5",
"GPT-3.5-Turbo by OpenAI",
Expand Down Expand Up @@ -124,6 +116,20 @@ def get_model_info(name: str) -> ModelInfo:
"Claude Instant by Anthropic",
)

register_model_info(
["deepseek-llm-67b-chat"],
"DeepSeek LLM",
"https://huggingface.co/deepseek-ai/deepseek-llm-67b-chat",
"An advanced language model by DeepSeek",
)

register_model_info(
["stripedhyena-nous-7b"],
"StripedHyena-Nous",
"https://huggingface.co/togethercomputer/StripedHyena-Nous-7B",
"A chat model developed by Together Research and Nous Research.",
)

register_model_info(
["llama2-70b-steerlm-chat"],
"Llama2-70B-SteerLM-Chat",
Expand Down
11 changes: 10 additions & 1 deletion fastchat/serve/gradio_block_arena_anony.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def share_click(state0, state1, model_selector0, model_selector1, request: gr.Re
"gpt-4-0125-preview": 4,
"gpt-3.5-turbo-0613": 2,
"gpt-3.5-turbo-1106": 2,
"gpt-3.5-turbo-0125": 4,
"claude-2.1": 4,
"claude-2.0": 2,
"claude-1": 2,
Expand Down Expand Up @@ -248,6 +249,13 @@ def share_click(state0, state1, model_selector0, model_selector1, request: gr.Re
},
"gpt-3.5-turbo-0613": {"claude-instant-1", "gpt-4-0613", "claude-2.1"},
"gpt-3.5-turbo-1106": {"gpt-4-0613", "claude-instant-1", "gpt-3.5-turbo-0613"},
"gpt-3.5-turbo-0125": {
"gpt-4-0613",
"gpt-4-turbo",
"gpt-3.5-turbo-0613",
"gpt-3.5-turbo-1106",
"mixtral-8x7b-instruct-v0.1",
},
"solar-10.7b-instruct-v1.0": {
"mixtral-8x7b-instruct-v0.1",
"gpt-3.5-turbo-0613",
Expand Down Expand Up @@ -349,11 +357,12 @@ def share_click(state0, state1, model_selector0, model_selector1, request: gr.Re
}

SAMPLING_BOOST_MODELS = [
"claude-2.1",
# "claude-2.1",
# "gpt-4-0613",
# "gpt-4-0314",
"gpt-4-turbo",
"gpt-4-0125-preview",
"gpt-3.5-turbo-0125",
# "gpt-3.5-turbo-1106",
"mistral-medium",
# "gemini-pro-dev-api",
Expand Down