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

update harmony to new implementation #308

Merged
merged 23 commits into from
Dec 19, 2024
Merged

update harmony to new implementation #308

merged 23 commits into from
Dec 19, 2024

Conversation

Intron7
Copy link
Member

@Intron7 Intron7 commented Dec 11, 2024

Fixes #299

@Intron7 Intron7 requested review from ilan-gold and removed request for ilan-gold December 11, 2024 19:23
@Intron7 Intron7 marked this pull request as draft December 11, 2024 19:23
@Intron7 Intron7 added the run-gpu-ci runs GPU CI label Dec 16, 2024
@github-actions github-actions bot removed the run-gpu-ci runs GPU CI label Dec 16, 2024
@Intron7 Intron7 requested a review from flying-sheep December 16, 2024 09:55
@Intron7 Intron7 added the run-gpu-ci runs GPU CI label Dec 16, 2024
@github-actions github-actions bot removed the run-gpu-ci runs GPU CI label Dec 16, 2024
@Intron7 Intron7 added the run-gpu-ci runs GPU CI label Dec 16, 2024
@github-actions github-actions bot removed the run-gpu-ci runs GPU CI label Dec 16, 2024
@Intron7 Intron7 marked this pull request as ready for review December 16, 2024 10:35
@Intron7 Intron7 added the run-gpu-ci runs GPU CI label Dec 16, 2024
@github-actions github-actions bot removed the run-gpu-ci runs GPU CI label Dec 16, 2024
@flying-sheep
Copy link
Member

I’ll check this out tomorrow, it’s too big to start now!

@Intron7 Intron7 added the run-gpu-ci runs GPU CI label Dec 16, 2024
@github-actions github-actions bot removed the run-gpu-ci runs GPU CI label Dec 16, 2024
Copy link
Member

@flying-sheep flying-sheep left a comment

Choose a reason for hiding this comment

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

The harmonize function has a really nice layout. it’s easy to follow what it does, nice!

However it seems like you’re establishing a bunch of parameters that get reused and never changed after the initialization. You could e.g.

  • create it a frozen dataclass with methods so you can use the parameters using self.<name>, or
  • create a NamedTuple that you can pass around containing the parameters

Copy link
Member

Choose a reason for hiding this comment

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

  • don’t name variables LIKE_CONSTANTS
  • don’t name variables with single letter names (except for a, b for binary operators, i for enumerate and similar conventions)

Copy link
Member

@flying-sheep flying-sheep Dec 19, 2024

Choose a reason for hiding this comment

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

the variables still have weird names with capital letters in them

@Intron7
Copy link
Member Author

Intron7 commented Dec 17, 2024

removed all prints and added a warning if harmony didnt converge

@Intron7 Intron7 added the run-gpu-ci runs GPU CI label Dec 17, 2024
@github-actions github-actions bot removed the run-gpu-ci runs GPU CI label Dec 17, 2024
@Intron7 Intron7 added the run-gpu-ci runs GPU CI label Dec 17, 2024
@github-actions github-actions bot removed the run-gpu-ci runs GPU CI label Dec 17, 2024
@Intron7 Intron7 requested a review from flying-sheep December 17, 2024 15:55
@Intron7 Intron7 added the run-gpu-ci runs GPU CI label Dec 17, 2024
@Intron7 Intron7 enabled auto-merge (squash) December 17, 2024 15:55
@github-actions github-actions bot removed the run-gpu-ci runs GPU CI label Dec 17, 2024
Copy link
Member

@flying-sheep flying-sheep left a comment

Choose a reason for hiding this comment

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

Please also check the review summary: #308 (review)

Copy link
Member

@flying-sheep flying-sheep Dec 19, 2024

Choose a reason for hiding this comment

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

the variables still have weird names with capital letters in them

@Intron7 Intron7 requested a review from flying-sheep December 19, 2024 10:11
@Intron7 Intron7 added the run-gpu-ci runs GPU CI label Dec 19, 2024
@Intron7
Copy link
Member Author

Intron7 commented Dec 19, 2024

Most of the names are just taken from the reference implementation

@Intron7 Intron7 enabled auto-merge (squash) December 19, 2024 10:12
@github-actions github-actions bot removed the run-gpu-ci runs GPU CI label Dec 19, 2024
@Intron7 Intron7 added the run-gpu-ci runs GPU CI label Dec 19, 2024
@github-actions github-actions bot removed the run-gpu-ci runs GPU CI label Dec 19, 2024
Copy link
Member

@flying-sheep flying-sheep left a comment

Choose a reason for hiding this comment

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

You said you’re going to do a follow-up PR that moves all the various reused parameters (Phi, R, E, O, theta, …) into a container. Otherwise looks good!

@Intron7 Intron7 merged commit 01dd624 into main Dec 19, 2024
11 of 13 checks passed
@Intron7 Intron7 deleted the update-harmony branch December 19, 2024 15:01
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.

Switch harmony to harmony-torch
2 participants