Giter Site home page Giter Site logo

Comments (5)

yuanzhoulvpi2017 avatar yuanzhoulvpi2017 commented on May 22, 2024 3
  1. 在老版本中,模型可以多卡,但是我用了新版本代码,就不能并行了。我还在调试bug,

from zero_nlp.

cywjava avatar cywjava commented on May 22, 2024
  1. 在老版本中,模型可以多卡,但是我用了新版本代码,就不能并行了。我还在调试bug,

哟西,我就说怎么你之前的可以,现在的不可以了呢。 另外之前的是可以多卡,但是除了第一个卡满载运行,其它感觉 都是闲着的啊

from zero_nlp.

yuanzhoulvpi2017 avatar yuanzhoulvpi2017 commented on May 22, 2024

from zero_nlp.

Chenzongchao avatar Chenzongchao commented on May 22, 2024

okok

from zero_nlp.

yuanzhoulvpi2017 avatar yuanzhoulvpi2017 commented on May 22, 2024

添加了单机多卡训练代码,链接放在这里,https://github.com/yuanzhoulvpi2017/zero_nlp/tree/main/Chatglm6b_ModelParallel

单机多卡、模型并行方式训练chatglm6b模型代码。
同时,结合lora算法、fp16精度、使用checkpoint等方法,可以在文本长度为1024、batchsize=4的情况下,在两个T4显卡上跑的很快乐(显卡的显存最大为16G,但是实际上卡1用了8G,卡2用了11G),甚至batchsize还可以提高。

from zero_nlp.

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.