Skip to content

Make betas and weight_decay Adam(W) hyperparameters configurable#1282

Merged
tianyu-l merged 1 commit intopytorch:mainfrom
runame:extend-adam-config
Jun 11, 2025
Merged

Make betas and weight_decay Adam(W) hyperparameters configurable#1282
tianyu-l merged 1 commit intopytorch:mainfrom
runame:extend-adam-config

Conversation

@runame
Copy link
Contributor

@runame runame commented Jun 11, 2025

This change exposes the betas and weight_decay hyperparameters for Adam(W) to the user by adding them to the Optimizer dataclass.

The default behavior will be unchanged since I used the previously hard-coded values as the default.

@runame runame requested review from fegin, tianyu-l and wwwjn as code owners June 11, 2025 18:06
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 11, 2025
Copy link
Contributor

@tianyu-l tianyu-l left a comment

Choose a reason for hiding this comment

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

lgtm!

@tianyu-l tianyu-l merged commit 7c8301a into pytorch:main Jun 11, 2025
7 checks passed
@runame runame deleted the extend-adam-config branch June 11, 2025 21:14
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 13, 2026
…ytorch#1282)

This change exposes the `betas` and `weight_decay` hyperparameters for
Adam(W) to the user by adding them to the `Optimizer` dataclass.

The default behavior will be unchanged since I used the previously
hard-coded values as the default.
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 25, 2026
…ytorch#1282)

This change exposes the `betas` and `weight_decay` hyperparameters for
Adam(W) to the user by adding them to the `Optimizer` dataclass.

The default behavior will be unchanged since I used the previously
hard-coded values as the default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants