mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 03:01:07 +06:00
📝 Add codecarbon callback to docs (#15563)
This commit is contained in:
parent
077c00c0b2
commit
fcb4f11c92
@ -34,6 +34,8 @@ By default a [`Trainer`] will use the following callbacks:
|
|||||||
- [`~integrations.MLflowCallback`] if [mlflow](https://www.mlflow.org/) is installed.
|
- [`~integrations.MLflowCallback`] if [mlflow](https://www.mlflow.org/) is installed.
|
||||||
- [`~integrations.AzureMLCallback`] if [azureml-sdk](https://pypi.org/project/azureml-sdk/) is
|
- [`~integrations.AzureMLCallback`] if [azureml-sdk](https://pypi.org/project/azureml-sdk/) is
|
||||||
installed.
|
installed.
|
||||||
|
- [`~integrations.CodeCarbonCallback`] if [codecarbon](https://pypi.org/project/codecarbon/) is
|
||||||
|
installed.
|
||||||
|
|
||||||
The main class that implements callbacks is [`TrainerCallback`]. It gets the
|
The main class that implements callbacks is [`TrainerCallback`]. It gets the
|
||||||
[`TrainingArguments`] used to instantiate the [`Trainer`], can access that
|
[`TrainingArguments`] used to instantiate the [`Trainer`], can access that
|
||||||
@ -66,6 +68,8 @@ Here is the list of the available [`TrainerCallback`] in the library:
|
|||||||
|
|
||||||
[[autodoc]] integrations.AzureMLCallback
|
[[autodoc]] integrations.AzureMLCallback
|
||||||
|
|
||||||
|
[[autodoc]] integrations.CodeCarbonCallback
|
||||||
|
|
||||||
## TrainerCallback
|
## TrainerCallback
|
||||||
|
|
||||||
[[autodoc]] TrainerCallback
|
[[autodoc]] TrainerCallback
|
||||||
|
Loading…
Reference in New Issue
Block a user