Giter Club home page Giter Club logo

Comments (6)

godotg avatar godotg commented on May 29, 2024

api server的日志输出没有任何报错

from chinese-llama-alpaca-2.

godotg avatar godotg commented on May 29, 2024

经过一晚上又降回了17显存

from chinese-llama-alpaca-2.

godotg avatar godotg commented on May 29, 2024

image

大概每50-100次就会遇到下面这个报错,torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 3.51 GiB (GPU 0; 23.65 GiB total capacity; 17.10 GiB already allocated; 2.61 GiB free; 20.28 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALL
OC_CON

对于4090这样的显卡运行 Chinese-Alpaca-2 7B 这样的模型,显存占用是合理的吗?

from chinese-llama-alpaca-2.

iMountTai avatar iMountTai commented on May 29, 2024

模型本身权重就有14G左右,17G显存占用是合理的。运行中显存占用升高应该是每次推理缓存没有清理的原因,可以试试每次推理完将之前的记录等都清理了。脚本本身是指导性的作用,不一定那么完善,欢迎修改完善。

from chinese-llama-alpaca-2.

github-actions avatar github-actions commented on May 29, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your consideration.

from chinese-llama-alpaca-2.

github-actions avatar github-actions commented on May 29, 2024

Closing the issue, since no updates observed. Feel free to re-open if you need any further assistance.

from chinese-llama-alpaca-2.

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.