> [!TIP]
> Dynamic quantization can significantly change the distribution of the model output, so you need to change the `residual_diff_threshold` to a larger value for it to take effect.  
<hfoptions id="fp8-quantization">
<hfoption id="FLUX-1.dev">  
```python
import time
import torch
from diffusers import FluxPipeline