Skip to content

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

@MGAMZ

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

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