Skip to main content

Microsoft releases Phi-2, a small language model AI that outperforms Llama 2, Mistral 7B

A pale human hand holds up a tiny robot.
Credit: VentureBeat made with Midjourney

VB Transform 2024 returns this July! Over 400 enterprise leaders will gather in San Francisco from July 9-11 to dive into the advancement of GenAI strategies and engaging in thought-provoking discussions within the community. Find out how you can attend here.


The rapid pace of generative AI news and announcements isn’t slowing down, even as we reach the final stretches of 2023 and the traditional winter holiday quiet period.

Just take a look at Microsoft Research, the blue sky division of the software giant, which today announced the release of its Phi-2 small language model (SML), a text-to-text AI program that is “small enough to run on a laptop or mobile device,” according to a post on X.

At the same time, Phi-2 with its 2.7 billion parameters (connections between artificial neurons) boasts performance that is comparable to other, much larger models including Meta’s Llama 2-7B with its 7 billion parameters and even Mistral-7B, another 7 billion parameter model.

Chart comparing Microsoft Research Phi-2 model to other leading open source and closed source models. Credit: Microsoft Research

Microsoft researchers also noted in their blog post on the Phi-2 release that it outperforms Google’s brand new Gemini Nano 2 model despite it having half a billion more parameters, and delivers less “toxicity” and bias in its responses than Llama 2.


VB Transform 2024 Registration is Open

Join enterprise leaders in San Francisco from July 9 to 11 for our flagship AI event. Connect with peers, explore the opportunities and challenges of Generative AI, and learn how to integrate AI applications into your industry. Register Now


Microsoft also couldn’t resist taking a little dig at Google’s now much-criticized, staged demo video for Gemini in which it showed off how its forthcoming largest and most powerful new AI model, Gemini Ultra, was able to solve fairly complex physics problems and even correct students’ mistakes on them. As it turned out, even though it is likely a fraction of the size of Gemini Ultra, Phi-2 also was able to correctly answer the question and correct the student using the same prompts.

Promotional screenshot showing Phi-2’s answer to a physics question prompt. Credit: Microsoft Research

However, despite these encouraging findings, there is a big limitation with Phi-2, at least for the time being: it is licensed only for “research purposes only,” not commercial usage, under a custom Microsoft Research License, which further states Phi-2 may only be used for “non-commercial, non-revenue generating, research purposes.” So, businesses looking to build products atop it are out of luck.