Skip to content

RuntimeError: CUDA out of memory. Tried to allocate 1.32 GiB (GPU 0; 7.92 GiB total capacity; 5.68 GiB already allocated; 1.22 GiB free; 192.30 MiB cached) #15

Open

Description

@xuyuhui666

My commands :
python train.py -model_type img -data data/demo -save_model demo-model -gpu_ranks 0 -batch_size 4 -learning_rate 0.1 -word_vec_size 80 -encoder_type brnn -image_channel_size 3

My GPU breaks while running to the 10000 steps of 100000

My batch_size sets 4 ,as 20 defined can not run

Activity

  1. liminghao1630 commented on Nov 18, 2019

    @liminghao1630
    Collaborator

    What size is your GPU memory? Try to use a smaller batch size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions