LoLLMS (Lord of Large Language and Multimodal Systems) is a powerful tool for working with large language models. This guide will walk you through the installation process for the LoLLMS WebUI on Windows, macOS, and Linux, including the installation of Python 3.11.
Before you begin, ensure you have:
- Internet connection
- Administrator/sudo privileges on your system
- Download and install Git from https://git-scm.com/download/win
- Install Homebrew if not already installed:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install Git:
brew install git
- Use your distribution's package manager. For example, on Ubuntu:
sudo apt-get update sudo apt-get install git
- Download the Python 3.11 installer from https://www.python.org/downloads/release/python-3110/
- Run the installer
- Check "Add Python 3.11 to PATH"
- Click "Install Now"
- Install Homebrew if not already installed (see Git installation step)
- Install Python 3.11:
brew install [email protected]
- Add Python 3.11 to your PATH:
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc source ~/.zshrc
- Add the deadsnakes PPA:
sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update
- Install Python 3.11:
sudo apt-get install python3.11 python3.11-venv python3.11-dev
Open a terminal (Command Prompt on Windows) and run:
git clone --depth 1 --recurse-submodules https://github.com/ParisNeo/lollms-webui.git
cd lollms-webui
git submodule update --init --recursive
python3.11 -m venv lollms_env
lollms_env\Scripts\activate
python3.11 -m venv lollms_env
source lollms_env/bin/activate
With the virtual environment activated, run:
pip install --upgrade pip
pip install -r requirements.txt
pip install -e lollms_core
Choose a binding based on your needs. Here are some options:
- Local bindings: ollama, python_llama_cpp, bs_exllamav2
- Remote bindings: groq, open_router, open_ai, mistral_ai, gemini, vllm, xAI, elf, remote_lollms
To install a binding, run:
python zoos/bindings_zoo/<binding_name>/__init__.py
Replace <binding_name>
with your chosen binding.
Create lollms.bat
in the LoLLMS directory:
@echo off
call lollms_env\Scripts\activate
cd lollms-webui
python app.py %*
pause
Create lollms.sh
in the LoLLMS directory:
#!/bin/bash
source lollms_env/bin/activate
cd lollms-webui
python app.py "$@"
Make it executable:
chmod +x lollms.sh
If you have an NVIDIA GPU and want to use it for local AI:
- Download and install CUDA from https://developer.nvidia.com/cuda-downloads
- CUDA is not supported on macOS with recent NVIDIA GPUs.
- Follow the CUDA installation guide for your specific Linux distribution from https://developer.nvidia.com/cuda-downloads
For local AI development, you may want to install Visual Studio Code:
- Download and install from: https://code.visualstudio.com/download
To start the LoLLMS WebUI:
Run the lollms.bat
file.
Run the lollms.sh
script:
./lollms.sh
If you encounter any issues during installation or running the WebUI, please check the following:
- Ensure Python 3.11 is correctly installed:
python3.11 --version
- Verify that your Python environment is activated before running any commands.
- Check that all required packages are installed correctly.
- Make sure you have selected and installed a compatible binding.
- For platform-specific issues, consult the documentation for your operating system.
For further assistance, please refer to the official LoLLMS documentation or seek help in the project's support channels.