Coder Social home page Coder Social logo

Comments (7)

pengzhiliang avatar pengzhiliang commented on June 26, 2024

Ok, Thank you!
I will fix it in a minute.
Total batch size: 4096.

from mae-pytorch.

Celestial-Bai avatar Celestial-Bai commented on June 26, 2024

是不是使用你们给出的command,然后调用8张卡,就可以达到4096的batch size呀?大概是6488=4096?

from mae-pytorch.

pengzhiliang avatar pengzhiliang commented on June 26, 2024
# Set the path to save checkpoints
OUTPUT_DIR='output/pretrain_mae_base_patch16_224'
# path to imagenet-1k train set
DATA_PATH='/path/to/ImageNet_ILSVRC2012/train'


# batch_size can be adjusted according to the graphics card
OMP_NUM_THREADS=1 python -m torch.distributed.launch --nproc_per_node=8 run_mae_pretraining.py \
        --data_path ${DATA_PATH} \
        --mask_ratio 0.75 \
        --model pretrain_mae_base_patch16_224 \
        --batch_size 512 \
        --opt adamw \
        --opt_betas 0.9 0.95 \
        --warmup_epochs 40 \
        --epochs 1600 \ # if you need
        --output_dir ${OUTPUT_DIR}

from mae-pytorch.

Celestial-Bai avatar Celestial-Bai commented on June 26, 2024

哈哈哈感谢!我们之前很少用--nproc_per_node=8这个command,但是我用V100和A100都set过512,全部炸显存了hhh,不清楚是不是我们服务器调度的问题,非常感谢!

from mae-pytorch.

Celestial-Bai avatar Celestial-Bai commented on June 26, 2024

另外想问一下,你们pre-training使用的外存有多大?不好意思问题有点多了,实在不好意思

from mae-pytorch.

pengzhiliang avatar pengzhiliang commented on June 26, 2024

It's all right. You're welcome.

When batchsize is set to 512, the GPU memory occupies approximately 30G.

from mae-pytorch.

Celestial-Bai avatar Celestial-Bai commented on June 26, 2024

OK, get it! It is caused by our server.

And after you update the modeling_pretrain.py, we don't need to upgrade the timm. So you won't need to update the requirements.
Thank you so much for your efforts!

from mae-pytorch.

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.