GithubHelp home page GithubHelp logo

FSDP + QDoRA Support about alignment-handbook HOT 6 OPEN

iseesaw avatar iseesaw commented on May 28, 2024
FSDP + QDoRA Support

from alignment-handbook.

Comments (6)

MustafaAlahmid avatar MustafaAlahmid commented on May 28, 2024 1

I have done some FSDP to train full parameters mistral 7b

maybe its useful for you

here

from alignment-handbook.

iseesaw avatar iseesaw commented on May 28, 2024

I have done some FSDP to train full parameters mistral 7b

maybe its useful for you

here

Thanks, good job!

I want to finetune Llama-3-70B with 8 A6000 48G, which are not enough for training full parameters.

FSDP + QDoRA is the method I have found to be feasible and probably the most effective.

from alignment-handbook.

MustafaAlahmid avatar MustafaAlahmid commented on May 28, 2024

I have done some FSDP to train full parameters mistral 7b
maybe its useful for you
here

Thanks, good job!

I want to finetune Llama-3-70B with 8 A6000 48G, which are not enough for training full parameters.

FSDP + QDoRA is the method I have found to be feasible and probably the most effective.

yes it should work
try to change the config file for FSDP and put llama decoder layer
should be something like this

ACCELERATE_LOG_LEVEL=info accelerate launch --config_file recipes/accelerate_configs/fsdp.yaml scripts/run_sft.py recipes/{modelname}/sft/config_q;ora.yaml

from alignment-handbook.

iseesaw avatar iseesaw commented on May 28, 2024

yes it should work try to change the config file for FSDP and put llama decoder layer should be something like this

ACCELERATE_LOG_LEVEL=info accelerate launch --config_file recipes/accelerate_configs/fsdp.yaml scripts/run_sft.py recipes/{modelname}/sft/config_q;ora.yaml

I've tried this command and encountered the issue described in huggingface/peft#1674

Currently, I am following the official example provided in PEFT for further troubleshooting: https://github.com/huggingface/peft/blob/main/examples/sft/run_peft_qlora_fsdp.sh

from alignment-handbook.

freegheist avatar freegheist commented on May 28, 2024

FSDP + QDoRA for Zephyr 141b would be really good

from alignment-handbook.

deep-diver avatar deep-diver commented on May 28, 2024

AFAIK, FSDP+QDoRA is not supported feature in HF official releases like transformers, peft, ...

from alignment-handbook.

Related Issues (20)

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.