Code Monkey home page Code Monkey logo

Comments (11)

yuyi1111 avatar yuyi1111 commented on May 30, 2024 1

6B模型输入长度200K需要大概多少显存呢?

from yi.

wangye01inf avatar wangye01inf commented on May 30, 2024 1

@yuyi1111 请问有安装 flash attention 吗?这个对显存影响挺大的

from yi.

excellent-ai avatar excellent-ai commented on May 30, 2024

Duplicate of #55

from yi.

FrankWhh avatar FrankWhh commented on May 30, 2024

这不是同一个问题

from yi.

learninmou avatar learninmou commented on May 30, 2024

demo中给出了一个text_generation_tp.py样例,如果是输入长度200K,在不开启offload技术且不量化的情况下,34B模型推理需要400GB以上的显存,我们测试使用是8卡A100/A800。

from yi.

FrankWhh avatar FrankWhh commented on May 30, 2024

硬算啊!显存占用400G,那速度呢?

from yi.

wangye01inf avatar wangye01inf commented on May 30, 2024

@yuyi1111 2TP 情况下 BS=1 每张卡大约需要 60-80GB 左右显存

from yi.

yuyi1111 avatar yuyi1111 commented on May 30, 2024

@yuyi1111 2TP 情况下 BS=1 每张卡大约需要 60-80GB 左右显存

能麻烦请教一下200K推理的情况吗?我用的text_generation_tp.py进行推理,两张80G显存的a800还是报cuda oom

from yi.

yuyi1111 avatar yuyi1111 commented on May 30, 2024

flash attention

谢谢!安装了之后就能跑起来了

from yi.

happy15 avatar happy15 commented on May 30, 2024

6B模型输入长度200K需要大概多少显存呢?

同问,mbp 14 with 16g上通过ollama跑没跑起来。

from yi.

learninmou avatar learninmou commented on May 30, 2024

6B模型输入长度200K需要大概多少显存呢?

同问,mbp 14 with 16g上通过ollama跑没跑起来。

你好,没有在mbp上测试过,理论上需要NVIDIA的GPU。

from yi.

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.