-
Notifications
You must be signed in to change notification settings - Fork 13
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
chore: lint code and text in integration tutorials #1167
base: main
Are you sure you want to change the base?
Conversation
Deploying docs with
|
Latest commit: |
df630ca
|
Status: | ✅ Deploy successful! |
Preview URL: | https://fa4b3cc6.docodile.pages.dev |
Branch Preview URL: | https://dima-tutorials-20250312.docodile.pages.dev |
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.
Thank you! Here is some initial feedback, which hopefully does not introduce errors from my misunderstanding.
{{< img src="/images/tutorials/huggingface.png" alt="" >}} | ||
|
||
{{< cta-button colabLink="https://colab.research.google.com/github/wandb/examples/blob/master/colabs/huggingface/Huggingface_wandb.ipynb" >}} | ||
Visualize your [Hugging Face](https://github.com/huggingface/transformers) model's performance quickly with a seamless [W&B](https://wandb.ai/site) integration. | ||
Visualize your [Hugging Face](https://github.com/huggingface/transformers) |
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.
Can you please undo the hard line wrapping that is introduced in this PR? Markdown is easier to maintain and review with soft wrapping per paragraph.
```notebook | ||
# the run_glue.py script requires transformers dev | ||
!pip install -q git+https://github.com/huggingface/transformers | ||
``` | ||
|
||
Before continuing, [sign up for a free account](https://app.wandb.ai/login?signup=true). | ||
Before continuing, | ||
[sign up for a free account](https://app.wandb.ai/login?signup=true). | ||
|
||
## Put in your API key |
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.
## Put in your API key | |
## Populate your API key |
Optionally, we can set environment variables to customize W&B logging. See | ||
[documentation]({{< relref "/guides/integrations/huggingface/" >}}). |
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.
Optionally, we can set environment variables to customize W&B logging. See | |
[documentation]({{< relref "/guides/integrations/huggingface/" >}}). | |
To customize W&B logging by setting environment variables, refer to the [Hugging Face documentation]({{< relref "/guides/integrations/huggingface/" >}}). |
|
||
```python | ||
```jupyter |
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.
```jupyter | |
```notebook |
Also elsewhere in this PR
|
||
## Setup and Installation | ||
|
||
First, let us install the latest version of Weights and Biases. We will then authenticate this colab instance to use W&B. | ||
|
||
First, let us install the latest version of Weights and Biases. We will then |
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.
First, let us install the latest version of Weights and Biases. We will then | |
In the notebook, install Weights and Biases and sign in. |
It's better to avoid "let us" and "we" in favor of the simple imperative. I believe both of these code blocks should be tagged up as notebooks.
Use of proper config system is a recommended best practice for reproducible | ||
machine learning. We can track the hyperparameters for every experiment using | ||
W&B. In this colab we will be using simple Python `dict` as our config system. |
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.
Use of proper config system is a recommended best practice for reproducible | |
machine learning. We can track the hyperparameters for every experiment using | |
W&B. In this colab we will be using simple Python `dict` as our config system. | |
To reproduce a machine learning experiment, it's important to save the hyperparameters that the experiment uses. This example shows how to track an experiment's hyperparameters in a Python `dict`. |
This sentence is very hard for me to understand (not due to your changes). Here is my attempt to help, which may in fact be incorrect.
{{< img src="/images/tutorials/huggingface-why.png" alt="" >}} | ||
|
||
This Colab notebook introduces the `WandbModelCheckpoint` callback. Use this callback to log your model checkpoints to Weight and Biases [Artifacts]({{< relref "/guides/core/artifacts/" >}}). | ||
This notebook introduces the `WandbModelCheckpoint` callback. Use this callback |
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.
This notebook introduces the `WandbModelCheckpoint` callback. Use this callback | |
This notebook demonstrates how to use the `WandbModelCheckpoint` callback |
|
||
This Colab notebook introduces the `WandbModelCheckpoint` callback. Use this callback to log your model checkpoints to Weight and Biases [Artifacts]({{< relref "/guides/core/artifacts/" >}}). | ||
This notebook introduces the `WandbModelCheckpoint` callback. Use this callback | ||
to log your model checkpoints to Weight and Biases |
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.
to log your model checkpoints to Weight and Biases | |
to log your model checkpoints to W&B |
This Colab notebook introduces the `WandbModelCheckpoint` callback. Use this callback to log your model checkpoints to Weight and Biases [Artifacts]({{< relref "/guides/core/artifacts/" >}}). | ||
This notebook introduces the `WandbModelCheckpoint` callback. Use this callback | ||
to log your model checkpoints to Weight and Biases | ||
[Artifacts]({{< relref "/guides/core/artifacts/" >}}). |
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.
[Artifacts]({{< relref "/guides/core/artifacts/" >}}). | |
[artifacts]({{< relref "/guides/core/artifacts/" >}}). |
I believe we capitalize only the Python API object.
|
||
## Setup and Installation | ||
|
||
First, let us install the latest version of Weights and Biases. We will then authenticate this colab instance to use W&B. | ||
|
||
First, let us install the latest version of Weights and Biases and authenticate. |
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.
The same feedback as in the Hugging Face example for similar changes here and in the following pages.
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.
Forgot to enable Request Changes.
...what's in a name.