-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve local model support and doc #96
- Loading branch information
1 parent
42e5799
commit 38cc573
Showing
6 changed files
with
66 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
from agentverse.registry import Registry | ||
|
||
llm_registry = Registry(name="LLMRegistry") | ||
LOCAL_LLMS = ["llama-2-7b-chat-hf"] | ||
LOCAL_LLMS = [ | ||
"llama-2-7b-chat-hf", | ||
"llama-2-13b-chat-hf", | ||
"llama-2-70b-chat-hf", | ||
"vicuna-7b-v1.5", | ||
"vicuna-13b-v1.5", | ||
] | ||
LOCAL_LLMS_MAPPING = { | ||
"llama-2-7b-chat-hf": "meta-llama/Llama-2-7b-chat-hf", | ||
"llama-2-13b-chat-hf": "meta-llama/Llama-2-13b-chat-hf", | ||
"llama-2-70b-chat-hf": "meta-llama/Llama-2-70b-chat-hf", | ||
"vicuna-7b-v1.5": "lmsys/vicuna-7b-v1.5", | ||
"vicuna-13b-v1.5": "lmsys/vicuna-13b-v1.5", | ||
} | ||
|
||
from .base import BaseLLM, BaseChatModel, BaseCompletionModel, LLMResult | ||
from .openai import OpenAIChat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters