Skip to content
This repository was archived by the owner on Oct 16, 2023. It is now read-only.

3 three steps for training any model? #1

@jeannotes

Description

@jeannotes

hi, thanks for your repo,
after read your code for traing with mmdetection-related framework, seems that you write those three fundamental code:

optimizer = HybridAdam(model.parameters())
model = zero_model_wrapper(model, zero_stage=2)
optimizer = zero_optim_wrapper(
    model, optimizer, optim_config=ZERO_OPTIM_CFG)

if this, we lose the general unitily of training of those specified frameworks, eg: those hooks.
maybe we can add those three lines of code to our framework inside, should that work?

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