AutoGPT: Installation tutorial that you know how to do

What is AutoGPT

Auto-GPT is an experimental open source application that demonstrates the capabilities of the GPT-4 language model. Powered by GPT-4, the program links LLM's "minds" together to autonomously achieve any goal you set. As one of the first examples of GPT-4 operating fully autonomously, Auto-GPT pushes the boundaries of what is possible with AI.

AutoGPT is the most popular GPT project on github, with currently 124k stars.

The difference between AutoGPT and ChatGPT

AutoGPT is designed to automatically generate text and can be used to generate articles, abstracts, translations, etc. Its training data comes from texts in multiple fields and can be adapted to different tasks. ChatGPT, on the other hand, was developed for chat scenarios and aims to generate natural and smooth conversations. Its training data comes from a large amount of conversation data, and it can generate responses similar to human conversations.

AutoGPT effect display

This article will teach you the simplest way to install and experience AutoGPT.

Installation materials

  • google account
  • ladder

installation steps

Step 1. Confirm whether the ladder is in global mode

Ladders are different and can be set up according to the actual situation.

Step 2. Log in to your Google account, click on the menu bar and select Drive

Step 3. Install Colab

  1. If there is no Colab option in More and you have clicked to associate more applications

  1. Select Colaboratory from the application list

  1. Click to install

Step 4. Run Colaboratory

Step 5. Click Connect to Remote Desktop

The script name can be renamed. Here I renamed it to AutoGPT.

After the connection is successful, you can see the RAM and disk configuration of the remote device. Just use it to install AutoGPT.

Some people may ask: Why not use your own computer? The following two factors are mainly considered:

  1. Many users are not professional programmers. The git, python and docer required during the AutoGPT installation process are relatively difficult for ordinary non-scientific users. The remote computer has already installed these tools by default, which greatly reduces the installation threshold.

  2. Different operating systems have different installation methods. This method provides a unified operation process and is suitable for all users.

Step 6. Modify the notebook configuration to GPU

Click Modify in the menu bar, select Laptop Settings, modify the hardware accelerator option to GPU and click Save.

Step 7. Mount to Google Drive

Click on the code and execute the following mounting command

from google.colab import drive drive.mount('/content/drive')

Step 8. Switch to the mounted MyDrive

cd drive/MyDrive

Step 9: Download and install Auto-GPT

!git clone https://github.com/Significant-Gravitas/Auto-GPT.git -b stable

Step 10: Switch to the Auto-GPT folder you just downloaded

cd Auto-GPT

Step 11: Install dependent environments

!pip install -r requirements.txt

There will be a prompt like this after success

Step 12: Change .env.template to env.txt

!mv .env.template env.txt

  1. The reason for changing it to a TXT document is to facilitate editing of the file, because the default .env.template cannot be opened.
  2. Sidebar ② Open the folder and find the modified env.txt file ③ and double-click to open it.
  3. Find OPENAI_API_KEY in the open file, which is ④ in the picture
  4. OPENAI_API_KEY Click here to obtain the detailed steps to find the secret key.

The author's own secret key is as follows, just fill it in and save it.

Step 13: Change env.txt to .env

!mv env.txt .env

Step 14: Run AutoGPT

!python -m autogpt --gpt3only

⚠️ If you are GPT-4, then use the following command (GPT-4 is generally not used) ⚠️

!python -m autogpt

  1. After running, you can see that GPT3.5 is currently available.

  1. Enter the AI ​​name and target according to the prompts.

  1. The results will be output to the specified file after about 10 minutes.

In order to reduce copy command errors during use, AutoGpt.ipynb has been organized in the article. You can directly obtain and use it by replying the keyword "autogpt" in the background of the public account.

❤️This article was originally written by the public account Programming Blackboard . Follow me to get my latest articles~❤️

Guess you like

Origin blog.csdn.net/tingchan/article/details/130539245