> This page is for version 0.4.0 · 26.04.
> 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.shared.quack_patches

quack-kernels compatibility patches for CuTe DSL kernels written against quack-kernels 0.6.4.

## Module Contents

### Functions

| Name                                                                                                    | Description                                                                         |
| ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [`restore_quack_sub_packed_f32x2`](#nemo_automodel-shared-quack_patches-restore_quack_sub_packed_f32x2) | Bind `quack.activation.sub_packed_f32x2` when the installed quack-kernels lacks it. |

### Data

[`_logger`](#nemo_automodel-shared-quack_patches-_logger)

### API

```python
nemo_automodel.shared.quack_patches.restore_quack_sub_packed_f32x2() -> None
```

Bind `quack.activation.sub_packed_f32x2` when the installed quack-kernels lacks it.

quack-kernels 0.6.5 removed the helper; the CuTe DSL ships the same packed fp32x2 subtraction
(round to nearest even unless `rnd` is given) as `cutlass.cute.arch.sub_packed_f32x2`.
ffpa-attn 0.2.4 (its SM100 head-dim-512 forward) and the MSA revision the `msa` extra pins
still call the quack name while their kernels are traced, so call this before they compile.
It changes nothing when quack-kernels provides the helper or when quack or the DSL is missing.

```python
nemo_automodel.shared.quack_patches._logger = logging.getLogger(__name__)
```