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

Addressed missed out comments in PR #1 #3

Merged
merged 4 commits into from
Jun 22, 2024
Merged

Addressed missed out comments in PR #1 #3

merged 4 commits into from
Jun 22, 2024

Conversation

fabianlim
Copy link
Collaborator

@fabianlim fabianlim commented Jun 22, 2024

There were comments from @mayank31398 that were missed out in #1 , we address them here

  • removed yarn
  • removed linear.py and embedding.py
  • removed CommonConfig and moved the config to top level
  • combined norms into a single file
  • removed wrapper.py
  • moved checkpointing logic out.

@fabianlim fabianlim requested a review from mayank31398 June 22, 2024 05:28
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
@fabianlim
Copy link
Collaborator Author

@mayank31398 i have addressed the comments you left in #1 . Could you take a look and approve if satisfactory?

FYI: @RobotSail @Maxusmusti @aldopareja

Copy link

@mayank31398 mayank31398 left a comment

Choose a reason for hiding this comment

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

put some comments, looks good otherwise

from ...enums import AttentionHeadType
from ...models.gpt_dolomite.config import GPTDolomiteConfig

Choose a reason for hiding this comment

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

I think this might give circular import error due to stuff from this file being imported in the model class

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it was fine I have tested training the refactored codel

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

But if you like, i have moved the config to a top-level config.py in 8afe81d

from ...enums import AttentionHeadType, PositionEmbeddingType
from ..linear import Linear
from ...models.gpt_dolomite.config import GPTDolomiteConfig

Choose a reason for hiding this comment

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

same as above

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

see comment above

add_bias: bool = True,
position_embedding_type: str = "learned_absolute",
rope_theta: int = 10000,
rope_scaling: dict = None,

Choose a reason for hiding this comment

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

we can drop rope_scaling

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

im just worried to drop if, as we have checkpoints trained on https://github.com/ibm-granite/dolomite-engine/tree/main/dolomite_engine, and we may lose backward compatibility if i delete this key

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

are you ok if I just keep it first, but will put a comment to eventually drop it at some point?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added the comment in 8afe81d

@fabianlim
Copy link
Collaborator Author

@mayank31398 I have moved the config file. If its ok can you approve?

@mayank31398 mayank31398 merged commit fc30634 into main Jun 22, 2024
5 checks passed
@nathan-weinberg nathan-weinberg deleted the mayank branch November 4, 2024 21:13
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.

3 participants