Git Product home page Git Product logo

drruin / lightweight-fine-tuning Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6.88 MB

Lightweight fine-tuning is one of the most important techniques for adapting foundation models, because it allows you to modify foundation models for your needs without needing substantial computational resources.

Jupyter Notebook 100.00%
emoji fine-tuning generative-ai gpt2 peft python tokenizer torch transformers twitter

lightweight-fine-tuning's Introduction

Lightweight Fine-Tuning Project ๐Ÿš€

This project is all about showing how one can fine-tune models in a simple, straightforward way. Lightweight fine-tuning is one of the most important techniques for adapting foundation models, because it allows you to modify foundation models for your needs without needing substantial computational resources.

About the Project ๐Ÿ“„

In this project, we will bring together all of the essential components of a PyTorch + Hugging Face training and inference process. Specifically, we will:

  • Load a pre-trained model and evaluate its performance
  • Perform parameter-efficient fine tuning using the pre-trained model
  • Perform inference using the fine-tuned model and compare its performance to the original model

Dataset Description ๐Ÿ“Š

The dataset consists of two columns:

  • tweet: where each line includes the text of a tweet that included emoji (but the emoji has been removed).
  • emoji: where each line includes the name of the emoji for the corresponding text in tweet.

Key Findings ๐Ÿ”

  • Is Fine-Tuning Necessary?
  • Predictive Modeling: We used transformers to train our dataset and make it predict tweets or text by giving certain Emojis suitable for that given text.
  • Analysis On PEFT

For a detailed look into the analysis, check out this Jupyter Notebook

lightweight-fine-tuning's People

Contributors

drruin avatar

Stargazers

 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.