feature: add guanaco adapter

This commit is contained in:
csunny 2023-05-29 17:59:50 +08:00
parent d114d134df
commit cfd72331ac
2 changed files with 14 additions and 0 deletions

View File

@ -83,6 +83,10 @@ class ChatGLMAdapater(BaseLLMAdaper):
return model, tokenizer
class GuanacoAdapter(BaseLLMAdaper):
"""TODO Support guanaco"""
pass
class CodeGenAdapter(BaseLLMAdaper):
pass

View File

@ -84,6 +84,16 @@ class CodeGenChatAdapter(BaseChatAdpter):
pass
class GuanacoAdapter(BaseChatAdpter):
"""Model chat adapter for Guanaco """
def match(self, model_path: str):
return "guanaco" in model_path
def get_generate_stream_func(self):
# TODO
pass
register_llm_model_chat_adapter(VicunaChatAdapter)
register_llm_model_chat_adapter(ChatGLMChatAdapter)