Giter Club home page Giter Club logo

bjj_coach's Introduction

Fine-tuning an LLM into a BJJ Coach

Danaher's Enter The System DVD cover

Let's train an LLM into speaking like John Danaher, arguably one of the greatest BJJ coach.

Try asking for his guidance!

Simply launch the app with python app.py

Training Data

John Danaher regularly write high quality posts on Instagram where he develops ideas around BJJ in his captions. We will download these captions and feed them into a pre-trained LLM for supervised fine-tuning. This work is done in notebooks/data_collector.ipynb notebook where we scrap instagram and store the relevant data into the data/danaher_data.csv file.

Pre-Trained Model

We use the mistral7B open-source model from MistralAI available on Hugging Face.

Supervised fine-tuning : QLoRA

We utilize the QLoRA training to greatly reduce both the training computational cost and memory footprint. This modern technique is readily available in python through the peft librairy and will allow us to conduct the training on consumer hardware !

Gradio Web-App

We build a simple gradio app to demo the model.

Roadmap

  • Add possibility to choose an open-source LLM and lauch a fine-tuning job easily
  • Instead of fine-tuning, explore RAG solutions
  • Instead of fine-tuning, try to build an instruct-like dataset and compare different methods like RLHF and DPO

Getting Started

Simple instructions to get started running the notebooks and using the web-app.

Installation

  1. Clone the repo
    git clone https://github.com/NicolasPllr1/bjj_coach.git
  2. Install python dependancies
    pip install -r requirements.txt

Usage

Simply launch the app with python app.py

bjj_coach's People

Contributors

nicolaspllr1 avatar

Watchers

 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.