Giter VIP home page Giter VIP logo

flavienbardet / boilerllmapplication Goto Github PK

View Code? Open in Web Editor NEW

This project forked from darien-schettler/boilerllmapplication

0.0 0.0 0.0 540 KB

LLM-Hosting-Boilerplate is a Python project designed to facilitate the hosting of Large Language Models (LLMs) with ease. It is flexible enough to allow users to host different types of LLMs (Bring your own model, Hugging Face models, etc.) on multiple cloud service platforms (AWS, GCP, Azure, or own server) powered by the Runhouse library.

License: MIT License

Python 100.00%

boilerllmapplication's Introduction

Project Name: LLM-Hosting-Boilerplate

LLM-Hosting-Boilerplate is a Python project designed to facilitate the hosting of Large Language Models (LLMs) with ease. It is flexible enough to allow users to host different types of LLMs (Bring your own model, Hugging Face models, etc.) on multiple cloud service platforms (AWS, GCP, Azure, or own server) powered by the Runhouse library.


Project Directory Structure

BoilerLLMApplication/
|
|---- LICENSE
|---- README.md
|---- requirements.txt
|
|---- src/
|     |---- __init__.py
|     |
|     |---- config/
|     |     |---- __init__.py
|     |     |---- settings.py
|     |
|     |---- model_manager/
|     |     |---- __init__.py
|     |     |---- model_loader.py
|     |     
|     |-- runhouse_ops/
|     |     |---- __init__.py
|     |     |---- instance_handler.py
|     |
|     |---- server/
|     |     |---- __init__.py
|     |     |---- app.py
|     |
|     |---- data_manager/
|     |     |---- __init__.py
|     |     |---- data_loader.py
|     |
|     |---- monitoring/
|     |     |---- __init__.py
|     |     |---- logger.py
|     
|---- examples/
|     |---- example_01.py
|     |---- ...
|     |---- example_xx.py
|     
|---- docs/
|     |---- index.md
|     |---- setup_guide.md
|     |---- model_addition_guide.md
|    

Module Breakdown

  • config: This module handles all the configuration settings for the LLMs and the deployment environment.
  • model_manager: This module manages the loading of models from various sources (Hugging Face, custom models, etc.).
  • runhouse_ops: This module leverages the capabilities of Runhouse to launch, configure, and terminate instances on the cloud platforms.
  • server: This module contains a server (like Flask or FastAPI) to handle incoming requests and return predictions from the LLM.
  • data_manager: This module handles fetching and managing any data resources required by the LLM.
  • monitoring: This module is responsible for tracking performance and resource utilization of the instances.

Getting Started

  1. Clone the repository:
git clone https://github.com/darien-schettler/BoilerLLMApplication.git
  1. Install the requirements:
pip install -r requirements.txt
  1. Configure your deployment environment and model settings in config/settings.py.

  2. Start your server (more instructions in docs/setup_guide.md).

For more detailed instructions and guides, refer to the docs/ folder.


Contribution

We welcome contributions to this project. Please feel free to open an issue or submit a pull request.


License

This project is licensed under the MIT License.


Contact

For questions or support, please contact [email protected]


Acknowledgements

This project utilizes the Runhouse library for managing cloud resources and was largely developed with their support and guidance.

boilerllmapplication's People

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.