pipeline = LuminaText2ImgPipeline.from_pretrained(
"Alpha-VLLM/Lumina-Next-SFT-diffusers", torch_dtype=torch.bfloat16
).to("cuda")
```  
Then change the memory layout of the pipelines `transformer` and `vae` components to `torch.channels-last`:  
```python
pipeline.transformer.to(memory_format=torch.channels_last)
pipeline.vae.to(memory_format=torch.channels_last)
```  
Finally, compile the components and run inference:  
```python