Skip to content

Commit

Permalink
apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
limiteinductive committed May 9, 2024
1 parent 76a6ce8 commit cc7b62f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guides/training_101/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ class LoggingCallback(Callback[Any]):
self.losses = []
```

Exactly like models, we need to register the callback to the Trainer. We can do so by adding a CallbackConfig attribute to the Config named `logging` and adding a method to the Trainer class that returns the callback decorated with `@register_callback` decorator.
Exactly like models, we need to register the callback to the Trainer. We can do so by adding a `CallbackConfig` attribute to the config named `logging` and adding a method to the Trainer class that returns the callback decorated with `@register_callback` decorator.

```python
from refiners.training_utils import CallbackConfig, register_callback
Expand Down Expand Up @@ -447,7 +447,7 @@ class EvaluationConfig(CallbackConfig):
seed: int
```

The `TimeValueField` is a custom field that allow Pydantic to parse a string representing a time value (e.g., "50:epochs") into a `TimeValue` object. This is useful to specify the evaluation interval in the configuration file.
The `TimeValueField` is a custom field that allow Pydantic to parse a string representing a time value (e.g., `"50:epochs"`) into a `TimeValue` object. This is useful to specify the evaluation interval in the configuration file.

```python
from refiners.training_utils import scoped_seed, Callback
Expand Down

0 comments on commit cc7b62f

Please sign in to comment.