Git Product home page Git Product logo

Comments (4)

zhaone avatar zhaone commented on August 20, 2024 2

@YahooHu Hi, I met the same issue the first I run this code.
You may follow this hyper parameter given by the author.

  • set precision fp16
  • change --mid_dim from 800 to 512
  • reduce --max_source_length to 512

This setting reduces the memory to about 20G on my A100 card.

from prefixtuning.

sonsus avatar sonsus commented on August 20, 2024 1

@zhaone just found there was change to mid_dim. Thanks.

  1. Is this reducing the mid_dim of the MLP right? (reducing pretrained gpt mid_dim does not make sense)
  2. In table 2, there is Prefix(0.1%) setting. Does this uses preseqlen = 10 (0.1%) ? or reduced some other part of the model (e.g. reducing mid_dim) ? @XiangLi1999

from prefixtuning.

XiangLi1999 avatar XiangLi1999 commented on August 20, 2024

For XSUM, I think you need a GPU with a larger memory (e.g., > 32GB), otherwise, you need to train for very very long time. For table-to-text, I think it's fine.

from prefixtuning.

YahooHu avatar YahooHu commented on August 20, 2024

For XSUM, I use a Tesla A100 (40GB) to train, but still OOM. How can I solve this? @XiangLi1999

RuntimeError: CUDA out of memory. Tried to allocate 1.20 GiB (GPU 0; 39.59 GiB total capacity; 36.82 GiB already allocated; 261.50 MiB free; 37.90 GiB reserved in total by PyTorch)
Epoch 0: 0%| | 0/12784 [00:01<?, ?it/s]

from prefixtuning.

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.