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

add llava-v1.6-34b template #1408

Merged
merged 3 commits into from
Apr 10, 2024
Merged

add llava-v1.6-34b template #1408

merged 3 commits into from
Apr 10, 2024

Conversation

irexyc
Copy link
Collaborator

@irexyc irexyc commented Apr 8, 2024

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 _


def __init__(self,
system='<|im_start|>system\n',
meta_instruction='Answer the questions.',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -1031,6 +1031,43 @@ def match(cls, model_path: str) -> Optional[str]:
return 'dbrx'


@MODELS.register_module(name=['llava-v1_6-34b'])
Copy link
Collaborator

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?

Copy link
Collaborator

@AllentDan AllentDan left a comment

Choose a reason for hiding this comment

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

LGTM

@lvhan028 lvhan028 merged commit 4b2c946 into InternLM:main Apr 10, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants