Skip to content

When reasoning, how to multi-card on a single machine? #159

Description

@tiga-dudu

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 1.55 GiB (GPU 1; 23.64 GiB total capacity; 21.21 GiB already allocated; 120.25 MiB free; 21.39 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

Even if I set model = model.to(gpu) -> model = model.half().to(gpu), it still doesn't work.

export CUDA_VISIBLE_DEVICES=0,1,2,3 Equally doesn't work,
Can someone help me?

Activity

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