Skip to content

ehristoforu/TensorLM-webui

Repository files navigation

TensorLM - webui for LLM models

preview

This is Fooocus from the world of Stable Difusion in the world of Text Generation, the same ease of use and the same convenience.

This is simple and modern Gradio webui for LLM models GGML format (.bin) or GGUF format (.gguf) based on LLaMA.

We can try this app online in very slow demo of 3.0.0 version: Open In Spaces


Fast use

You can use this webui in cloud service Colab: Open In Colab

Features

  • Simple to use
  • Comfy to work
  • Not demanding on resources
  • Beautiful and pleasant interface
  • Support GGML and GGUF format (.bin and .gguf)
  • Support OpenAI API and MistralAI API

Installing

In Windows

>>> Portable one-click packege <<<

Step-by-step installation:

  1. Install Python 3.10.6 and Git
  2. Run git clone https://github.com/ehristoforu/TensorLM-webui.git
  3. Run cd TensorLM-webui
  4. Run update_mode.bat && enter 1 and 2
  5. Run start.bat

Or download exe installer from this repo

In MacOS

Step-by-step installation:

  1. Install Python 3.10.6 and Git
  2. Run git clone https://github.com/ehristoforu/TensorLM-webui.git
  3. Run cd TensorLM-webui
  4. Run python pip install -r requirements.txt
  5. Run python webui.py

In Linux

Step-by-step installation:

  1. Install Python 3.10.6 and Git
  2. Run git clone https://github.com/ehristoforu/TensorLM-webui.git
  3. Run cd TensorLM-webui
  4. Run python pip install -r requirements.txt
  5. Run python webui.py

Presets

In this app there is 23 default presets.
Thanks, @mustvlad for system prompts!

You can create your custom presets, instruction in presets folder (it is .md-file).

Model downloading

With this interface you don't need to scour the Internet looking for a compatible model; in the "Tabs" checkbox and in the "ModelGet" tab you can choose which model to download from our verified repository on HuggingFace.

API

Warning! Need Internet.

OpenAI API

openai-api-preview

You can use OpenAI API in this UI (select "OpenAI" in Mode radio-button).

  • You can select the OpenAI model or input your custom OpenAI model
  • You can select the OpenAI endpoint or input your custom OpenAI endpoint

To enter your OpenAI key go to configure.txt and input to openai_key parameter

MistralAI API

mistralai-api-preview

You can use MistralAI API (from HuggingFace) in this UI (select "MistralAI" in Mode radio-button) for free.

  • You can select the MistralAI model or input your custom MistralAI model

Args

To use args:

  • In Windows: edit start.bat with Notepad and edit line with python webui.py to python webui.py [Your args], for ex. python webui.py --inbrowser
  • In MacOS & Linux: run python webui.py with args - python webui.py {Your args}, for ex. python webui.py --inbrowser

Args list

--inbrowser --share --lowvram --debug --quiet

Forks

While there are no forks 😔, perhaps you will be the first who can significantly improve this application!

Citation

    @software{ehristoforu_TensorLM-webui_2024,
        author = {ehristoforu},
        month = apr,
        title = {{TensorLM-webui}},
        url = {https://github.com/ehristoforu/TensorLM-webui},
        year = {2024}
    }