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

how to prompt to get short response #86

Open
AllenDun opened this issue Apr 23, 2024 · 2 comments
Open

how to prompt to get short response #86

AllenDun opened this issue Apr 23, 2024 · 2 comments

Comments

@AllenDun
Copy link

Nice work. However, I tried some images and asked the model to output the description with short words or sentence, but it always given a long output. I tried prompts like these:
prompt: answer the question with one word: how many persons in the image? response: There are two persons in the image.
prompt: in the image, is it wearing a helmet on head? please answer with short words. response:No, the individual in the image is not wearing a helmet on their head. They are holding a yellow hard hat in their hands, which is typically worn for safety in construction or industrial settings.
prompt: is she wearing a helmet on head? answer the question with yes or no. response: No, she is not wearing a helmet on her head. She is holding a hard hat in her hands.
...

@yanwei-li
Copy link
Member

Hi, may I ask which model you are using? It seems the 2B and 7B models may not have great instruction-following ability. I try the same prompt but got the desired response with 13B and 34B models. Please try the 34B demo and 13B demo.

@AllenDun
Copy link
Author

@yanwei-li I tried the demo on the huggingface, it should be 13B, right?

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

2 participants