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 environment and transformers version logging in results dump #1464

Merged
merged 5 commits into from
Feb 24, 2024

Conversation

LSinev
Copy link
Contributor

@LSinev LSinev commented Feb 23, 2024

To help researchers detect inconsistencies caused by different versions of drivers or packages:

  • added logging transformers version in results dump
  • added environment info (with the help of pytorch helper function) to results dump
  • improved git_hash storage for case when no git is available to call in the system
  • store also git hash of upper directory for cases when this repo is submoduled

Was not sure where to place functions. Seems that all of these can be moved to logging_utils if it is not wandb only.

@haileyschoelkopf
Copy link
Collaborator

Thank you very much for this PR!

Adding these to logging_utils would be a good idea!

@LSinev
Copy link
Contributor Author

LSinev commented Feb 23, 2024

moved added functions to logging_utils
but left get_commit_hash in original place (lm_eval.utils) to not mess with #1441

lm_eval/utils.py Outdated Show resolved Hide resolved
@haileyschoelkopf
Copy link
Collaborator

Thank you for the contribution @LSinev !

@haileyschoelkopf haileyschoelkopf merged commit f78e2da into EleutherAI:main Feb 24, 2024
8 checks passed
@LSinev LSinev deleted the more-env-logging branch February 24, 2024 17:25
wx-zhang pushed a commit to wx-zhang/lm-evaluation-harness that referenced this pull request Mar 13, 2024
…utherAI#1464)

* Save git_hash to results even if git is not available to call as subprocess

* Store more info about environment and transformers version in results to help researchers track inconsistencies

* moved added logging to logging_utils

* moved get_git_commit_hash to logging_utils.py

* moved add_env_info inside evaluator
nightingal3 pushed a commit to mycoalchen/lm-evaluation-harness that referenced this pull request May 2, 2024
…utherAI#1464)

* Save git_hash to results even if git is not available to call as subprocess

* Store more info about environment and transformers version in results to help researchers track inconsistencies

* moved added logging to logging_utils

* moved get_git_commit_hash to logging_utils.py

* moved add_env_info inside evaluator
djstrong pushed a commit to speakleash/lm-evaluation-harness that referenced this pull request Aug 2, 2024
…utherAI#1464)

* Save git_hash to results even if git is not available to call as subprocess

* Store more info about environment and transformers version in results to help researchers track inconsistencies

* moved added logging to logging_utils

* moved get_git_commit_hash to logging_utils.py

* moved add_env_info inside evaluator
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