<hfoptions id="context-parallelism">
<hfoption id="FLUX-1.dev">  
The code sample below combines First Block Cache, fp8 dynamic quantization, torch.compile, and Context Parallelism for the fastest inference speed.  
```python
import time
import torch
import torch.distributed as dist
from diffusers import FluxPipeline