Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/gpus ddp #13

Merged
merged 4 commits into from
May 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG PYTORCH=1.6.0
ARG CUDA=10.1
ARG CUDNN=7
ARG MMCV_VERSION=1.4.2
ARG PYTORCH=1.9.0
ARG CUDA=11.1
ARG CUDNN=8
ARG MMCV_VERSION=1.3.16

FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel

Expand Down
2 changes: 1 addition & 1 deletion mmtune/mm/tasks/mmtrainbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def train_model(cls, model: torch.nn.Module,

@classmethod
def contextaware_run(cls, status, backend, *args, **kwargs) -> None:
from mmtune.mm.tasks import hooks # noqa F401
from mmtune.mm import hooks # noqa F401
if backend == 'nccl' and os.getenv('NCCL_BLOCKING_WAIT') is None:
os.environ['NCCL_BLOCKING_WAIT'] = '0'
context_manager = ContextManager(**status)
Expand Down