Coder Social home page Coder Social logo

GPU load is severely unbalanced about lama HOT 4 CLOSED

advimman avatar advimman commented on August 21, 2024
GPU load is severely unbalanced

from lama.

Comments (4)

windj007 avatar windj007 commented on August 21, 2024

Hi! Sorry for the leate reply!

You can try to turn off the validation - then the pipeline would use less gpu memory and load will be a bit more balanced. However, as far as I know, this is a usual issue with DDP - it always occupies more memory on gpu #0 than on others. If you want to achieve equal memory consumption, try horovod - it should be pretty easy to set up with pytorch-lightning (however, I did not try it myself)

from lama.

windj007 avatar windj007 commented on August 21, 2024

This link might be also useful

from lama.

jxbs avatar jxbs commented on August 21, 2024

You can try to turn off the validation
how to turn off the validation? we should update .yaml?

from lama.

windj007 avatar windj007 commented on August 21, 2024

Just set very long period of validation, by adjusting .yaml or by adding a command line argument to train.py, e.g. trainer.kwargs.check_val_every_n_epoch=10000

However, when turning validation off you have to adjust parameters for saving the checkpoints (see configs/trainer/*.yaml)

Instead of this

checkpoint_kwargs:
  verbose: True
  save_top_k: 5
  save_last: True
  period: 1
  monitor: val_lpips_fid100_f1_total_mean
  mode: max

Write this:

checkpoint_kwargs
  verbose: True
  period: 1

As a result, you'll have a model dumped after each epoch - so you'll have to score them afterwards and choose the best one.

from lama.

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.