Git Product home page Git Product logo

workshops's Introduction

workshops

This is a repository for all workshop, tutorials and related materials.

workshops's People

Contributors

bradheintz avatar chauhang avatar desertfire avatar dmudiger avatar facebook-github-bot avatar fbbradheintz avatar fmassa avatar jeffxtang avatar jspisak avatar lessw2020 avatar mnaumovfb avatar vincentqb avatar zhangguanheng66 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

workshops's Issues

Memory issue on V100s

Observed OOM when running 737M T5 model on V100s with 32GB RAM each. The OOM was at the start of Epoch 1 after model was init-ed.

File "/home/hybridai/.local/lib/python3.8/site-packages/transformers/models/t5/modeling_t5.py", line 514, in forward
    attn_weights = nn.functional.dropout(
  File "/home/hybridai/.local/lib/python3.8/site-packages/torch/nn/functional.py", line 1252, in dropout
    return _VF.dropout_(input, p, training) if inplace else _VF.dropout(input, p, training)
RuntimeError: CUDA out of memory. Tried to allocate 128.00 MiB (GPU 0; 31.75 GiB total capacity; 30.42 GiB already allocated; 12.75 MiB free; 30.58 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_ALLOC_CONF

Changing the batch size to 4 didnt fix the OOM, but it reduced the "tried to allocate" part. Further reducing to 2 for batch size as well as validation results in training to start. GPU utilization is high (98%), however the GPU memory is showing 24GB each (per nvidia-smi).

@lessw2020 suggests the following fixes:

You are on V100 (so no BFloat16) and the code there does not have fp16 support added, so it's running in fp32 then, which is much more memory intensive.
I can add in the shardedgradscaler for you tomorrow to add FP16, and also update it to use FSDP activation checkpointing rather than HF (which we are finding is more performant).
For peak usage - I have a mem maximizer class that will show that for you.

grayscale/1-channel input

The current iOS implementation supports RGB model input - is there a way to use 1 channel input (grayscale)? I am unable to find any resources or examples online. Thank you!

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.