GithubHelp home page GithubHelp logo

llamalingo's Introduction

LlamaLingo

This project is a chatbot application that uses the Llama-3 model to engage in interactive conversations. It provides a user-friendly interface for chatting with the Llama-3 chatbot, powered by a locally hosted OpenAI-compatible API.

Features

  • Engage in interactive conversations with the Llama-3 chatbot
  • User-friendly interface built with Streamlit
  • Locally hosted server using LM Studio for model exposure
  • Real-time chat history and message display

Requirements

  • Python 3.8+
  • Streamlit
  • OpenAI API
  • LM Studio

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/llamalingo.git
    cd llamalingo
  2. Create a virtual environment:

    python -m venv env
  3. Activate the virtual environment:

    • On Windows:
      .\env\Scripts\activate
    • On macOS and Linux:
      source env/bin/activate
  4. Install the required packages:

    pip install -r requirements.txt
  5. Install and set up LM Studio. Follow the installation instructions on the LM Studio website.

Usage

Running LM Studio

  1. Start LM Studio and download the Llama-3 instruct model.
  2. Expose the Llama-3 model as an OpenAI API by starting the server in LM Studio. Ensure it is running on http://localhost:1234/v1.

Running the Streamlit App

  1. Run the Streamlit application:

    streamlit run app.py
  2. Open your web browser and go to http://localhost:8501.

Chatting with LlamaLingo

  1. Enter your message in the input box.
  2. Click the "Send" button or press Enter.
  3. View the chatbot's response in the chat history.

Sample

alt text

Contributions

While this is a personal project focused on my own learning and development, any constructive feedback, suggestions, or contributions to the existing solutions are always welcome. If you'd like to contribute, please feel free to submit a pull request.

Contact

For any inquiries or collaborations, feel free to reach out to me via [email protected].

Acknowledgements

  • OpenAI for the Llama-3 model
  • Streamlit for the web application framework
  • LM Studio for providing the local server setup and model exposure

llamalingo's People

Contributors

isiddharthsingh avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.