Skip to content

[zero3] new API docs? #875

@stas00

Description

@stas00

Would it be possible to document the new API?

I found:

deepspeed.zero_optimization()

which I think tells me if zero is enabled or not.

deepspeed.zero_optimization_stage()

is what I really needed to know to write conditional code for zero2 vs zero3.

Fished those out from dir(deepspeed) ;)

If there is no time to do full docs, at least having a full list of what is considered a public API would be a great start.

I see most of them are sort of properties of the config object, so I'm not sure how safe these are to use in user code.

Thank you!

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