Skip to content

Conversation

@dxqb
Copy link
Collaborator

@dxqb dxqb commented Dec 3, 2025

optimizer.step = step_adafactor.__get__(optimizer, Adafactor)
optimizer.step_parameter = step_adafactor_parameter.__get__(optimizer, Adafactor)
#lambdas don't work because of scheduler patching:
def step(*args, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this and the below step_parameter function get decorators like @functools.wraps(step_adafactor) to make these wrappers (slightly more) seamless?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you elaborate? what's the problem with the current code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants