Skip to content
Home » How to Install and Use the Text Generation Web UI: A Step-by-Step Tutorial

How to Install and Use the Text Generation Web UI: A Step-by-Step Tutorial

In this tutorial, we will guide you through the process of installing and using the Text Generation Web UI. This web interface provides similar functionalities to Stable Diffusions Automatic 1111, allowing you to generate text and interact with it like a chatbot. The installation files and detailed instructions can be found on their GitHub page, which we will link for you. Let’s get started!

Downloading and Extracting the Installation Files

To begin, navigate to the GitHub page of the Text Generation Web UI and download the necessary files. Once the download is complete, extract the files to a dedicated folder on your local machine. In our case, we will extract them to a subfolder created specifically for this purpose in the C drive.

Step 2: Running the Start Scripts

After extracting the files, locate the start scripts within the folder. For Windows users, the script will be named “start_windows.bat”. Double-click on this script to initiate the installation process. Even on subsequent runs, you can use the same start script, as it will handle the installation and library downloads automatically.

Step 3: GPU Configuration and Library Installation

During the installation, you will be prompted with a few questions. Firstly, you will need to specify the type of GPU you are using. In our case, we are using an Nvidia GPU. Next, you may be asked if you want to install the latest cuDNN (CUDA Deep Neural Network library). You can choose the default settings unless you have specific requirements. The installation process will handle the necessary downloads and configurations seamlessly.

Step 4: Downloading Models

The Text Generation Web UI primarily relies on models from Hugging Face. Within the installation, you will find a section to download models. Most models are available in two file structures: GGUf models files and GPTQ models files. We will focus on the GPTQ models files in this tutorial. Follow the provided instructions to download the desired models and save them in the appropriate subfolders within the models folder.

Step 5: Launching the Web UI

Once the installation and model download are complete, the Text Generation Web UI will automatically start within your web browser. You will notice various features in the interface, including an orange “Generate” button, dark-themed text prompts, and chatbot-like response presentation.

Step 6: Exploring the Web UI Features

Take a moment to familiarize yourself with the UI features. The options menu allows you to save chats, copy the last reply, and continue generating text from the AI. You can also save text history in the notebook provided. The default tab offers a template for text prompts, but you can customize prompts to suit your specific needs.

Step 7: Customizing AI Assistance

The Web UI allows you to create and customize AI characters. You can assign profile pictures to the AI characters and save them. By creating specific behaviors and characters for AI assistance, you can tailor their responses and interactions to your preferences.

Step 8: Working with AI Models

Returning to the models section of the Web UI, you can select the downloaded models from the dropdown menu. Once successfully downloaded, the new models will appear in the list. You can configure various settings such as tokens, max context length, and more.

Step 9: Engaging with the Chatbot

Now, you can start interacting with the chatbot. Test its capabilities by asking basic questions or requesting assistance. You will notice that the AI characters you created earlier will be present in the chat. Their profiles, including profile pictures, will be displayed alongside their responses.

Step 10: Content Creation and Assistance

The AI can assist you in various tasks, such as generating JavaScript code or helping with content creation. You can ask it to draft topics or outlines for articles, and based on its suggestions, you can expand and develop the content further.

Conclusion

In this tutorial, we covered the installation and usage of the Text Generation Web UI. You learned how to download and extract the necessary files, run the start scripts, configure the GPU and libraries, download models, launch the web interface, explore its features, customize AI assistance, and engage with the chatbot for various tasks. We hope this tutorial has been helpful and that you enjoy experimenting with the capabilities of the Text Generation Web UI.

 

Key Takeaway

The Text Generation Web UI provides a user-friendly interface for generating text and interacting with AI models. By following the step-by-step installation guide, you can easily set up the web UI on your local machine. The interface offers customizable options for text prompts, AI character profiles, and model configurations. Whether you need assistance with content creation, JavaScript coding, or generating article outlines, the AI chatbot can provide valuable insights and suggestions. The Text Generation Web UI opens up exciting possibilities for exploring and utilizing AI tools in your workflow.

 

Resources:

Text-generation-webui Github : https://github.com/oobabooga/text-generation-webui

 

Vicuna Uncensored GPTQ – trained by TheBloke

7B Parameter Version : https://huggingface.co/TheBloke/Wizard-Vicuna-7B-Uncensored-GPTQ

13B Parameter Version : https://huggingface.co/TheBloke/Wizard-Vicuna-13B-Uncensored-GPTQ

30B Parameter Version : https://huggingface.co/TheBloke/Wizard-Vicuna-30B-Uncensored-GPTQ