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

don't complain about missing W&B when WANDB_DISABLED=true #6036

Merged
merged 3 commits into from
Jul 26, 2020

Conversation

stas00
Copy link
Contributor

@stas00 stas00 commented Jul 26, 2020

I get a lot of crashes with W&B in transformers examples: #5835 so I have to use WANDB_DISABLED=true - this PR removes a complaint that shouldn't be there when this env var is used.

@codecov
Copy link

codecov bot commented Jul 26, 2020

Codecov Report

Merging #6036 into master will decrease coverage by 1.18%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6036      +/-   ##
==========================================
- Coverage   78.50%   77.31%   -1.19%     
==========================================
  Files         146      146              
  Lines       26249    26251       +2     
==========================================
- Hits        20606    20297     -309     
- Misses       5643     5954     +311     
Impacted Files Coverage Δ
src/transformers/trainer_tf.py 16.47% <0.00%> (-0.07%) ⬇️
src/transformers/trainer.py 41.00% <100.00%> (+0.12%) ⬆️
src/transformers/modeling_tf_mobilebert.py 23.38% <0.00%> (-73.39%) ⬇️
src/transformers/file_utils.py 81.49% <0.00%> (+0.29%) ⬆️
src/transformers/generation_tf_utils.py 86.21% <0.00%> (+0.75%) ⬆️
src/transformers/modeling_tf_roberta.py 93.36% <0.00%> (+49.37%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c69ea5e...f1463a0. Read the comment docs.

@julien-c
Copy link
Member

LGTM

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Two nits, but looks good to me and is a useful feature, thanks!

"You are instantiating a Trainer but W&B is not installed. To use wandb logging, "
"run `pip install wandb; wandb login` see https://docs.wandb.com/huggingface."
)
if os.environ.get("WANDB_DISABLED") != "true":
Copy link
Collaborator

Choose a reason for hiding this comment

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

Synthesize in a elif?

"You are instantiating a Trainer but W&B is not installed. To use wandb logging, "
"run `pip install wandb; wandb login` see https://docs.wandb.com/huggingface."
)
if os.environ.get("WANDB_DISABLED") != "true":
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, @sgugger, for the suggestions - done.

@stas00
Copy link
Contributor Author

stas00 commented Jul 26, 2020

Note, the project has a failing test - I did 2 PRs updates yesterday and today - both unrelated to my work
https://app.circleci.com/pipelines/github/huggingface/transformers/9539/workflows/15fcbc84-9cfe-4970-943f-935bce800c98/jobs/64765

another one from last night:
https://app.circleci.com/pipelines/github/huggingface/transformers/9527/workflows/73306d70-4190-48cd-b24a-b73619cd2002/jobs/64665/steps

Please kindly trigger a re-run of CI for this PR. Thank you.

@sgugger
Copy link
Collaborator

sgugger commented Jul 26, 2020

Yeah, the CI is flaky sometimes. Re-triggered the failing test.

@sgugger sgugger merged commit fb0589a into huggingface:master Jul 26, 2020
@stas00
Copy link
Contributor Author

stas00 commented Jul 26, 2020

Yeah, the CI is flaky sometimes.

When it happens it's the same test that fails - perhaps it could be fixed?

Re-triggered the failing test.

Thank you, @sgugger

@stas00 stas00 deleted the wandb branch July 26, 2020 23:23
@sgugger
Copy link
Collaborator

sgugger commented Jul 27, 2020

Yeah we try to fix those flaky tests as we catch them. Don't hesitate to report the name and logs on your own too.

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