Skip to content

fabric.save docs/examples are wrong for latest version #20622

@ppisljar

Description

@ppisljar

📚 Documentation

all docs seem to mention that fabric.save should be called with
fabric.save(model.to_state_dict(), checkpoint_path) but it seems that in latest version the params have been switched and checkpoint_path needs to be passed first

example doc: https://lightning.ai/docs/pytorch/LTS/fabric/api/fabric_methods.html

cc @lantiga @Borda

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation relatedneeds triageWaiting to be triaged by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions