Remove wandb warning as it is unnecessary
Author: abhishekkrthakur
Pull request: yes
Labels: name: wontfix

Remove wandb warning as it is unnecessary. If wandb is installed, this throws a warning which just makes noise.
Some images might have wandb installed but the user doesn't want to use it. If the user knows what wandb is they will have the API key set anyways.

Comments:
# [Codecov](https://codecov.io/gh/huggingface/transformers/pull/5211?src=pr&el=h1) Report
> Merging [#5211](https://codecov.io/gh/huggingface/transformers/pull/5211?src=pr&el=desc) into [master](https://codecov.io/gh/huggingface/transformers/commit/1ae132a07d7f294cf58cd50f7db8723d00e282de&el=desc) will **increase** coverage by `0.49%`.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/huggingface/transformers/pull/5211/graphs/tree.svg?width=650&height=150&src=pr&token=9qOlN6Hb1c)](https://codecov.io/gh/huggingface/transformers/pull/5211?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master    #5211      +/-   ##
==========================================
+ Coverage   77.49%   77.98%   +0.49%     
==========================================
  Files         138      138              
  Lines       23787    23786       -1     
==========================================
+ Hits        18433    18550     +117     
+ Misses       5354     5236     -118     
```


| [Impacted Files](https://codecov.io/gh/huggingface/transformers/pull/5211?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [src/transformers/trainer\_utils.py](https://codecov.io/gh/huggingface/transformers/pull/5211/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy90cmFpbmVyX3V0aWxzLnB5) | `81.81% <ø> (+3.55%)` | :arrow_up: |
| [src/transformers/data/processors/squad.py](https://codecov.io/gh/huggingface/transformers/pull/5211/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy9kYXRhL3Byb2Nlc3NvcnMvc3F1YWQucHk=) | `28.66% <0.00%> (-28.03%)` | :arrow_down: |
| [src/transformers/tokenization\_bert.py](https://codecov.io/gh/huggingface/transformers/pull/5211/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy90b2tlbml6YXRpb25fYmVydC5weQ==) | `90.45% <0.00%> (-0.83%)` | :arrow_down: |
| [src/transformers/file\_utils.py](https://codecov.io/gh/huggingface/transformers/pull/5211/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy9maWxlX3V0aWxzLnB5) | `76.42% <0.00%> (-0.39%)` | :arrow_down: |
| [src/transformers/tokenization\_utils.py](https://codecov.io/gh/huggingface/transformers/pull/5211/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy90b2tlbml6YXRpb25fdXRpbHMucHk=) | `94.81% <0.00%> (-0.38%)` | :arrow_down: |
| [src/transformers/modeling\_tf\_utils.py](https://codecov.io/gh/huggingface/transformers/pull/5211/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy9tb2RlbGluZ190Zl91dGlscy5weQ==) | `86.00% <0.00%> (+0.29%)` | :arrow_up: |
| [src/transformers/modeling\_tf\_openai.py](https://codecov.io/gh/huggingface/transformers/pull/5211/diff?src=pr&el=tree#diff-c3JjL3RyYW5zZm9ybWVycy9tb2RlbGluZ190Zl9vcGVuYWkucHk=) | `94.92% <0.00%> (+75.00%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/huggingface/transformers/pull/5211?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/huggingface/transformers/pull/5211?src=pr&el=footer). Last update [1ae132a...ea3c239](https://codecov.io/gh/huggingface/transformers/pull/5211?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).


no strong opinion on that

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.


Any chance of merging this? :)

The issue is that people who installed it for automatic logging won't understand why it's not working

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.


Hey @abhishekkrthakur, how to remove this wandb warning ?

@parthplc I guess by having the API key? 🤔 sorry, i dont use wandb. maybe someone else can help.