GithubHelp home page GithubHelp logo

Comments (7)

GoooDte avatar GoooDte commented on June 16, 2024

您好 可以尝试将gradient_accumulate_step设置为1

from deepke.

kuku1128 avatar kuku1128 commented on June 16, 2024

您好 可以尝试将gradient_accumulate_step设置为1

感谢回复。所以模型实际上在每个epoch还是训练了14339个样本是吗?我还以为只训练了差不多1/8的样本

from deepke.

GoooDte avatar GoooDte commented on June 16, 2024

是的,gradient_accumulate_step的目的是梯度累积,适当的梯度累积是有利于训练的

from deepke.

kuku1128 avatar kuku1128 commented on June 16, 2024

是的,gradient_accumulate_step的目的是梯度累积,适当的梯度累积是有利于训练的

明白了,感谢。

此外,还有个问题想咨询下。
lora微调完成后,发现推理非常慢,使用v100,输入+输出token差不多1000左右,单条推理耗时差不多30s,这是符合预期的嘛?还有可以加速的方案嘛?

from deepke.

GoooDte avatar GoooDte commented on June 16, 2024

1000token可能属于比较多的,可以减小beam的大小,也可以使用inference_vllm加速

from deepke.

kuku1128 avatar kuku1128 commented on June 16, 2024

1000token可能属于比较多的,可以减小beam的大小,也可以使用inference_vllm加速

好的,我试试

from deepke.

zxlzr avatar zxlzr commented on June 16, 2024

请问您的问题是否已解决?

from deepke.

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.