How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (2024)

There are several AI players in the market right now, includingChatGPT,Google Bard,Bing AI Chat,and many more. However, all of them require you to have an internet connection to interact with the AI. What if you want to install a similar Large Language Model (LLM) on your computer and use it locally? An AI chatbot that you can use privately and without internet connectivity. Well, with new GUI desktop apps like LM Studio and GPT4All, you can run a ChatGPT-like LLM offline on your computer effortlessly. So on that note, let’s go ahead and learn how to use an LLM locally without an internet connection.

Table of Contents

Run a Local LLM Using LM Studio on PC and Mac

1. First of all, go ahead and download LM Studio for your PC or Mac from here.

How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (5)

2. Next, run the setup file and LM Studio will open up.

How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (6)

3. Next, go to the “search” tab and find the LLM you want to install. You can find the best open-source AI models from our list. You can also explore more models from HuggingFace and AlpacaEval leaderboard.

4. I am downloading the Vicuna model with 13B parameters. Depending on your computer’s resources, you can download even more capable models. You can also download coding-specific models like StarCoder and WizardCoder.

How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (8)

5. Once the LLM model is installed, move to the “Chat” tab in the left menu.

6. Here, click on “Select a model to load” and choose the model you have downloaded.

How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (9)

7. You can now start chatting with the AI model right away using your computer’s resources locally. All your chats are private and you can use LM Studio in offline mode as well.

How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (10)

8. Once you are done, you can click on “Eject Model” which will offload the model from the RAM.

9. You can also move to the “Models” tab and manage all your downloaded models. So this is how you can locally run a ChatGPT-like LLM on your computer.

How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (12)

Run a Local LLM on PC, Mac, and Linux Using GPT4All

GPT4All is another desktop GUI app that lets you locally run a ChatGPT-like LLM on your computer in a private manner. The best part about GPT4All is that it does not even require a dedicated GPU and you can also upload your documents to train the model locally. No API or coding is required. That’s awesome, right? So let’s go ahead and find out how to use GPT4All locally.

1. Go ahead and download GPT4All from here. It supports Windows, macOS, and Ubuntu platforms.

How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (13)

2. Next, run the installer and it will download some additional packages during installation.

3. After that, download one of the models based on your computer’s resources. You must have at least 8GB of RAM to use any of the AI models.

How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (14)

4. Now, you can simply start chatting. Due to low memory, I faced some performance issues and GPT4All stopped working midway. However, if you have a computer with beefy specs, it would work much better.

How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (15)

Editor’s Note: Earlier this guide included the step-by-step process to set up LLaMA and Alpaca on PCs offline, but we included a rather tedious process. This process has been simplified by the tools we have suggested above.

How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (16)

How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (17)

Arjun Sha

Passionate about Windows, ChromeOS, Android, security and privacy issues. Have a penchant to solve everyday computing problems.

How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (18)

How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (19)How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (20)

How to Locally Run a ChatGPT-Like LLM on Your PC and Mac (2024)
Top Articles
Latest Posts
Article information

Author: Nathanial Hackett

Last Updated:

Views: 6017

Rating: 4.1 / 5 (72 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Nathanial Hackett

Birthday: 1997-10-09

Address: Apt. 935 264 Abshire Canyon, South Nerissachester, NM 01800

Phone: +9752624861224

Job: Forward Technology Assistant

Hobby: Listening to music, Shopping, Vacation, Baton twirling, Flower arranging, Blacksmithing, Do it yourself

Introduction: My name is Nathanial Hackett, I am a lovely, curious, smiling, lively, thoughtful, courageous, lively person who loves writing and wants to share my knowledge and understanding with you.