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

chore: lint code and text in integration tutorials #1167

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dmitryduev
Copy link
Member

...what's in a name.

@dmitryduev dmitryduev requested a review from a team as a code owner March 13, 2025 00:05
@dmitryduev dmitryduev enabled auto-merge (squash) March 13, 2025 00:06
Copy link

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: df630ca
Status: ✅  Deploy successful!
Preview URL: https://fa4b3cc6.docodile.pages.dev
Branch Preview URL: https://dima-tutorials-20250312.docodile.pages.dev

View logs

Copy link
Contributor

@mdlinville mdlinville left a 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)
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## Put in your API key
## Populate your API key

Comment on lines +84 to +85
Optionally, we can set environment variables to customize W&B logging. See
[documentation]({{< relref "/guides/integrations/huggingface/" >}}).
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
```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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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.

Comment on lines +52 to +54
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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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/" >}}).
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
[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.
Copy link
Contributor

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.

Copy link
Contributor

@mdlinville mdlinville left a 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.

@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
@wandb wandb deleted a comment from github-actions bot Mar 17, 2025
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.

2 participants