Artificial IntelligenceSoftware DevelopmentTech Tips and Tutorials

How to Install Microsoft Phi-3 Using LM Studio

In our earlier post, we discussed extensively how to install Microsoft Phi-3 AI locally on Windows. The Phi-3 family of language models from Microsoft is now available. They are unquestionably a class apart for their size and are already outperforming other newly introduced models like the Mixtral and Llama 3 in several areas. Phi-3 is small enough to operate locally on your Windows computer. Here’s how to use LM Studio to accomplish this.

Nothing compares to LM Studio if you prefer a specialized interface for Microsoft’s Phi-3 on Windows rather than utilizing your terminal program to communicate with it. Here’s how to install Phi-3 in LM Studio and initiate a local conversation with the model.

1. Install LM Studio

LM Studio

  • Once downloaded, run the installer and let the LM Studio install.

LM studio software

Recommended: How to Force Adjust the Brightness on Windows

2. Download the Phi-3 gguf file

Phi-3 will not be available for download or search within LM Studio. The Phi-3 guff file must be downloaded separately. Here’s how:

  • Phi-3-Mini Guff file can be downloaded using this download link.
  • Use the link given above and click on Files.

Phi-3-Mini Guff

  • Two iterations of the Phi-3 model are available here. Pick one. We are choosing the smaller version for our objectives.

phi-3 mini

  • Click on download and save it on your computer.

download

Recommended: How to Install Microsoft Phi-3 AI Locally on Windows

3. Load the Phi-3 model

The downloaded Phi-3 model will then be loaded. To accomplish this, take the following actions:

  • Open LM Studio and click on My Models on the left.

phi-3

  • The “Local models folder” is worth mentioning. The downloaded Phi-3 guff file has to be moved here. To open the directory, click Show in File Explorer.

my models

  • Make a new folder called Microsoft here.
  • Make another folder called Phi-3 inside the Microsoft folder.
  • In the Phi-3 folder, paste the Phi-3 guff file that you got.
  • The Phi-3 guff file will also show up in the LM Studio after you’ve moved it.

Recommended: How to Move Large Files to PenDrives?

llama

For LM Studio to detect Phi-3 in its directory, you might need to restart it.

  • Click the AI Chat option on the left to load the Phi-3 model.

llama

  • Click on a Model to load and select the Phi-3 model.

phi-3 window

Recommended: 15 Top Open-Source SSH Clients for Windows PC

windows locally

  • Hold off until it loads. After that, you can begin speaking with Phi-3. To avoid putting too much strain on your CPU, we advise offloading the model to the GPU. To accomplish this, select Advanced Configuration > Hardware Settings from the “System Prompt” menu on the right.

hardware settings

  • Under ‘GPU Acceleration’, click on Max and click on Reload model to apply the configuration.

Recommended: Euro Truck Simulator 2 – ProMods 2.71 Map Collection Released

  • You can initiate a conversation with Phi-3 as soon as the model loads.

That is all there is to it. Kindly type in a prompt. Microsoft’s Phi-3 model can now be accessed locally on your Windows computer, regardless of whether you have an internet connection.

Lexy

Maverick is a tech enthusiast with a bachelor's degree in Industrial Chemistry, combines his passion for technology and gaming to create engaging content. When not working, he enjoys playing video games and listening to music for inspiration.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker