Member-only story

How to Install ChatGPT locally?

Rohit Ghumare
3 min readFeb 7, 2023

Hello👋, Hope you’re doing well… I will try to definitely make this simple for you. Let’s go!!

Yes, you can definitely install ChatGPT locally on your machine. ChatGPT is a variant of the GPT-3 (Generative Pre-trained Transformer 3) language model, which was developed by OpenAI. It is designed to generate human-like text in a conversational style and can be used for a variety of natural language processing tasks such as chatbots, language translation, and question answering.

Installing ChatGPT locally is not a pain, you can do it easily just need to install the OpenAI API client and set up an API key.

Pre-requisites:

  • Install Python 3.7 or later, download it from official website

If you want to use ChatGPT locally as a python code:

You can do this by running the following command:

pip install openai

Sign Up on the OpenAI website to get access to setting up an API — Do it here

  • Install the dependencies:

ChatGPT requires several python libraries to be installed, including requests, numpy, and tqdm.

The command for libraries installation:

pip install requests numpy tqdm

You can now use ChatGPT by importing it in your Python code and using the openai.Completion.create() method.

Here is an example of how to generate text using ChatGPT:

If you want to install ChatGPT on a local system as an application:

Windows

# install the latest version 
winget install - id=lencx.ChatGPT -e
# install the specified version
winget install - id=lencx.ChatGPT -e - version 0.10.0

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Rohit Ghumare
Rohit Ghumare

Written by Rohit Ghumare

Software Engineer building world a better place.