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

fix typo in docs of accelerate tracking #320

Merged
merged 1 commit into from
Apr 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/source/tracking.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ Currently `Accelerate` supports three trackers out-of-the-box:

To use any of them, pass in the selected type(s) to the `log_with` parameter in [`Accelerate`]:
```python
from accelerate import Accelerate
from accelerate import Accelerator
from accelerate.utils import LoggerType

accelerator = Accelerate(log_with="all") # For all available trackers in the environment
accelerator = Accelerate(log_with="wandb")
accelerator = Accelerate(log_with=["wandb", LoggerType.TENSORBOARD])
accelerator = Accelerator(log_with="all") # For all available trackers in the environment
accelerator = Accelerator(log_with="wandb")
accelerator = Accelerator(log_with=["wandb", LoggerType.TENSORBOARD])
```

At the start of your experiment [`~Accelerator.init_trackers`] should be used to setup your project, and potentially add any experiment hyperparameters to be logged:
Expand Down Expand Up @@ -123,14 +123,14 @@ be used with the API:

```python
tracker = MyCustomTracker("some_run_name")
accelerator = Accelerate(log_with=tracker)
accelerator = Accelerator(log_with=tracker)
```

These also can be mixed with existing trackers, including with `"all"`:

```python
tracker = MyCustomTracker("some_run_name")
accelerator = Accelerate(log_with=[tracker, "all"])
accelerator = Accelerator(log_with=[tracker, "all"])
```

## When a wrapper cannot work
Expand Down