Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lerobot/optim/optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def default_choice_name(cls) -> str | None:
return "adam"

@abc.abstractmethod
def build(self) -> torch.optim.Optimizer | dict[str, torch.optim.Optimizer]:
def build(self, *args: Any, **kwargs: Any) -> torch.optim.Optimizer | dict[str, torch.optim.Optimizer]:
"""
Build the optimizer. It can be a single optimizer or a dictionary of optimizers.
NOTE: Multiple optimizers are useful when you have different models to optimize.
Expand Down
2 changes: 1 addition & 1 deletion src/lerobot/optim/schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

@dataclass
class LRSchedulerConfig(draccus.ChoiceRegistry, abc.ABC):
num_warmup_steps: int
num_warmup_steps: int | None = None

@property
def type(self) -> str:
Expand Down