lollms-webui/docs/usage/AdvancedInstallInstructions.md
2023-06-24 15:24:45 +03:00

4.6 KiB

Windows 10 and 11

Note

It is mandatory to have python 3.10 (The official one, not the one from Microsoft Store) and git installed.

Prerequisites

Before you continue make sure you have these aditional applications installed:

Lately some bindings use Nvidia GPU (CUDA) for computing and is 3x faster than CPU. In order to run these bindings on CUDA device, you will need to install cuda toolkit.

For CUDA and other packages to be compiled you will also need C++ build tools. The easiest way is to download Visual studio community. Make sure you choose C++ build tools at the installation screen.

After these two are installed make sure to reboot your system before continuing.

Manual Simple install:

  1. Download this repository .zip:

image

  1. Extract contents into a folder.
  2. Install/run application by double clicking on webui.bat file from Windows Explorer as normal user.

Manual Advanced mode:

  1. Install git.
  2. Open Terminal/PowerShell and navigate to a folder you want to clone this repository.
git clone https://github.com/ParisNeo/lollms-webui.git
  1. Install/run application by double clicking on webui.bat file from Windows explorer as normal user and follow the on screen instructions.

Linux

Prerequisites

Note

This was tested on Ubuntu 22.04 or higher.

Before you continue make sure you have these aditional applications installed:

Lately some bindings use Nvidia GPU (CUDA) for computing and is 3x faster than CPU. In order to run these bindings on CUDA device, you will need to install cuda toolkit.

sudo apt install nvidia-cuda-toolkit

For CUDA and other packages to be compiled you will also need C++ build tools. The easiest way is to download Visual studio community. Make sure you choose C++ build tools at the installation screen.

sudo apt install build-essential

After these two are installed make sure to reboot your system before continuing.

Automatic install

  1. Make sure you have installed curl. It is needed for the one-liner to work.

Debian-based:

sudo apt install curl 

Red Hat-based:

sudo dnf install curl 

Arch-based:

sudo pacman -S curl 
  1. Open terminal/console copy and paste this command and press enter:
mkdir -p ~/lollms-webui && curl -L https://raw.githubusercontent.com/nomic-ai/lollms-webui/main/webui.sh -o ~/lollms-webui/webui.sh && chmod +x ~/lollms-webui/webui.sh && cd ~/lollms-webui && ./webui.sh

Note

This command creates new directory /lollms-webui/ in your /home/ direcory, downloads a file webui.sh, makes file executable and executes webui.sh that downloads and installs everything that is needed.

  1. Follow instructions on screen until it launches webui.
  2. To relaunch application:
bash webui.sh

Manual Simple install:

  1. Download this repository .zip:

image

  1. Extract contents into a folder.
  2. Install/run application from terminal/console:
bash webui.sh

Manual Advanced mode:

  1. Open terminal/console and install dependencies:

Debian-based:

sudo apt install curl git python3 python3-venv

Red Hat-based:

sudo dnf install curl git python3

Arch-based:

sudo pacman -S curl git python3
  1. Clone repository:
git clone https://github.com/ParisNeo/lollms-webui.git
cd lollms-webui
  1. Install/run application:
bash ./webui.sh

MacOS

  1. Open terminal/console and install brew:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install dependencies:
brew install git python3
  1. Clone repository:
git clone https://github.com/ParisNeo/lollms-webui.git
cd lollms-webui
  1. Install/run application:
bash ./webui.sh

On Linux/MacOS, if you have issues, refer to the details presented here These scripts will create a Python virtual environment and install the required dependencies. It will also download the models and install them.