Skip to content

alexanderatallah/Alpaca-Turbo

 
 

Repository files navigation

Alpaca-Turbo: A Fast and Configurable Language Model-Based Chat UI and API

Discord

Alpaca-Turbo is a user-friendly web UI for the alpaca.cpp language model based on LLaMA,
with unique features that make it stand out from other implementations.

The goal is to provide a seamless chat experience that is easy to configure and use, without sacrificing speed or functionality.

Out of the box ready for conversation

We invite you to try Alpaca-Turbo today and experience the difference for yourself.

Screencast showing ability to remember previous part of conversation

new_demo.mp4

Web UI to run alpaca model locally

image image

Try It Out!

To get started with Alpaca-Turbo, simply clone our repository and run the following commands:

git clone https://github.com/ViperX7/Alpaca-Turbo.git
cd Alpaca-Turbo
pip install -r requirements.txt
python webui.py

Using the API

  1. Make sure your model location is correct (see Assistant.model_path here). E.g. you may need to remove "/7B" with some default Dalai configurations.

  2. Run the api using uvicorn api:app --reload

This will start a local development server at http://127.0.0.1:8000.

You can access the auto-generated documentation for your API at http://127.0.0.1:8000/docs.

Discussion around standardizing the API can be found here.

Troubleshooting

Features

  • Easy Configuration: Our UI provides a simple way to configure the bot persona and prompt style, allowing you to personalize your chatbot to your liking.

  • Lightning Fast Generation: Alpaca-Turbo keeps the model in memory, which makes subsequent generations lightning fast, without the need to reload the model for every generation.

  • Persistent Configuration: We understand the importance of saving your preferences, which is why our UI remembers changes between restarts, ensuring you don't have to go through the setup process every time you want to use it.

  • Seamless Chat Experience: Our web UI ensures that the chat continues even if you restart the script that is running in the background, providing you with a seamless chat experience.

  • User-Friendly Interface: We've designed our UI to be easy to use, with a simple interface that doesn't require any manual intervention. You can start chatting with our chatbot right away, without any complicated setup.

  • No Endless Printing: One common problem with other chat UIs is that the bot keeps on printing stuff without stopping. That's not the case with Alpaca-Turbo. We've taken steps to ensure that the chatbot only prints when it has something to say.

  • History Mode: Our bot has a history mode that remembers previous conversations, allowing for more personalized and engaging conversations.

CREDITS

About

Web UI to run alpaca model locally

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.9%
  • HTML 3.1%