-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
doc: update W&B related doc #10086
doc: update W&B related doc #10086
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<!--- | ||
Copyright 2020 The HuggingFace Team. All rights reserved. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
@@ -147,7 +146,7 @@ python xla_spawn.py --num_cores 8 \ | |
You can easily log and monitor your runs code. The following are currently supported: | ||
|
||
* [TensorBoard](https://www.tensorflow.org/tensorboard) | ||
* [Weights & Biases](https://docs.wandb.com/library/integrations/huggingface) | ||
* [Weights & Biases](https://docs.wandb.ai/integrations/huggingface) | ||
* [Comet ML](https://www.comet.ml/docs/python-sdk/huggingface/) | ||
|
||
### Weights & Biases | ||
|
@@ -173,7 +172,46 @@ wandb.login() | |
|
||
Whenever you use `Trainer` or `TFTrainer` classes, your losses, evaluation metrics, model topology and gradients (for `Trainer` only) will automatically be logged. | ||
|
||
When using 🤗 Transformers with PyTorch Lightning, runs can be tracked through `WandbLogger`. Refer to related [documentation & examples](https://docs.wandb.com/library/integrations/lightning). | ||
Advanced configuration is possible by setting environment variables: | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th style="text-align:left">Environment Variables</th> | ||
<th style="text-align:left">Options</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td style="text-align:left">WANDB_LOG_MODEL</td> | ||
<td style="text-align:left">Log the model as artifact at the end of training (<b>false</b> by default)</td> | ||
</tr> | ||
<tr> | ||
<td style="text-align:left">WANDB_WATCH</td> | ||
<td style="text-align:left"> | ||
<ul> | ||
<li><b>gradients</b> (default): Log histograms of the gradients</li> | ||
<li><b>all</b>: Log histograms of gradients and parameters</li> | ||
<li><b>false</b>: No gradient or parameter logging</li> | ||
</ul> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="text-align:left">WANDB_PROJECT</td> | ||
<td style="text-align:left">Organize runs by project</td> | ||
</tr> | ||
<tr> | ||
<td style="text-align:left">WANDB_DISABLED</td> | ||
<td style="text-align:left">Set to <b>true</b> to disable logging entirely</td> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would avoid documenting this env variable as it will be deprecated pretty soon (it's been on my TODO for a little bit): there is now a For now the default is all of them but in v5, we will switch to none, so it's a good habit to start using this flag :-) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great to know! Should I add something related to it in the W&B section of HF docs? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, if you want to! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok I added There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I deprecated it in #10100, will remove it in v5 once the switch of default is done. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So if you just remove those two lines here, we'll be ready to merge! |
||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
Set run names with `run_name` argument present in scripts or as part of `TrainingArguments`. | ||
|
||
Additional configuration options are available through generic [wandb environment variables](https://docs.wandb.com/library/environment-variables). | ||
|
||
Refer to related [documentation & examples](https://docs.wandb.ai/integrations/huggingface). | ||
|
||
### Comet.ml | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is @jxmorris12 ok to have their notebook replaced?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there was a confusion here:
On a more general note, the list contains many outdated notebooks that don't run anymore, should they be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd leave that to the authors of the notebooks (remove or update). I think it's clear enough this is a community page and those are not tested/maintained by the team :-)