Member-only story

How to install Chatgpt locally on your computer so you can run without the need for internet

Jerryltan
2 min readJan 31, 2023

--

ChatGPT is a state-of-the-art conversational AI model developed by OpenAI. By installing ChatGPT locally on your computer, you can run and interact with the model without the need for an internet connection. In this article, we will guide you through the steps to install ChatGPT on your local machine.

Prerequisites:

  1. A computer with a GPU or CPU
  2. An installation of Python 3
  3. A working knowledge of the command line or terminal

Step 1: Install Required Libraries To install ChatGPT, you will need to install the following libraries:

  • PyTorch: A machine learning framework that provides a variety of deep learning algorithms.
  • Transformers: A library that provides pre-trained models and helpers to use them.

You can install these libraries by running the following command in your terminal:

pip install torch torchvision transformers

Step 2: Clone the ChatGPT Repository To access the ChatGPT code, you need to clone the OpenAI repository from GitHub. To do this, you can use the following command in your terminal:

git clone https://github.com/openai/transformer

Step 3: Download Pre-Trained Model ChatGPT is a large model and therefore it is not included in the repository you cloned. To download…

--

--

Responses (1)