Skip to content

configure lr scheduler#41

Merged
ncfrey merged 6 commits intomainfrom
n/configure-lr-scheduler
Mar 6, 2025
Merged

configure lr scheduler#41
ncfrey merged 6 commits intomainfrom
n/configure-lr-scheduler

Conversation

@ncfrey
Copy link
Contributor

@ncfrey ncfrey commented Mar 4, 2025

No description provided.

@ncfrey ncfrey marked this pull request as ready for review March 4, 2025 18:29
@ncfrey ncfrey temporarily deployed to test.pypi.org March 4, 2025 18:34 — with GitHub Actions Inactive
@ncfrey ncfrey enabled auto-merge (squash) March 4, 2025 18:38
num_warmup_steps=self._num_warmup_steps,
num_training_steps=self._num_training_steps,
)
scheduler = instantiate(self.scheduler_cfg, optimizer=optimizer)
Copy link
Collaborator

Choose a reason for hiding this comment

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

where is self.scheduler_cfg set?

defaults:
- _self_

scheduler:
Copy link
Collaborator

Choose a reason for hiding this comment

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

does it need to be partial?

@ncfrey ncfrey disabled auto-merge March 4, 2025 18:45
@ncfrey ncfrey temporarily deployed to test.pypi.org March 5, 2025 20:54 — with GitHub Actions Inactive
mask_percentage: float = 0.25,
max_length: int = 512,
**model_kwargs,
scheduler: Literal["linear", "cosine", "cosine_with_restarts", "polynomial", "constant", "constant_with_warmup",
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice!

}

# Add any additional scheduler kwargs from initialization
if hasattr(self, 'scheduler_kwargs'):
Copy link
Collaborator

Choose a reason for hiding this comment

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

isn't this always true?


# Define path to the config file
config_path = os.path.join(
os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))),
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: could be config_path = Path(__file__).parents[4]

@ncfrey ncfrey temporarily deployed to test.pypi.org March 6, 2025 00:53 — with GitHub Actions Inactive
@ncfrey ncfrey merged commit 6cf2d1c into main Mar 6, 2025
5 checks passed
@ncfrey ncfrey deleted the n/configure-lr-scheduler branch March 6, 2025 02:37
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