Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection of minor changes #26

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Collection of minor changes #26

wants to merge 20 commits into from

Conversation

spinjo
Copy link
Collaborator

@spinjo spinjo commented Nov 9, 2024

No description provided.

spinjo and others added 6 commits November 8, 2024 14:29
…'pytorch_optimizer' instead of official repo for convenience (using the same seed, both implementations give the same loss up to machine precision)
…ree and updated requirements to prevent package conflicts.
requirements.txt Outdated Show resolved Hide resolved
requirements.txt Outdated Show resolved Hide resolved
grad_norm =grad_norm = (
torch.nn.utils.clip_grad_norm_(
self.model.parameters(),
float('inf'),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it would be simpler to have something like self.cfg.training.clip_grad_norm if self.cfg.training.clip_grad_norm is not None else float('inf') and avoid the else statement

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.

1 participant