Phi-2 responses

Christopher Watson 20 Reputation points
2023-12-19T07:58:17.8666667+00:00

Hello,

I appreciate having access to the Phi-2 model through huggingface and Azure. So far I have enjoyed working with the model and was hoping I could use it in a research project. However recently I ran into some interesting responses and I am wondering if that's standard behavior. Please see attached:

User's image

As you can see the model does answer the question however it appends extra unprompted text at the end. My code so far does not include any form of pipelining or message history.

Is this expected behavior? I understand there is a disclaimer about verbosity and I was wondering if this is what it was talking about.

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,949 questions
Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
421 questions
0 comments No comments
{count} votes

Accepted answer
  1. santoshkc 9,140 Reputation points Microsoft Vendor
    2023-12-19T11:46:32.2733333+00:00

    Hi @Christopher Watson,

    Thank you for providing more details about your query. Based on the information you provided, it seems like the Phi-2 model is generating extra text and responses following its first answer to your prompt within a single turn. This behaviour is consistent with the model's disclaimer about verbosity.

    Phi-2 being a base model often produces irrelevant or extra text and responses following its first answer to user prompts within a single turn. This is due to its training dataset being primarily textbooks, which results in textbook-like responses.

    Please look into the Limitations of Phi-2 or Microsoft Phi-2

    Also see this: Phi-2

    I hope you understand! Thank you.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.