Chatbot service for open-source instruction-following LLMs
Top 14.9% on sourcepulse
This repository provides a service to deploy and interact with various open-source instruction-following Large Language Models (LLMs) as chatbots. It targets users who want to easily experiment with different LLMs, offering both a Gradio-based web UI and a Discord bot interface, with integrated internet search capabilities.
How It Works
The project utilizes a model-agnostic conversation and context management library called "Ping Pong." This library abstracts away prompt formatting differences between various LLMs, allowing for seamless switching. The GradioChat UI provides a user-friendly interface similar to HuggingChat, while the Discord bot enables interaction through a popular messaging platform. Internet search is enabled via a Serper API key, integrating Google search results into chatbot responses.
Quick Start & Requirements
pip install -r requirements.txt
python app.py --serper-api-key "YOUR SERPER API KEY"
pip install -r requirements.txt
python discord_app.py --token "DISCORD BOT TOKEN" --model-name "MODEL_NAME" --mode-[cpu|mps|8bit|4bit|full-gpu] --serper-api-key "YOUR SERPER API KEY"
Highlighted Details
dstack
for cloud environments (AWS, GCP, Azure, Lambda Cloud).Maintenance & Community
dstack
deployment are provided.Licensing & Compatibility
Limitations & Caveats
1 year ago
1 day