mirror of
https://github.com/huggingface/lerobot.git
synced 2026-08-08 17:39:44 +00:00
7daf8f852d
Starts Wave 2. Takes src/lerobot/optim/ to 100% public docstring coverage. Fixes dataclass Args: field order to match the real generated __init__ signature (base-class fields keep their position even when redeclared by a subclass). Adds docs/source/api/optim.mdx, which didn't exist before — needs a _toctree.yml entry from whoever owns that file, see PR description. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
94 lines
2.0 KiB
Plaintext
94 lines
2.0 KiB
Plaintext
# Optimization
|
|
|
|
`OptimizerConfig` and `LRSchedulerConfig` are the base configuration classes for the optimizers and learning
|
|
rate schedulers used during training. `TrainPipelineConfig` composes one of each; see
|
|
[`~optim.factory.make_optimizer_and_scheduler`] for how they are built from a policy's parameters.
|
|
|
|
## make_optimizer_and_scheduler
|
|
|
|
[[autodoc]] lerobot.optim.factory.make_optimizer_and_scheduler
|
|
|
|
## OptimizerConfig
|
|
|
|
[[autodoc]] lerobot.optim.OptimizerConfig
|
|
- type
|
|
- builds_multiple_optimizers
|
|
- default_choice_name
|
|
- build
|
|
|
|
## AdamConfig
|
|
|
|
[[autodoc]] lerobot.optim.AdamConfig
|
|
- build
|
|
|
|
## AdamWConfig
|
|
|
|
[[autodoc]] lerobot.optim.AdamWConfig
|
|
- build
|
|
|
|
## SGDConfig
|
|
|
|
[[autodoc]] lerobot.optim.SGDConfig
|
|
- build
|
|
|
|
## MultiAdamConfig
|
|
|
|
Builds a dictionary of Adam optimizers, one per parameter group — used when a policy needs separate
|
|
optimizers for different components (e.g. actor/critic/temperature in SAC).
|
|
|
|
[[autodoc]] lerobot.optim.MultiAdamConfig
|
|
- builds_multiple_optimizers
|
|
- build
|
|
|
|
## XVLAAdamWConfig
|
|
|
|
[[autodoc]] lerobot.optim.XVLAAdamWConfig
|
|
- build
|
|
|
|
## save_optimizer_state
|
|
|
|
[[autodoc]] lerobot.optim.save_optimizer_state
|
|
|
|
## load_optimizer_state
|
|
|
|
[[autodoc]] lerobot.optim.load_optimizer_state
|
|
|
|
## LRSchedulerConfig
|
|
|
|
[[autodoc]] lerobot.optim.LRSchedulerConfig
|
|
- type
|
|
- build
|
|
|
|
## DiffuserSchedulerConfig
|
|
|
|
[[autodoc]] lerobot.optim.DiffuserSchedulerConfig
|
|
- build
|
|
|
|
## VQBeTSchedulerConfig
|
|
|
|
[[autodoc]] lerobot.optim.VQBeTSchedulerConfig
|
|
- build
|
|
|
|
## ConstantWithWarmupSchedulerConfig
|
|
|
|
[[autodoc]] lerobot.optim.schedulers.ConstantWithWarmupSchedulerConfig
|
|
- build
|
|
|
|
## CosineAnnealingWithWarmupSchedulerConfig
|
|
|
|
[[autodoc]] lerobot.optim.schedulers.CosineAnnealingWithWarmupSchedulerConfig
|
|
- build
|
|
|
|
## CosineDecayWithWarmupSchedulerConfig
|
|
|
|
[[autodoc]] lerobot.optim.CosineDecayWithWarmupSchedulerConfig
|
|
- build
|
|
|
|
## save_scheduler_state
|
|
|
|
[[autodoc]] lerobot.optim.save_scheduler_state
|
|
|
|
## load_scheduler_state
|
|
|
|
[[autodoc]] lerobot.optim.load_scheduler_state
|