-
Notifications
You must be signed in to change notification settings - Fork 243
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
add llava-v1.6-34b template #1408
Conversation
|
||
def __init__(self, | ||
system='<|im_start|>system\n', | ||
meta_instruction='Answer the questions.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not find the instruction from https://huggingface.co/liuhaotian/llava-v1.6-34b/blob/main/tokenizer_config.json#L47
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lmdeploy/model.py
Outdated
@@ -1031,6 +1031,43 @@ def match(cls, model_path: str) -> Optional[str]: | |||
return 'dbrx' | |||
|
|||
|
|||
@MODELS.register_module(name=['llava-v1_6-34b']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite different from lmdeploy list
. Seems models of llava use different chat templates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Motivation
llava-v1.6-34b use chatml format
https://github.com/haotian-liu/LLaVA/blob/main/llava/eval/run_llava.py#L76
Modification
Registry in mmengine treat
.
as scope separator so I replace it with_