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

prompt for Llava #7

Open
KansaiTraining opened this issue Aug 22, 2024 · 0 comments
Open

prompt for Llava #7

KansaiTraining opened this issue Aug 22, 2024 · 0 comments

Comments

@KansaiTraining
Copy link

In the llava.ipynb file you used

def create_prompt(prompt: str):
    conv = conv_templates[CONV_MODE].copy()
    roles = conv.roles
    prompt = DEFAULT_IMAGE_TOKEN + "\n" + prompt
    conv.append_message(roles[0], prompt)
    conv.append_message(roles[1], None)
    return conv.get_prompt(), conv

prompt, _ = create_prompt("Describe the image")
print(prompt)

To create a prompt with the CONV_MODE being llava_v0

is this official? When querying llava models should we use this prompt format


A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human's questions.###Human: <image>
Describe the image###Assistant:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant