GithubHelp home page GithubHelp logo

giws's Introduction

GIW

GIW(Give It a Whirl)——About Training Details

This reposiroty contains several mini projects which require diffrent training details. it‘s builded to record some training details and techniques, and most of them are of great benefit. Each point mentioned in the Readme is implemented in the projects.

The operation of the entire project is managed through hydra, please refer here for details.

CFIT(classifier of img and text)

Sentiment Classification tasks(three types of motion): according to the image and its corresponding text. Training data is from Twitter.

Baseline:CLIP(Bert + Res50 or ViT)

  • Model & Training & Evaluation:Complete model definition, training and evaluation script writing. Comprehensive data pipeline constructing.
  • Accelerate:AMP(auto mixed precision)、Accumulate Gradient、DDP(Distributed Data Parallel)
  • PEFT (parameter-efficient fine-tuning):LoRA(use peft by huggingface).

Memory

AMP and AG is applied by defalt.

Model Config Memory usage
CLIP Full Fine-tuning 27.6 G
CLIP LoRA 9.3 G
CLIP LoRA + CrossAttn 10.7 G
BERT LoRA 8.6 G
VIT LoRA 5.0 G

Results from distributed training may be 3-5 points lower than those from single-card training. This could be related to training scheduling, and it may be necessary to implement optimizer scheduling strategies for learning rates and other parameters.

giws's People

Contributors

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