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

[Question] #2619

Open
spiritfog opened this issue Jul 3, 2024 · 0 comments
Open

[Question] #2619

spiritfog opened this issue Jul 3, 2024 · 0 comments
Labels
question Question about the usage

Comments

@spiritfog
Copy link

❓ General Questions

I saw a implement about input image in llava at https://github.com/mlc-ai/mlc-llm/pull/2208,but when i start a web serve, only text is support.
when i post under json, i can recive right result
{
"model": "HF://mlc-ai/Llama-3-8B-Instruct-q4f16_1-MLC",
"messages": [
{"role": "user", "content": "Hello! Our project is MLC LLM. What is the name of our project?"}
]
}
but when i post this json, its response "json_invalid"
{
"model": "HF://mlc-ai/Llama-3-8B-Instruct-q4f16_1-MLC",
"messages": [
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": f"{base64_encode_image('https://llava-vl.github.io/static/images/view.jpg')}",
},
{"type": "text", "text": "What does the image represent?"},
],
}
]
}

@spiritfog spiritfog added the question Question about the usage label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about the usage
Projects
None yet
Development

No branches or pull requests

1 participant