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

Details about Qwen-1_8B Instagger. #10

Open
litsh opened this issue Jul 23, 2024 · 4 comments
Open

Details about Qwen-1_8B Instagger. #10

litsh opened this issue Jul 23, 2024 · 4 comments

Comments

@litsh
Copy link

litsh commented Jul 23, 2024

I see there is a Qwen-1_8B version of Instagger on ModelScope. Could you please share the prompt you used for finetuning this model so that we can obtain better results when using the tagger.

@Lukeming-tsinghua
Copy link
Collaborator

Hi litsh, the tagger is trained with vanilla prompts and a default system prompt "You are a helpful assistant.", so no other template prompts are used for inference. For example, if you would like to tag "How are you?" then just use it as the query. Please kindly note that this is a Qwen model finetuned with the chatml format like other models in the Qwen series. So please make sure you generate prompt with proper chatml template.

@litsh
Copy link
Author

litsh commented Jul 25, 2024

Hi litsh, the tagger is trained with vanilla prompts and a default system prompt "You are a helpful assistant.", so no other template prompts are used for inference. For example, if you would like to tag "How are you?" then just use it as the query. Please kindly note that this is a Qwen model finetuned with the chatml format like other models in the Qwen series. So please make sure you generate prompt with proper chatml template.

Thanks for you reply! If I want to tag an instruction "How are you?", the full prompt feed into the model should belike which one of the below:
<|im_start|>system You are a helpful assistant.<|im_end|> <|im_start|>user How are you?<|im_end|> <|im_start|>assistant
or
<|im_start|>system You are a helpful assistant.<|im_end|> <|im_start|>user Please identify tags of user intentions in the following user query and provide an explanation for each tag. Please respond in the JSON format {"tag": str, "explanation": str}. Query: How are you? <|im_end|> <|im_start|>assistant

@SefaZeng
Copy link

Hi litsh, the tagger is trained with vanilla prompts and a default system prompt "You are a helpful assistant.", so no other template prompts are used for inference. For example, if you would like to tag "How are you?" then just use it as the query. Please kindly note that this is a Qwen model finetuned with the chatml format like other models in the Qwen series. So please make sure you generate prompt with proper chatml template.

Thanks for you reply! If I want to tag an instruction "How are you?", the full prompt feed into the model should belike which one of the below: <|im_start|>system You are a helpful assistant.<|im_end|> <|im_start|>user How are you?<|im_end|> <|im_start|>assistant or <|im_start|>system You are a helpful assistant.<|im_end|> <|im_start|>user Please identify tags of user intentions in the following user query and provide an explanation for each tag. Please respond in the JSON format {"tag": str, "explanation": str}. Query: How are you? <|im_end|> <|im_start|>assistant

Hi, have you figured out this?

@litsh
Copy link
Author

litsh commented Aug 15, 2024

at {"tag": str, "explanation": str}. Query: How are you? <|im_end|> <|im_start|>assistant

Hi, have you figured out this?
@SefaZeng
Use the former one should be fine.

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

3 participants