InsTag icon indicating copy to clipboard operation
InsTag copied to clipboard

Details about Qwen-1_8B Instagger.

Open litsh opened this issue 1 year ago • 4 comments

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.

litsh avatar Jul 23 '24 03:07 litsh

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.

Lukeming-tsinghua avatar Jul 25 '24 05:07 Lukeming-tsinghua

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

litsh avatar Jul 25 '24 07:07 litsh

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?

SefaZeng avatar Aug 14 '24 12:08 SefaZeng

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.

litsh avatar Aug 15 '24 02:08 litsh