<br />

<button value="stable" default="">See Stable</button> <button value="nightly">See Nightly</button>

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/quantizers/quantization_config.py#L184-L205) |

FP8 quantization config.

Inherits From: [`QuantizationConfig`](https://www.tensorflow.org/api_docs/python/tf/keras/quantizers/QuantizationConfig)

    tf.keras.quantizers.Float8QuantizationConfig()

FP8 mixed-precision training does not support user defined quantizers.
This config is only used to indicate that FP8 mixed-precision training
should be used.

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `mode` | <br /> <br /> |

<br />

## Methods

### `activation_quantizer_or_default`

[View source](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/quantizers/quantization_config.py#L58-L62)

    @staticmethod
    activation_quantizer_or_default(
        config, default
    )

### `from_config`

[View source](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/quantizers/quantization_config.py#L203-L205)

    @classmethod
    from_config(
        config
    )

### `get_config`

[View source](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/quantizers/quantization_config.py#L200-L201)

    get_config()

### `weight_quantizer_or_default`

[View source](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/quantizers/quantization_config.py#L52-L56)

    @staticmethod
    weight_quantizer_or_default(
        config, default
    )