---
title: thunder.plugins.FP8
description: >-
  Plugin for enabling FP8 precision via NVIDIA Transformer Engine, enabling
  higher throughput of matrix operations in FP8.
canonical: >-
  https://lightning.ai/docs/thunder/stable/api-reference/generated/thunder.plugins.FP8
---
# thunder.plugins.FP8 {#thunder-plugins-fp8}

### `class thunder.plugins.FP8` {#thunder.plugins.FP8}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/plugins/fp8.py#L4-L21)

Bases: `Plugin`

Plugin for enabling FP8 precision via NVIDIA Transformer Engine, enabling higher throughput of matrix operations in FP8.

See lightning-thunder/thunder/executors/transformer\_engine\_v1ex.py for implementation details.

#### `__init__()` {#thunder.plugins.FP8.__init__}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/thunder/plugins.py)

Methods

- [`__init__()`](#thunder.plugins.FP8.__init__)
- [`setup_executors()`](#thunder.plugins.FP8.setup_executors) — Imports the Transformer Engine executor.
- `setup_lookasides()` — rtype:Optional[list[Lookaside]]
- `setup_transforms()` — rtype:Optional[list[Transform]]

Attributes

- `policy`

#### `setup_executors()` {#thunder.plugins.FP8.setup_executors}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/plugins/fp8.py#L11-L21)

Imports the Transformer Engine executor.

Returns:

A list containing the Transformer Engine executor.

Return type:

[list](https://docs.python.org/3/builtins/stdtypes.html#list "(in Python v3.15)")\[[Executor](/docs/thunder/extend/thunder.extend.Executor#thunder.extend.Executor "thunder.extend.Executor")\]

---

**Navigation**

- Parent: [Generated](/docs/thunder/0.2.6/api-reference/generated.md)
