Giter VIP home page Giter VIP logo

Comments (4)

jklj077 avatar jklj077 commented on June 13, 2024

https://github.com/QwenLM/Qwen/tree/main/recipes/finetune/deepspeed#settings-and-gpu-requirements

Not possible for 24GB * 4.

from qwen.

taishan1994 avatar taishan1994 commented on June 13, 2024

是8卡,不是4卡。因为看到qlora在一张80G显卡上,设置长度为4096,训练需要68.0G,所以通过qlora的方式能否在8*24G的机器上设置长度为4096来微调qwen-72b-chat。但是我是用qlora+zero2进行多GPU微调。发现在模型加载的时候就会报OOM,如果使用zero3,并把model_offord和optim_offord打开,模型可以正常加载,但是qlora和zero3又不能同时使用。所以想问下有什么方式可以做到我想要做的。

from qwen.

jklj077 avatar jklj077 commented on June 13, 2024

For ZeRO Stage 2, having each GPU capable of holding the entire model is a bare minimum requirement. Given that Qwen-72B-Chat-Int4 exceeds 40GB, trying to finetune a model of this scale using Q-LoRA with GPUs that only have 24GB (or even 48GB) of memory simply won't cut it.

from qwen.

taishan1994 avatar taishan1994 commented on June 13, 2024

了解了,谢谢您的回答。

from qwen.

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.