Skip to content
This repository was archived by the owner on Dec 28, 2025. It is now read-only.
This repository was archived by the owner on Dec 28, 2025. It is now read-only.

[Bug] Support for Python-Like config file containing model_warpper_constructor or model_wrapper #3

Description

@MGAMZ

See open-mmlab#1665

This issue is discovered many months ago, maybe requires further determine whether it still existes, and in which scenario.
The similar issue exist on model_wrapper_cfg too, so there're some changes in mmengine.runner.runner.wrap_model too.

optim_wrapper = dict(
    type = DeepSpeedOptimWrapper,
    optimizer = dict(type=AdamW, lr=lr, weight_decay=weight_decay),
    accumulative_counts = grad_accumulation,
    constructor = dict(type=DefaultOptimWrapperConstructor),
)

This source file is related: mmengine/optim/optimizer/builder.py

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions