> This page is for version Nightly (default).
> For other versions, use one of these documentation indexes:
> - Nightly (default): https://docs.nvidia.com/nemo/automodel/nightly/llms.txt
> - Latest: https://docs.nvidia.com/nemo/automodel/latest/llms.txt
> - 0.7.0 · 26.10: https://docs.nvidia.com/nemo/automodel/v0.7/llms.txt
> - 0.5.0 · 26.06: https://docs.nvidia.com/nemo/automodel/v0.5/llms.txt
> - 0.4.0 · 26.04: https://docs.nvidia.com/nemo/automodel/v0.4/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/automodel/llms.txt.

# nemo_automodel.components.models.lfm3.parallelization

Activation-checkpointing policy of LFM3.

## Module Contents

### Classes

| Name                                                                                                    | Description                                                                                   |
| ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [`Lfm3ModelParallelizer`](#nemo_automodel-components-models-lfm3-parallelization-Lfm3ModelParallelizer) | Checkpoint whole decoder layers, which recomputes the convolution layers in backward as well. |

### Data

[`PARALLELIZER`](#nemo_automodel-components-models-lfm3-parallelization-PARALLELIZER)

### API

```python
class nemo_automodel.components.models.lfm3.parallelization.Lfm3ModelParallelizer()
```

**Bases:** `ModelParallelizer`

Checkpoint whole decoder layers, which recomputes the convolution layers in backward as well.

```python
nemo_automodel.components.models.lfm3.parallelization.Lfm3ModelParallelizer._use_full_layer_activation_checkpointing(
    model: torch.nn.Module
) -> bool
```

A decoder layer takes all its inputs as arguments and the model builds no cache in training.

```python
nemo_automodel.components.models.lfm3.parallelization.PARALLELIZER = Lfm3ModelParallelizer()
```