Skip to content

[Feature] save/load [m, v] of Optimizer #326

@mcspring

Description

@mcspring

The current MLXOptimizers implementation does not support saving and loading the optimizer's internal state (e.g., m and v for Adam), as the stateStorage is internal and inaccessible.

This prevents resuming training from checkpoints with preserved optimizer momentum, requiring restarts from zero state.

Will a feature be added to manipulate and serialize the optimizer state, such as a public state property or dedicated loadState/saveState methods?

Metadata

Metadata

Assignees

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