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

Add ability to save and compare sub-module outputs #690

Merged
merged 9 commits into from
Aug 12, 2024

Conversation

2015aroras
Copy link
Collaborator

@2015aroras 2015aroras commented Aug 5, 2024

This PR adds the ability to save and compare sub-module outputs. This was helpful for finding the fix in #680. We could use this functionality as part of an integration test in the future.

@2015aroras 2015aroras changed the title Shanea/trace model outputs 2 Add ability to save and compare sub-module outputs Aug 6, 2024
@2015aroras 2015aroras marked this pull request as ready for review August 6, 2024 18:35
@2015aroras 2015aroras requested a review from epwalsh August 6, 2024 18:35
Copy link
Member

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

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

LGTM

olmo/config.py Outdated
@@ -1217,6 +1217,11 @@ class TrainConfig(BaseConfig):
Path to cache directory of HF datasets saved with `datasets.save_to_disk`.
"""

module_outputs_save_steps: Optional[List[int]] = None
"""
Outputs of model submodules are saved during the provided steps.
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a note here about how to use the script to view the results?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

81c07c6 I've mentioned the script for now. I intend to add a doc describing debugging with this soon.

@2015aroras 2015aroras merged commit 0bc7f6c into main Aug 12, 2024
12 checks passed
@2015aroras 2015aroras deleted the shanea/trace-model-outputs-2 branch August 12, 2024 21:40
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