Giter Club home page Giter Club logo

llm_wizard_7b_squad_v1's Introduction

Wizard_QLoRA_Finetuning

Finetuning Some Wizard Models With QLoRA

Demo

https://youtu.be/hkt5Nz0buso?si=HNmYLp_z5SGZlMbM

Pipeline

Model fine-tuning

Finetuning can be done with the finetune.py script. In this script, a model will be downloaded and finetuned on one of the datasets in 4-bit precision. As finetuning progress is being made, checkpoints are saved to the specified output directory.

Merging

After the model is trained, one of the checkpoint files should be merged so that the LoRA weights and old weights are combined into a single weight matrix, making inference more efficient than if you had them split. merge.py does the merge given a specified checkpoint file and the specified model type.

Inference

Inference has a few scripts. infer.py and infer.ipynb are similar and just run straight inference on a given model. infer_interface.ipynb has an additional interface using Gradio.

Uploading/Saving Models

upload.py can be used to upload huggingface models to the hub easily given a repo name to upload. Make sure to get a write token from huggingface to upload properly.

Data Creation

data_creation.ipynb is a simple example of data creation.

llm_wizard_7b_squad_v1's People

Contributors

metythornpenn 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.