Skip to content

Ask for Multi-GPU Training  #2

Description

@gyuwonchoi

Hi,
Thank you for sharing the code of your work.

While reviewing the './tools/train.py' script, I noticed that the multi-GPU mode is not supported.

I was wondering if there is an alternative way for me to train the code using MMDistributedDataParallel.
I have NVIDIA TITAN V (12GB) GPUs, which cannot train the model based on Transformer in single GPU.

 if args.gpus is not None:
        cfg.gpu_ids = range(4)    
        warnings.warn('`--gpus` is deprecated because we only support '
                      'single GPU mode in non-distributed training. '
                      'Use `gpus=1` now.')
    if args.gpu_ids is not None:
        cfg.gpu_ids = args.gpu_ids[0:3]
        warnings.warn('`--gpu-ids` is deprecated, please use `--gpu-id`. '
                      'Because we only support single GPU mode in '
                      'non-distributed training. Use the first GPU '
                      'in `gpu_ids` now.')

Thank you for response in advance.

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